How can I make a subplot of subplots?
206 views (last 30 days)
Show older comments
Carolina Scandellari on 29 Jan 2020
Answered: Ganesh Regoti on 3 Feb 2020
Hi everyone, I'd like to create a figure (3 rows and 2 columns) using a for loop: every row is made up of other 2 subplots that I create with a function that is in the loop. Do you know how? This is the code I am currently using:
chosen_snr=[high, mid, low];
Rik on 30 Jan 2020
As Mohammad implies: do you need to create the axes this way in your function, or would it also be possible to pass handles as variables?
Ganesh Regoti on 3 Feb 2020
As per my knowledge, it is not possible to create subplot within subplot as the function returns the axis by default. Instead you can create 3 rows, 4 columns sub-plot for your purpose.
You can refer following link for more understanding
Also refer about the tiledlayout which might be helpful
Hope this helps!
Find more on Subplots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!