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 commentaires

Adam
Adam le 25 Jan 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 le 25 Jan 2017
Modifié(e) : Jan le 25 Jan 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.

Connectez-vous pour commenter.

 Réponse acceptée

Jan
Jan le 25 Jan 2017
Modifié(e) : Jan le 25 Jan 2017

1 vote

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.

Plus de réponses (0)

Catégories

En savoir plus sur Function Creation dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by