Cody

Solution 1728236

Submitted on 16 Feb 2019
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 = [1:10]; y_correct =[1:10;1:10]; rows=2; assert(isequal(consIdenticalRowMatrix(x,rows),y_correct)) x=1:5; rows=5; y_correct=[x;x;x;x;x]; assert(isequal(consIdenticalRowMatrix(x,rows),y_correct))

Unable to perform assignment because the indices on the left side are not compatible with the size of the right side. Error in consIdenticalRowMatrix (line 2) ans(1:rows,:)=x; Error in Test1 (line 4) assert(isequal(consIdenticalRowMatrix(x,rows),y_correct))

Suggested Problems

More from this Author1