The indices of the input->output do not match (i.e. y(end) corresponds to x(1)). Was this done on purpose?
I really don't think the "y_correct" answer in test suite is correct.
the test suite answer is wrong
flipud
Either the test suite is Incorrect or OP has not explained the problem properly.
Anyway, it needs to be changed.
306 Solvers
Back to basics 17 - white space
245 Solvers
Rotate input square matrix 90 degrees CCW without rot90
380 Solvers
Test if two numbers have the same digits
187 Solvers
321 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!