cftool remove original data from fitted result
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
Does anyone know how to remove original data points from the cftool fitting result? (those black spots make the graph ugly.)
Thanks, X
0 comentarios
Respuestas (2)
halleyhit
el 13 de En. de 2017
Editada: halleyhit
el 13 de En. de 2017
1. fit->save to workspace, choose save fit to matlab object named fit1, for example. 2. In command window, plot(x,fit1(x)). Here assume x is the X data in cftool.
2 comentarios
halleyhit
el 13 de En. de 2017
Editada: halleyhit
el 13 de En. de 2017
if true
x1=linspace(min(x),max(x),10);
y1=linspace(min(y),max(y),10);
surf(x1,y1,fit1(x1,y1))
end
You may try this code. Here x and y are X data and Y data in cftool. x1 and y1 are the range of surf and you can adjust them. surf or surface can be used to show the image.
Ver también
Categorías
Más información sobre Curve Fitting Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!