フィルターのクリア

How to make a plot of fitted curve and data?

9 ビュー (過去 30 日間)
Peiyuan ZHU
Peiyuan ZHU 2017 年 5 月 13 日
回答済み: Nagarjuna Manchineni 2017 年 5 月 15 日
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 件のコメント
Image Analyst
Image Analyst 2017 年 5 月 13 日
With plot()? Did you try the plot() function?

サインインしてコメントする。

回答 (1 件)

Nagarjuna Manchineni
Nagarjuna Manchineni 2017 年 5 月 15 日
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 Center および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by