Why do I keep getting this error for subplot? Am I missing a toolbox or is the code wrong?
16 views (last 30 days)
Show older comments
Isabella Sciullo on 16 Mar 2023
Commented: Isabella Sciullo on 17 Mar 2023
Error using subplot
Unknown command option.
Error in (line 136)
h = subplot(2,1,[.12 .08],[.10 .08],[.12 .02])
Jan on 17 Mar 2023
Please read the documentation of the command: subplot or
You call this command like subplot(m,n,p), where m and n are the numbers of rows and columns, and p is the index of the subplot.
What do you expect the input [.12 .08],[.10 .08],[.12 .02] to do?
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!