Hi,
I have a symbolic expression that can be evaluated to true / false, and I would like to get that result back to MATLAB.
This is what I have tried:
>> sym('1>0')ans =0 < 1>> simplify(sym('1>0'))ans =TRUE>> double(simplify(sym('1>0')))??? Error using ==> evalUndefined function or variable 'TRUE'.Error in ==> sym.sym>sym.double at 937 X = eval(Xstr);>> logical(simplify(sym('1>0')))??? Error using ==> logicalConversion to logical from sym is not possible.>>
Thanks Joan
Best Answer