Axis change - Is it possible to get the data of the new plot?

1 次查看(过去 30 天)
Hi,
I have a plot, for example, a surface of a sphere, and I'm changing the axis to view a semi-sphere.
Is it possible to get the data of this new plot?
Thanks

回答(3 个)

Azzi Abdelmalek
Azzi Abdelmalek 2016-8-5
编辑:Azzi Abdelmalek 2016-8-5
Changing the view will not change your data. If you want to get your data from the plot
plot(1:10)
h=findobj('type','line')
x=get(h,'Xdata')
y=get(h,'Ydata')

Thalles Leite
Thalles Leite 2016-8-18
Hi,
I'm trying to use that on the Figure generated by the Surface function, and I'm getting the following error:
Error using matlab.ui.Figure/get There is no Xdata property on the Figure class.

Thalles Leite
Thalles Leite 2016-8-22
Can anyone help me?
  1 个评论
Azzi Abdelmalek
Azzi Abdelmalek 2016-8-22
This section is used to answer a question. If your original question was answered then mark it as accepted. And post a new question in the section Ask a question

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by