Subplotting programmatically for varying amounts of subplots
Mostra commenti meno recenti
Hi, It may be that there is terminology or expressions I am not aware of and that this question has already been answered but I cannot find it. I have a number of files to deal with, usually 4, which I can competently subplot in a loop. If a=the number of files then i designated the subplot area as rows=a/2 and columns = a. This is fine for when I have four files, what I do not know how to handle is the case where a =3 or 5.
I would like to know how to approach creating another figure when necessary and to handle the cases where a is less than 4.
I now I could just plot more graphs on a single page but they would be unreadable once transferred into the pdf report generator I am using.
2 Commenti
Jan
il 5 Apr 2017
If n is the number of diagrams, your figure should contain n/2 rows and n columns? Do you mean n/2 columns?
Stephen Devlin
il 5 Apr 2017
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Subplots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!