Cody

Problem 43316. Display positive elements of matrix.

Solution 2371203

Submitted on 25 May 2020 by Karl Ezra Pilario
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 = 1:10; y_correct = 1:10; assert(isequal(your_fcn_name(x),y_correct))

2   Pass
x = [16 2 3 -3; 5 -11 10 8; 9 -7 6 12; 4 14 -15 1]; y_correct = [ 16 ; 5 ; 9 ; 4 ; 2 ; 14 ; 3 ; 10 ; 6 ; 8 ; 12 ; 1]; assert(isequal(your_fcn_name(x),y_correct))