I have two figure in my output result but I want to show both figure in a single figure, How can I ?

3 ビュー (過去 30 日間)
RS
RS 2013 年 8 月 10 日
回答済み: Farhad Sedaghati 2015 年 7 月 17 日
I have two figure in my output result but I want to show both figure in a single figure, How can I ?
figure; figure;
in output there are two figure but I want to club/combine both figure in a figure1/figure2, How can I?

回答 (3 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 8 月 10 日
You can use hold on command
  1 件のコメント
RS
RS 2013 年 8 月 10 日
using hold on it is giving result in same plot but i need result to be shown as subplot, is it possible that after making two figure 1 figure 2 and then to club in a single figure 1 or 2 ?

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


per isakson
per isakson 2013 年 8 月 10 日
Search the FEX:
and possibly more
  1 件のコメント
RS
RS 2013 年 8 月 11 日
ok now I got in a single window 5 figure using
x = -9*pi:.001:9*pi;
y = sin(x)./x;
subfigure(3,2,[1 2],'menubar','none')
plot(x,y)
y2 = cos(x)./x;
subfigure(3,2,[5 6],'menubar','none')
plot(x,y2),ylim([-1 1])
subfigure(3,4,[6 7],'menubar','none')
plot(x,1./y),ylim([-200 200])
[x,y,z] = peaks(40);
H = subfigure(3,4,{5 8},'menubar','none');
mesh(H(3),x,y,z)
surf(H(4),x,y,z)
How can I save as it is /mean in a single window without taking screenshot mean in other format like pdf or jpeg?

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


Farhad Sedaghati
Farhad Sedaghati 2015 年 7 月 17 日
This following function helps you to put several fig files next to each other as subplots: http://www.mathworks.com/matlabcentral/fileexchange/51236-subplot It is important to note that all the saved fig file should be 2D and single plot (No subplots)

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by