Good morning, I have problems with inline and fplot. Why the command window shows me these errors? I tried to uninstall Matlab, but nothing... Thank you all Ansel

2 comentarios

Adam
Adam el 25 de En. de 2017
You should paste in the error message. That image is too low resolution for me to read clearly. Maybe others can though.
Jan
Jan el 25 de En. de 2017
Editada: Jan el 25 de En. de 2017
@Adam: I can read the image, when I open it in a new window. But a text copy would be more useful to avoid this indirection.
@Ansel: Please avoid the # in the tags. Thanks.

Iniciar sesión para comentar.

 Respuesta aceptada

Jan
Jan el 25 de En. de 2017
Editada: Jan el 25 de En. de 2017

1 voto

inline will be removed in a future release. Use Anonymous Functions instead.
So give this a try:
f = @(x) 2*x+2;
fplot(f, [0, 5]);
This equals the example in the docs of fplot.
Anyway, Matlab's error message is not useful.

Más respuestas (0)

Categorías

Más información sobre Function Creation en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de En. de 2017

Editada:

Jan
el 25 de En. de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by