How to make a plot of fitted curve and data?

2 次查看(过去 30 天)
Phi_fitted = fit(Phi2_y',Phi2_Phi','gauss8');
Above command makes a fit. But how to make a plot of fitted curve and data? (CODE ONLY)

回答(1 个)

Nagarjuna Manchineni
You can use 'plot' function to plot the data and the fitted curve.
For example, in your case, you can plot the data and the fitted curve by using the following command:
>> plot(Phi_fitted, Phi2_y', Phi2_Phi');
Also, take a look at the following link that has many examples of how to fit and plot the data: https://www.mathworks.com/help/curvefit/fit.html#examples

类别

Help CenterFile Exchange 中查找有关 Interpolation 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by