Saturday, 15 January 2011

How to plot x+y in MatLab using ezplot -



How to plot x+y in MatLab using ezplot -

i tried ezplot in matlab

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

but got next errors:

error using inlineeval (line 14) error in inline look ==> 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{:});

i think forgot set multiplication sign (*). seek this:

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

matlab

No comments:

Post a Comment