I have a cubic equation:
roots([9E-10 -2E-06 0.0014 0.039])
I am trying to plot the equation for y values of 0.0 to 0.5 (which I know gives x values in the range of 0 to 700. (i.e. the equation has been fit to this data)
r=0.0039-y; %where y ranges from 0.0 to 0.5
[eqnroots]=roots([9E-10 -2E-06 0.0014 r])
I find the real root using
isreal(eqnroots(n));
and then plot the equation but it does not give the correct x/y range and fit looks wrongs.
