Why do I keep getting this error for subplot? Am I missing a toolbox or is the code wrong?
3 次查看(过去 30 天)
显示 更早的评论
Error using subplot
Unknown command option.
Error in (line 136)
h = subplot(2,1,[.12 .08],[.10 .08],[.12 .02])
2 个评论
VBBV
2023-3-17
编辑:VBBV
2023-3-17
Do you want the subplot spacing to be more compact ? or working with the below custom function ?https://in.mathworks.com/matlabcentral/fileexchange/27991-tight_subplot-nh-nw-gap-marg_h-marg_w
if so, then you need to call that function as given in instruction
[ha, pos] = tight_subplot(2,1,[.12 .08],[.10 .08],[.12 .02])
回答(1 个)
Jan
2023-3-17
doc subplot
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?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!