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 Kommentare

Adam
Adam am 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 am 25 Jan. 2017
Bearbeitet: Jan am 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.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Jan
Jan am 25 Jan. 2017
Bearbeitet: Jan am 25 Jan. 2017

1 Stimme

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.

Weitere Antworten (0)

Kategorien

Mehr zu Function Creation finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 25 Jan. 2017

Bearbeitet:

Jan
am 25 Jan. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by