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 Comments

Adam
Adam on 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 on 25 Jan 2017
Edited: Jan on 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.

Sign in to comment.

 Accepted Answer

Jan
Jan on 25 Jan 2017
Edited: Jan on 25 Jan 2017
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.

More Answers (0)

Categories

Asked:

on 25 Jan 2017

Edited:

Jan
on 25 Jan 2017

Community Treasure Hunt

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

Start Hunting!