Hi,
You can do the following :
- Use the fit fucntion with ROBUST name pair argument to get a fit
- Get the equidistant x points as
Xq = linspace(a,b,no);
- Get the data at those points using feval function :
Yq = feval(f,Xq);% f is the fit
Now plot the data [Xq,Yq] , we will get a curve that "resembles" the original but that is formed by equidistant points
Thanks