You need to correct your test suite and assign the value 2 to your y_correct variable :)
Faulty test suite has been corrected and additional test cases have been added.
The assert() statement should say: assert(isequal(your_fcn_name(x),rs_correct))
1868 Solvers
1067 Solvers
373 Solvers
Sort complex numbers into complex conjugate pairs
101 Solvers
73 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!