Dlinspace
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...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): polyfit3 Download |
% repParabola generates a train of parabolas (truncated)% ------------------------------------------------------% x: 1D x vector, e.g x = linspace(-5,10,1000)% interfaces: points among whom a parabola will be plotted% Amp: Amplitude of the train of parabolas%...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 81.92 KB | Download (42): Parabolas Download |
Specify a vecter, a minimum peak separation, and a minimum peak height, and this function will find the peaks.. about 250 times faster than findpeaks would!try:t=linspace(0,1,10001);x=sin(2*pi*20*t)+0.2*sin(2*pi*113*t)+.2*randn(size(t));p=peakseek(x,10000,1);
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (41): PeakSeek Download |
Find those points (xi,yi) who are inside the polygone defined by the vectors (x,y).Syntax: [xin,yin,Ind]=Inside(X,Y,xi,yi)where Ind is the index of (xi,yi) that are inside the polygone Example: %--- create polygone (x,y) phi=linspace(0,2*pi,50); X=(1+0.2*sin(6*phi)).*cos(phi);...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Points Inside polygone Download |