problems using the subplot command in MatLab
3 次查看(过去 30 天)
显示 更早的评论
Hi, I faced this message when I used subplot command in MatLab: Attempt to execute SCRIPT subplot as a function:
回答(1 个)
Jan
2014-12-10
What is your current directory? I cannot test it currently, but this effect could happen, when the current directory is in the folder, which contains the help section of the subplot command.
cd(fileparts(which('suplot.m')))
subplot(1,2,1)
Then subplot.m is called, but this is a script which contains the help section as comments only.
If this is your problem, change to another folder.
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!