Putting together matlab plots into one
1 次查看(过去 30 天)
显示 更早的评论
Dear All
I have 8 separae matlab plots. Is there a way to put them into one matab figure of such as 2x4? I tried to use subplot but can't really figure it out. Help me
0 个评论
回答(1 个)
David Sanchez
2013-7-22
the first 2 indexes in subplot are the number of row and column plots in your figure.
subplot(2,4,1)
% your plot comomand here
subplot(2,4,2)
% your escond plot command here
subplot(2,4,3)
% and go on....
...
subplot(2,4,8)
% your last plot command here
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!