matlab - How to export fitted curve to 1D vector -
with use of curve fitting toolbox i'm fitting 11 data points curve described custom equation. result this:

i want save 1d vector represented bye red line on plot above matlab variable. try use fit->save workspace... option curve fitting toolbox menu, saved variables not contain of fitted data.
how can save fitted data matlab variable?
the saved matlab-object (default name fittedmodel) contains fitted function function-handle , fitted coefficients corresponding function-handle. can evaluate @ data points of choice feval.
in following example fitted function evaluated @ original datapoints x:
y = feval(fittedmodel, x); now can directly plot result:
plot(x,y);
Comments
Post a Comment