MATLAB: Symbolic variable

mfile

'G' is a function of symbolic variable of 'b' the solve for b gives d=solve(G) a symbolic n*1 matrix but I'm not able to find the min or max even >(greater than sign)of this matrix. Matlab shows this following error Undefined function or method 'gt' for input arguments of type 'sym'.

Best Answer

re=solve(GG); will return symbolic numbers. You need to apply double() to the symbolic numbers to convert them to floating point numbers.