Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [1 5 8 9 7 4 5];
y_correct = roots(x);
assert(isequal(return_root(x),y_correct))
x = [1 0 0 48 50];
y_correct = roots(x);
assert(isequal(return_root(x),y_correct))
x = [11 55 4 6 ];
y_correct = roots(x)
assert(isequal(return_root(x),y_correct))
y_correct =
-4.9488 + 0.0000i
-0.0256 + 0.3310i
-0.0256 - 0.3310i
|
17213 Solvers
Extract leading non-zero digit
1205 Solvers
Return the first and last character of a string
3447 Solvers
07 - Common functions and indexing 4
319 Solvers
Back to Basics - Find no. of elements in a matrix?
216 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!