Matlab Error- fplot();

Posted by udsha on Stack Overflow See other posts from Stack Overflow or by udsha
Published on 2010-05-29T18:34:24Z Indexed on 2010/05/29 18:42 UTC
Read the original article Hit count: 174

Filed under:
|
>> fplot(fh,[-2 4])
??? Undefined function or variable "e".

Error in ==> myfun at 3
Y(:,2) = e(:).^x;
Error in ==> fplot at 102
x = xmin; y = feval(fun,x,args{4:end});

I tried to plot two function using this m file.

function Y = myfun(x)
Y(:,1) = 3*x;
Y(:,2) = e(:).^x;

© Stack Overflow or respective owner

Related posts about matlab

Related posts about plot