Cody

# Problem 45456. Construcción de matrices a partir de vectores

Solution 2216102

Submitted on 17 Apr 2020 by Adrian Cobo Garcia
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   Pass
A=[1 2 2 1; 2 2 3 3;2 3 3 4; 1 3 4 4] c=[1 2 3 4]; d=[2 3 4]; b=[2 3]; a=1; assert(isequal(create_matrix(a, c, d, b), A))

A = 1 2 2 1 2 2 3 3 2 3 3 4 1 3 4 4 y = 1 y = 1 2 y = 1 2 2 y = 1 2 2 1 y = 1 2 2 1 0 0 0 0 y = 1 2 2 1 0 2 0 0 y = 1 2 2 1 0 2 3 0 y = 1 2 2 1 0 2 3 3 y = 1 2 2 1 0 2 3 3 0 0 0 0 y = 1 2 2 1 0 2 3 3 0 0 0 0 y = 1 2 2 1 0 2 3 3 0 0 3 0 y = 1 2 2 1 0 2 3 3 0 0 3 4 y = 1 2 2 1 0 2 3 3 0 0 3 4 0 0 0 0 y = 1 2 2 1 0 2 3 3 0 0 3 4 0 0 0 0 y = 1 2 2 1 0 2 3 3 0 0 3 4 0 0 0 0 y = 1 2 2 1 0 2 3 3 0 0 3 4 0 0 0 4 y = 1 2 2 1 0 2 3 3 0 0 3 4 0 0 0 4 y = 1 2 2 1 2 2 3 3 0 0 3 4 0 0 0 4 y = 1 2 2 1 2 2 3 3 2 0 3 4 0 0 0 4 y = 1 2 2 1 2 2 3 3 2 0 3 4 1 0 0 4 y = 1 2 2 1 2 2 3 3 2 0 3 4 1 0 0 4 y = 1 2 2 1 2 2 3 3 2 0 3 4 1 0 0 4 y = 1 2 2 1 2 2 3 3 2 3 3 4 1 0 0 4 y = 1 2 2 1 2 2 3 3 2 3 3 4 1 3 0 4 y = 1 2 2 1 2 2 3 3 2 3 3 4 1 3 0 4 y = 1 2 2 1 2 2 3 3 2 3 3 4 1 3 0 4 y = 1 2 2 1 2 2 3 3 2 3 3 4 1 3 0 4 y = 1 2 2 1 2 2 3 3 2 3 3 4 1 3 4 4 y = 1 2 2 1 2 2 3 3 2 3 3 4 1 3 4 4 y = 1 2 2 1 2 2 3 3 2 3 3 4 1 3 4 4 y = 1 2 2 1 2 2 3 3 2 3 3 4 1 3 4 4 y = 1 2 2 1 2 2 3 3 2 3 3 4 1 3 4 4

### Community Treasure Hunt

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

Start Hunting!