From: Steven Lord on

"Jake " <nathan.a2000(a)googlemail.com> wrote in message
news:hpvi3o$4l8$1(a)fred.mathworks.com...
> Okay i resolved the other errors but now iam getting a new one
>
> if( subf(f,a) * subf(f,m) > 0)
>
> Why is this statement wrong?

The greater-than operator isn't defined for sym objects. If SUBS returns a
sym object, you will need to convert it into a numeric array using DOUBLE
before comparing it to 0.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ


First  |  Prev  | 
Pages: 1 2
Prev: creating symbolic variables
Next: binary-grayscale