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
Solution Comments
Show commentsProblem Recent Solvers38
Suggested Problems
-
Determine Whether an array is empty
808 Solvers
-
774 Solvers
-
Replace 0 indices in array with 1's
141 Solvers
-
Matrix element wise multiplication
113 Solvers
-
1115 Solvers
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!