URGENT!!!!!, AM NEW TO MATLAB AND I NEED THIS PROGRAM

how do i go about WRITING A FUNCTION THAT WILL SOLVE CUBIC EQUATIONS whereby i would only have to input values and the equations solved. PLS URGENT ANSWER NEEDED.

3 Comments

Hang on - I'm getting my car keys right now. I'll be there in 5 minutes!
^hahahaha. As a load of people have helped me and as I haven't helped anyone yet, I think I can handle this one.
[ans] = cubic_fcn(a,b,c,d,x)
ans = a*x^3 + b*x^2 + c*x + d
"a" cubic fubction, it will get more complicated to change the signs

Answers (0)

This question is closed.

Asked:

on 4 May 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!