MATLAB Answers

when i was plotting i reveived this error, please help me out....

4 views (last 30 days)
SAI ARJUNKUMAR KADALI
SAI ARJUNKUMAR KADALI on 3 Oct 2021
Answered: Jan on 3 Oct 2021
The following error was reported evaluating the function in FunctionLine update: Not enough input arguments.
fun = @(x) exp(-x) - 3.*x.^2 + 26
fplot(fun,[0 5])
grid on
  4 Comments

Sign in to comment.

Answers (1)

Jan
Jan on 3 Oct 2021
For me it works:
fun = @(x) exp(-x) - 3.*x.^2 + 26
fun = function_handle with value:
@(x)exp(-x)-3.*x.^2+26
fplot(fun,[0 5])
grid on
So if this fails for you, you are running another code. maybe you have redefined exp()?

Products

Community Treasure Hunt

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

Start Hunting!

Translated by