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 CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by