MATLAB: Problem Solving Symbolic Inequalities

symbolic inequalities solve

I'm trying to use Matlab to solve inequalities like the example below, but only have partial sucess, with other times getting the result shown below.
EDU>> solution=solve('((k1^2 + 1080.0*k1 – 2948400.0)/(k1 – 4660.0))>0')
solution = matrix([[solve([0.0 < (k1^2 + 1080.0*k1 – 2948400.0)/(k1 – 4660.0)], [k1])]])
I know that the solutions for this example are -2340<k1<1260 & k1>4660, is there something that I can do differently to make this work in Matlab? Thanks.

Best Answer

Note that by default solve is in complex mode, i.e., you are looking for all solutions within the complex numbers. Try
solution=feval(symengine, 'solve', '((k1^2 + 1080.0*k1 - 2948400.0)/(k1 - 4660.0))>0', 'k1', 'Real')