Quadratic formula using function with a single input and single output?
Ältere Kommentare anzeigen
I am trying to write a code to solve the quadratic formula. But the function I am using uses the input: coef (the coefficients in a quadratic function as [a b c]) and the output: roots (which displays the positive and negative roots as a 2x1 array).
I know how to write the code if the inputs were a, b, and c however, I'm stuck on how to correlate coef with [a b c].
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Physics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!