Matlab Help: EZplot for x^2 – 6x – 12

  • Context: MATLAB 
  • Thread starter Thread starter mech-eng
  • Start date Start date
  • Tags Tags
    Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 4K views
mech-eng
Messages
826
Reaction score
13
d = x^2 –6*x – 12;

>> ezplot(d)
Error using inlineeval (line 15)
Error in inline expression ==> x.^2 –6.*x – 12
Error: The input character is not valid in MATLAB statements or
expressions.

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 469)
[y, f, loopflag] = ezplotfeval(f, x);

Error in ezplot (line 145)
[hp, cax] = ezplot1(cax, f{1}, vars, labels, args{:});


what is the problem here?
 
Physics news on Phys.org