Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to plot different views by subplot

3 views
Skip to first unread message

Yu Luo

unread,
May 31, 2009, 10:49:02 PM5/31/09
to
How to plot different views of a 3D plot in a single figure window without re-running the plot3 function?

subplot(2,1)
plot3(X,Y,Z);

subplot(2,2)
plot3(X,Y,Z);
view(2);

Any better solution without running plot3 twice?

Thanks

Susanne Seher-Wei�

unread,
Jun 2, 2009, 3:09:19 AM6/2/09
to
"Yu Luo" <gol...@gmail.com> schrieb im Newsbeitrag
news:gvvfiu$qg4$1...@fred.mathworks.com...

Maybe like this:

subplot(2,1,1)
hp=plot3(X,Y,Z);
hs =subplot(2,1,2);
%plot3(X,Y,Z);
copyobj(hp,hs);
view(2);

HTH Susanne


Yu Luo

unread,
Jun 2, 2009, 4:44:02 AM6/2/09
to
"Susanne Seher-Wei" <susanne.s...@dlr.de> wrote in message <78k1h2F...@mid.dfncis.de>...

Thanks!

0 new messages