How can I make the figure created by the plot function be an object?
4 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
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 个评论
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 Center 和 File Exchange 中查找有关 Graphics Object Properties 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!