I have a cubic equation whose coefficients are varying according to a parameter say w in the following manner:
a=2/w;b=(3/w+3);c=(4/(w-9))^3;d=(5/(w+6))^2;a*(x^3)+b*(x^2)+c*x+d=0
I want to solve the above equation using a m-file not in the command window. Is it possible ? I am fairly new to MATLAB, so help would be appreciated.
Best Answer