Cody

Problem 45477. Problem for beginners

Solution 2235742

Submitted on 26 Apr 2020 by Binbin Qi
  • Size: 20
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = reshape([1:10],[],1); y_correct = [1;3;4;5;7;8;10]; assert(isequal(your_fcn_name(x),y_correct))

2   Pass
x=reshape([10:-1:1],[],1); y_correct=[10;8;7;6;4;3;1]; assert(isequal(your_fcn_name(x),y_correct))

Suggested Problems

More from this Author9