필터 지우기
필터 지우기

How can I make the figure created by the plot function be an object?

조회 수: 4 (최근 30일)
Ezz El-din Abdullah
Ezz El-din Abdullah 2017년 1월 31일
댓글: Adam 2017년 1월 31일
I would like to get a variable out of the plot function so that I can use it for the rest of the code. In other words, I need what's in the figure to be an object I can edit. For example, I have drawn some pixels as points on an image using plot().
The question is how can I fit these points to get the desired curve without making these points as one object on a separate figure?

채택된 답변

Adam
Adam 2017년 1월 31일
h = plot( ... )
will return a handle to the object that is plotted, although the data in this will be the same as you gave it in the first place in terms of curve fitting.
  댓글 수: 2
Ezz El-din Abdullah
Ezz El-din Abdullah 2017년 1월 31일
Thanks! But I have another problem. When I plot this object on a different figure. The curve looks spread and not confined as I plotted it on the image. So what should I do?
Adam
Adam 2017년 1월 31일
doc axes properties
There are various settings on axes that change the appearance and aspect ratio and domain over which the plot is visible, etc.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by