How can I have different 3D and 2D plot at the same time?

5 ビュー (過去 30 日間)
Ayob
Ayob 2013 年 4 月 26 日
I have a large program with many loops.I have many graphs in 2D and 3D modes which are coded by plot() and plot3() functions at the same time. I don't want to deactivate all plot and plot3 function except one in order to get result from just that one plot and repeat it for other plots. I want to have all plot and plot3 graphs in different windows at the same time with just one run. I don't know how to do this.
Note: Matlab put all graphs in just one window and this is bad for me,because there is no relation between my graphs though they are all in one program.

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 4 月 26 日
You should look at figure() and subplot(). And you should read the guidance I wrote in http://www.mathworks.co.uk/matlabcentral/answers/22208-show-figure#comment_48401
  2 件のコメント
Ayob
Ayob 2013 年 4 月 26 日
I think subplot and figure don't support 3D graphs like plot3 ,Do they?
Walter Roberson
Walter Roberson 2013 年 4 月 26 日
Yes, they do.
There is a limitation that all subplot() on the same figure must use the same colormap (if they are using pseudocolor, which is the default for surfaces). Different figure() can have different colormap.
In MATLAB, a figure() is the same thing as a window.

サインインしてコメントする。

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by