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.
28615 Solvers
Find the peak 3n+1 sequence value
1122 Solvers
388 Solvers
Generate binary combinations for a given number of bit(s)
69 Solvers
07 - Common functions and indexing 5
325 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!