How do i move a plot from the curve fitting tool to the plot tool?

조회 수: 17 (최근 30일)
Precious Eze
Precious Eze 2017년 10월 20일
답변: PIYUSH MOHANTY 2019년 9월 26일
I used the curve fitting to generate a plot so am trying to move the plot to the plot tool because i'm used to editing with the plot tool. How do i do it? Thanks

답변 (2개)

Birdman
Birdman 2017년 10월 20일
From Curve Fitting Tool, go to Fit->Save To Workspace. When you click on it, a tab opens where you can enter the names of three different structs to be saved. After you saved them, the first variable comes with a fittedmodel default name. Save it to workspace and write the code:
plot(fittedmodel)
With that, you can plot your equation in the plot tool. Hope this helps.
  댓글 수: 2
Precious Eze
Precious Eze 2017년 10월 20일
I tried it, but it only shows the line for the goodness of fit.without the (x,y) variables. I wanted it to be exactly the same way it was in the curve fitting tool so i can start editing it.
Birdman
Birdman 2017년 10월 20일
The output variable contains the x y variables as struct and you can reach them with the notation of Output.x and Output.y, try this.

댓글을 달려면 로그인하십시오.


PIYUSH MOHANTY
PIYUSH MOHANTY 2019년 9월 26일
You can also use the option of File-> Print to figure in Curve Fitting Tool window. It opens the graph in plot mode, where you can edit, the way you can do in a Matlab Plot.

카테고리

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