Cody

Problem 42520. Rank of matrix

Solution 2872895

Submitted on 24 Aug 2020
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   Fail
x=[3 5; 9 6] y = 2; assert(isequal(rank(x),y))

x = 3 5 9 6 z = 3 5

Error using length Too many output arguments. Error in rank (line 3) [m n]=length(z) Error in Test1 (line 3) assert(isequal(rank(x),y))

2   Fail
x=[1 1; 1 1] y = 1; assert(isequal(rank(x),y))

x = 1 1 1 1 z = 1

Error using length Too many output arguments. Error in rank (line 3) [m n]=length(z) Error in Test2 (line 3) assert(isequal(rank(x),y))

Suggested Problems

More from this Author18

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!