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

1 visualización (últimos 30 días)
Thalles Leite
Thalles Leite el 5 de Ag. de 2016
Comentada: Azzi Abdelmalek el 22 de Ag. de 2016
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

Respuestas (3)

Azzi Abdelmalek
Azzi Abdelmalek el 5 de Ag. de 2016
Editada: Azzi Abdelmalek el 5 de Ag. de 2016
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 comentarios
Thalles Leite
Thalles Leite el 5 de Ag. de 2016
Editada: Thalles Leite el 16 de Ag. de 2016
Thank you, Azzi. Exactly what I need!
Azzi Abdelmalek
Azzi Abdelmalek el 22 de Ag. de 2016
If that s what you need then accept the answer.

Iniciar sesión para comentar.


Thalles Leite
Thalles Leite el 18 de Ag. de 2016
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 el 22 de Ag. de 2016
Can anyone help me?
  1 comentario
Azzi Abdelmalek
Azzi Abdelmalek el 22 de Ag. de 2016
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

Iniciar sesión para comentar.

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by