Sudden error in fplot?
Mostrar comentarios más antiguos
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?
Respuestas (1)
Walter Roberson
el 12 de Nov. de 2017
0 votos
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?
Categorías
Más información sobre Calculus en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!