Effacer les filtres
Effacer les filtres

How to make a plot of fitted curve and data?

2 vues (au cours des 30 derniers jours)
Peiyuan ZHU
Peiyuan ZHU le 13 Mai 2017
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 commentaire
Image Analyst
Image Analyst le 13 Mai 2017
With plot()? Did you try the plot() function?

Connectez-vous pour commenter.

Réponses (1)

Nagarjuna Manchineni
Nagarjuna Manchineni le 15 Mai 2017
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

Catégories

En savoir plus sur Get Started with Curve Fitting Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by