Filter löschen
Filter löschen

Convert a 3D plot to an array?

1 Ansicht (letzte 30 Tage)
Paul C
Paul C am 23 Jun. 2019
Kommentiert: Adam Danz am 24 Jun. 2019
Hi
I have 3 vectors (x,y,z) which i plot using the plot3 function. I get something like this:
test.png
I need to convert this to a 3D array, in 2 ways :
  • as is (data as dots)
  • as a line plot, ie as if i plotted the same vectors but as a line as shown below
test2.png
How can i do this? I need a 3D variable describing the above object to manipulate after...
Any help would be appreciated!
Thank you
  1 Kommentar
Adam Danz
Adam Danz am 24 Jun. 2019
"I need to convert this to a 3D array, in 2 ways :
  • as is (data as dots)"
If you're already doing that, what do you need specifically?
" * as a line plot, ie as if i plotted the same vectors but as a line as shown below"
plot(x,y,z,'-')

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by