Stacking vectors into a matrix - MATLAB Cody - MATLAB Central

Problem 52030. Stacking vectors into a matrix

Given a 4x1 vector a, and a 2x2 matrix b, create a matrix M in which the first 2 rows are each identical to a and the last two rows correspond to two copies of the matrix b stacked next to each other.
In other words, if a = [ ] and b = [ ] , then
M = [ ].

Solution Stats

72.22% Correct | 27.78% Incorrect
Last Solution submitted on Apr 30, 2025

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8

Problem Recent Solvers37

Suggested Problems

More from this Author52

Problem Tags

Community Treasure Hunt

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

Start Hunting!