Take the first column from matrix a, then insert the first column from matrix b, and so on. For example:
a = [1 2 3 4]; b = [5 6 7 8];
c = [1 5 2 6 3 7 4 8];
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers93
Suggested Problems
-
Find common elements in matrix rows
2720 Solvers
-
1798 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
14317 Solvers
-
Remove element(s) from cell array
2113 Solvers
-
903 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
The problem description and title have been improved while the test suite has been expanded to include matrices (not just vectors).