plotting columns in figures?

1 回表示 (過去 30 日間)
Mary292
Mary292 2015 年 1 月 22 日
編集済み: Mary292 2015 年 3 月 4 日
shgbiasglnawlgbvlkabvf gsiaoliug,kbak.bg aelighoiabgfkab ish;oaigbagb fsihgoBGKRA.DGD.BSJVFASKJVG rhg;aogi

採用された回答

Chris Barnhart
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.
  1 件のコメント
Bob Johnson
Bob Johnson 2015 年 2 月 25 日
Did you find out what you had to put in place of the???

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by