Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
A=[1 2; 3 4]
B=[5 6;7 8]
y_correct= [ 1 2 5 6;
3 4 7 8]
assert(isequal(addMatrix(A,B),y_correct))
A =
1 2
3 4
B =
5 6
7 8
y_correct =
1 2 5 6
3 4 7 8
|
Return the 3n+1 sequence for n
6168 Solvers
Generate a random matrix A of (1,-1)
211 Solvers
246 Solvers
Switch matrix to a column vector
260 Solvers
273 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!