I'm currently writing a matlab problem that has one of this command line x^4+c3*x^3+c2*x^2+c1*x+c0=0. My aim is to come up with the values of x. All the c3,c2,c1,c0 parameters have been properly defined. However it keeps showing the Error File that the assignment statements cannot produce a result. Could I ask why is this so?
hi evoplus,
if you want solve this equation , you should enter >>roots([1 c3 c2 c1 c0])
in MATLAB command window till MATLAB find roots of your equation.
good luck.
hi evoplus,
if you want solve this equation , you should enter >>roots([1 c3 c2 c1 c0])
in MATLAB command window till MATLAB find roots of your equation.
good luck.
I tried ur suggestion inputing the roots ([1 c3 c2 c0]) after the x^4+c3*x^3+c2*x^2+c1*x+c0=0 but it still says that the assignment statement ( which is the x^4+c3*x^3+c2*x^2+c1*x+c0=0 ) cannot produce the result. All my c value can generate result. So have I missed out something?