polyfit3 script download - polyfit3 polyfit3 - Fit polynomial to data, with new features as forced to zero coefficien

polyfit3 script Publisher Review:


polyfit3 polyfit3 - Fit polynomial to data, with new features as forced to zero coefficients and data weighting.
polyfit3 - Fit polynomial to data, with new features as forced to zero coefficients and data weighting. POLYFIT3(X,Y,N,NUL,W) finds the coefficients of a polynomial P(X) of degree N that fits the data, P(X(I))~=Y(I), in a least-squares sense. Any of the coefficients can be forced to be zero, and data can be weighted. NUL is a vector with coefficients forced to be zero in usual order.W is a vector containing the weights of data.POLYFIT3(X,Y,N,NUL) assumes that all weights of data are equal to 1.POLYFIT3(X,Y,N,[],W) allows to weight data without forcing any coefficient to be zero.The original usage is still available.Tested under MATLAB 6.0.0.DEMO (for not weighted data).x=linspace(0,11,12);noise=(rand(size(x))-0.5);y=3-x.^3 2*x.^5 noise;[p1,S] = polyfit3(x,y,5)w=ones(size(x));[p2,S] = polyfit3(x,y,5,[2 4 5],w)close all;figure;plot(x,y,'.r'); hold on;x=linspace(0,11);plot(x,polyval(p1,x),'b');plot(x,polyval(p2,x),'k');DEMO (For weighted data).x=linspace(-5,5,11);noise=(rand(size(x))-0.5);y=x.^4 noise; y(11)=y(11) 100;[p1,S] = polyfit3(x,y,4)w=ones(size(x)); w(11)=0.1;[p2,S] = polyfit3(x,y,4,[2 3 4 5],w)close all;figure;plot(x,y,'.r'); hold on;x=linspace(-5,5,11);plot(x,polyval(p1,x),'b');plot(x,polyval(p2,x),'k'); Requirements: · MATLAB Release: R12

polyfit3 script details and screenshot


Screenshot:

Rating: 10 Votes:
Rating for polyfit3 script: 10 from  votes
Rate this software:


Scan computer and update all your drivers before downloading.

Release date: 2009-09-18
Last update: 2009-09-18
Platform: Windows / Linux / Mac OS / BSD / Solaris
Language: Matlab
Price:Freeware $
Company: Antoni J. Canos
Info url: http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectType=author&objectId=1093879




Download polyfit3 script
RECOMMENDED TOOLS


Related tags:

Related downloads

Derivative script      
Derivative Derivative provides the first derivative using a 2nd order difference method.
Price: Freeware$, Rating: 10, Downloads: 0
First-Order Degree Linear Differential Equations script      
First-Order Degree Linear Differential Equations First-Order Degree Linear Differential Eq
Price: Freeware$, Rating: 6, Downloads: 0
Entrop script      
Entrop Entrop implements a special version of the algorithm for entropy maximization.
Price: Freeware$, Rating: 8, Downloads: 0
Hybrid Symbolic and Numerical Simulation script      
Hybrid Symbolic and Numerical Simulation Hybrid Symbolic and Numerical Simulation - Matlab
Price: Freeware$, Rating: 10, Downloads: 0
Math Function in 3D Graphics script      
Math Function in 3D Graphics Math Function in 3D Graphics code allows you to have a 3D rep
Price: Freeware$, Rating: 6, Downloads: 0
matlab scm script      
matlab scm matlab scm - Robotic Manipulator Kinematics
Price: Freeware$, Rating: 10, Downloads: 0
Gauss Quadrature for Tetrahedra script      
Gauss Quadrature for Tetrahedra Gauss Quadrature for Tetrahedra - Compute Gauss weights an
Price: Freeware$, Rating: 10, Downloads: 0
com.wis.math.alg.Matrix script      
com.wis.math.alg.Matrix com.wis.math.alg.Matrix implements the behaviours of the Matrix Cl
Price: Other Free / Open So$, Rating: 9, Downloads: 0