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

1 回表示 (過去 30 日間)
Thalles Leite
Thalles Leite 2016 年 8 月 5 日
コメント済み: Azzi Abdelmalek 2016 年 8 月 22 日
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')
  2 件のコメント
Thalles Leite
Thalles Leite 2016 年 8 月 5 日
編集済み: Thalles Leite 2016 年 8 月 16 日
Thank you, Azzi. Exactly what I need!
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 8 月 22 日
If that s what you need then accept the answer.

サインインしてコメントする。


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 Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by