Sudden error in fplot?
显示 更早的评论
I am trying to use fplot (which I have been using for a long time), but now when I try to graph this in a script file called 'test':
syms x
fplot(sin(x))
it gives me this error:
Index exceeds matrix dimensions.
Error in fplot (line 56)
lims = args{2};
Error in test (line 2)
fplot(sin(x))
I can't figure out what's wrong. It used to work perfectly before but I'm not sure why this isn't working. Could someone explain to me what is going on?
回答(1 个)
Walter Roberson
2017-11-12
0 个投票
You are using an older version of MATLAB, in which fplot required two arguments. After a few releases, a default was used for the second argument, but not at the beginning.
Is it possible that you recently started using an older version of MATLAB than you had been using?
类别
在 帮助中心 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!