How to plot N subplots?

3 ビュー (過去 30 日間)
Ibro Tutic
Ibro Tutic 2017 年 6 月 7 日
回答済み: Akshay Kumar 2018 年 8 月 8 日
I have a GUI where a user can select what plots they want from multiple possibilities. I am trying to find a way to robustly plot N plots on a subplot and have it look clean. I was thinking of finding the greatest common factors of the number, N? I'm not really sure how to go about this.

採用された回答

Walter Roberson
Walter Roberson 2017 年 6 月 7 日
Make one of the dimensions
find(mod(N, 1 : floor(sqrt(N)))==0, 1, 'last')
and the other one N divided by that.

その他の回答 (1 件)

Akshay Kumar
Akshay Kumar 2018 年 8 月 8 日
You can check this code, might be helpful Click here

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by