Cody

Solution 2045821

Submitted on 4 Dec 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
A=[1 0;0 1]; X=[3 5]; y_correct = [1 0; 0 1;3 5]; assert(isequal(Add_row(A,X),y_correct))

A = 1 0 0 1 3 5

Output argument "ans" (and maybe others) not assigned during call to "Add_row". Error in Test1 (line 3) assert(isequal(Add_row(A,X),y_correct))

2   Fail
A=[1 0 0;0 1 0 ]; X=[1 2 3]; y_correct = [1 0 0;0 1 0;1 2 3]; assert(isequal(Add_row(A,X),y_correct))

A = 1 0 0 0 1 0 1 2 3

Output argument "ans" (and maybe others) not assigned during call to "Add_row". Error in Test2 (line 3) assert(isequal(Add_row(A,X),y_correct))