addpoints(h,x,y,z) only plots x & y values

1 visualizzazione (ultimi 30 giorni)
Andrew Cruce
Andrew Cruce il 31 Dic 2016
Risposto: dpb il 1 Gen 2017
I am trying to plot a 3d line generated from GPS data. I have used addpoints(h,x,y) followed by drawnow and that works fine for 2d data. When I add height data and use the addpoints(h,x,y,z) I still get a 2d graph layout and the same result as if I used addpoints(h,x,y). I've checked and z is nonzero. How do I make this type of plot?
thanks for any help.

Risposte (1)

dpb
dpb il 1 Gen 2017
The orientation appears to be xy by default; use the 3D rotation tool to manually orient to see the third dimensions or set viewing angle programmaically. The data are there, they're just the x-y projection by default orientation of axes.

Categorie

Scopri di più su Graphics Performance in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by