Cody

Problem 42451. Vertically stack two vectors

Solution 934711

Submitted on 11 Aug 2016
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 = [5 3] B = [2 1] C_correct = [5 3 ; 2 1]; assert(isequal(stack(A,B),C_correct))

A = 5 3 B = 2 1 C = 0 0 0 0 C = 5 3 0 0

Error using stack (line 4) Undefined function or variable 'I'.