fill a matrix from vectors
8 views (last 30 days)
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
Walter Roberson
on 16 Oct 2015
I was right, you need the link I provided about creating variables in a loop.
See Also
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!