How can I plot the functions sin(x) + 0.1/x + 2 , ln(x) - 1/x + 3 and cosh(x) - 5 using the ezplot tool?

>> ezplot (ln(x)-1/x + 3); Undefined function 'ln' for input arguments of type 'double'.
>> ezplot ln(x)-1/x + 3 Error using ezplot>ezplot1 (line 424) Error: Expression or statement is incomplete or incorrect.
Error in ezplot (line 145) [hp, cax] = ezplot1(cax, f{1}, vars, labels, args{:});
>> ezplot ln(x)((-1/x) + 3) Error using inlineeval (line 15) Error in inline expression ==> ln(x)((-1./x) + 3) Error: ()-indexing must appear last in an index expression.
Error in inline/feval (line 34) INLINE_OUT_ = inlineeval(INLINE_INPUTS_, INLINE_OBJ_.inputExpr, INLINE_OBJ_.expr);
Error in ezplotfeval (line 52) z = feval(f,x(1));
Error in ezplot>ezplot1 (line 467) [y, f, loopflag] = ezplotfeval(f, x);
Error in ezplot (line 145) [hp, cax] = ezplot1(cax, f{1}, vars, labels, args{:});
>> ezplot cosh(x) - 5 Error using ezplot>ezplot1 (line 424) Error: Expression or statement is incomplete or incorrect.
Error in ezplot (line 145) [hp, cax] = ezplot1(cax, f{1}, vars, labels, args{:});

Answers (0)

This question is closed.

Asked:

on 10 May 2013

Community Treasure Hunt

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

Start Hunting!