You really worked this down to minimum size!
Thanks, but it can actually be further reduced to almost half the size...
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 1+1i;
y_correct = 'I';
assert(isequal(your_fcn_name(x),y_correct))
|
2 | Pass |
%%
x = -1-1i;
y_correct = 'III';
assert(isequal(your_fcn_name(x),y_correct))
|
3 | Pass |
%%
x = 1-1i;
y_correct = 'IV';
assert(isequal(your_fcn_name(x),y_correct))
|
4 | Pass |
%%
x = -1+1i;
y_correct = 'II';
assert(isequal(your_fcn_name(x),y_correct))
|
537 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3623 Solvers
376 Solvers
463 Solvers
07 - Common functions and indexing 5
314 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!