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.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 7 Jun. 2017

0 Stimmen

Make one of the dimensions
find(mod(N, 1 : floor(sqrt(N)))==0, 1, 'last')
and the other one N divided by that.

Weitere Antworten (1)

Akshay Kumar
Akshay Kumar am 8 Aug. 2018

0 Stimmen

You can check this code, might be helpful Click here

Community Treasure Hunt

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

Start Hunting!

Translated by