<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hello,<br>I want to compare roots of a polynomial with a number. But it gives error. Consider a simple e.g.,<br><br>a = [2 3];<br>s = %s;<br>x = s^2 - 5*s + 6;<br>r = roots(x); r1 = [roots(x)]';<br>t1 = type(a);<br>t2 = type(r);<br>a > 2<br>r > 2<br><br>It does the comparison for a (done for verification) but gives the following error for r and r1, though their types are same,<br><br>Undefined operation for the given operands<br>check or define function %s_2_s for overloading<br><br>I tried in versions 4.1 and 4.1.2. Please guide. Thanks.<br><br>Sincerely,<br>Inderpreet<br><br><br><br><br></td></tr></table><br>