Sudden error in fplot?
Ältere Kommentare anzeigen
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?
Antworten (1)
Walter Roberson
am 12 Nov. 2017
0 Stimmen
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?
Kategorien
Mehr zu Calculus finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!