fill a matrix from vectors
Show older comments
How I can fill matrix coefficients by vectors in matlab code
1 Comment
Jos (10584)
on 16 Oct 2015
You lost me. Can you rephrase your question and provide an elaborated example of the input(s) and expected output?
Answers (2)
Thorsten
on 15 Oct 2015
v1 = [1 2 3];
v2 = [3 4 5];
M = [v1; v2]
5 Comments
kokomy
on 15 Oct 2015
Edited: Walter Roberson
on 16 Oct 2015
kokomy
on 16 Oct 2015
Walter Roberson
on 16 Oct 2015
M = [V1, V2, V3; V4, V5, V6];
??
kokomy
on 16 Oct 2015
Walter Roberson
on 16 Oct 2015
I was right, you need the link I provided about creating variables in a loop.
Walter Roberson
on 16 Oct 2015
0 votes
I have a suspicion that I need to post this:
Categories
Find more on Multidimensional Arrays 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!