Filter löschen
Filter löschen

How to plot projections of plot3(X,Y,Z) on same 3D graph

29 Ansichten (letzte 30 Tage)
Dimitar am 11 Feb. 2014
Kommentiert: Qun Wu am 23 Mai 2017
How can I plot on same 3D graph of plot3, the projections on XY and so on.
X Y Z are vectors similar to the matlab example .
I would like the projections to be on the walls xy xz .. planes like shadows. Similar to what contour plot is doing for 3D surface plots.

Antworten (1)

Walter Roberson
Walter Roberson am 11 Feb. 2014
Depending on how your X and Y are structured, you may wish to consider using meshc
Are the points in a rectangular grid or are they scattered?
  2 Kommentare
Walter Roberson
Walter Roberson am 11 Feb. 2014
Bearbeitet: Walter Roberson am 11 Feb. 2014
I see that you adjusted the question to indicate the the inputs are vectors, presumably not happening to fall into a nice grid.
In such a case:
plot3(X, Y, 0*Z); %projection from Z+
plot3(X, 0*Y, Z); %projection from Y-
plot3(0*X, Y, Z); %projection from X+
I might have the "Y-" wrong.
Qun Wu
Qun Wu am 23 Mai 2017
Someone owns you a 'Thank you', I guess.

Melden Sie sich an, um zu kommentieren.


Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange



Community Treasure Hunt

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

Start Hunting!

Translated by