2014-10-31 59 views
-2

我試圖ezplot MatLab中如何使用ezplot

ezplot('1.395x-1.935y+16.65') 

,但得到了下面的錯誤情節MatLab的X + Y:

Error using inlineeval (line 14) 
Error in inline expression ==> 1.395x-1.935y+16.65 
Error: Unexpected MATLAB expression. 
Error in inline/feval (line 33) 
    INLINE_OUT_ = inlineeval(INLINE_INPUTS_, INLINE_OBJ_.inputExpr, INLINE_OBJ_.expr); 
Error in ezplotfeval (line 51) 
    z = feval(f,x(1)); 
Error in ezplot>ezplot1 (line 468) 
    [y, f, loopflag] = ezplotfeval(f, x); 

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

回答

1

我想你忘了把一個乘號(*) 。試試這個:

ezplot('1.395*x-1.935*y+16.65')