How to make a plot of fitted curve and data?

조회 수: 2 (최근 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 CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by