fill a matrix from vectors

How I can fill matrix coefficients by vectors in matlab code

1 件のコメント

Jos (10584)
Jos (10584) 2015 年 10 月 16 日
You lost me. Can you rephrase your question and provide an elaborated example of the input(s) and expected output?

サインインしてコメントする。

回答 (2 件)

Thorsten
Thorsten 2015 年 10 月 15 日

0 投票

v1 = [1 2 3];
v2 = [3 4 5];
M = [v1; v2]

5 件のコメント

kokomy
kokomy 2015 年 10 月 15 日
編集済み: Walter Roberson 2015 年 10 月 16 日
if I have V1,V2,V3,V4
M=[V1,V2;V3,V4]
for 2x2 matrix in the simple case
but in the case where the coefficients of the matrix change form 2x2 to 2x3 or 2x4 how I can behave in this case M(k,m)
kokomy
kokomy 2015 年 10 月 16 日
can you please give me the help in my question
Walter Roberson
Walter Roberson 2015 年 10 月 16 日
M = [V1, V2, V3; V4, V5, V6];
??
kokomy
kokomy 2015 年 10 月 16 日
Thank's but if M coefficients change during the program assumed that M have (k,m)elements, we had the vectors elements then k and m change i.e take differents values for the formation of our matrix M
Walter Roberson
Walter Roberson 2015 年 10 月 16 日
I was right, you need the link I provided about creating variables in a loop.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2015 年 10 月 15 日

コメント済み:

2015 年 10 月 16 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by