creating a matrix using integers and other matrices
Show older comments
so let's say that I have two 1x3 matrices, a & b, and I want to create another matrix, c, where c is [1,2,a;3,4,b], such that c is a 2x5 matrix, how can I do that?
Answers (1)
James Tursa
on 17 Sep 2018
Edited: James Tursa
on 17 Sep 2018
Exactly what you have already written:
c = [1,2,a;3,4,b];
What am I missing?
1 Comment
Alexandria Ragsdale
on 18 Sep 2018
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!