plotting columns in figures?
4 次查看(过去 30 天)
显示 更早的评论
shgbiasglnawlgbvlkabvf gsiaoliug,kbak.bg aelighoiabgfkab ish;oaigbagb fsihgoBGKRA.DGD.BSJVFASKJVG rhg;aogi
0 个评论
采纳的回答
Chris Barnhart
2015-1-22
I assume you want the data distributed as evenly as possible? (Avoiding 5 figs with 6 cols, and 1 fig with 1 col)
num_cols_base = floor(num_cols / num_figs); % all figures have this minimum number of cols
num_fig_w_extra = mod(num_cols, num_figs) % this many figures will have 1 more data col
num_fig_w_base = num_figs - num_figs_w_extra % this many figures have the base number
total_cols = (num_figs_w_base * num_cols_base) + (num_figs_w_extra * (1 + num_cols_base)); % sanity check
A double for loop using figure, and hold on and hold off does the rest.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!