Copy array columns to from matrix

I have multiple array with 5 data in a column. Now i need to copy these to a matrix
For eg 5 array of 5x1 strcuture now I need to form 1 matrix of 5x5 but coping the array into matrix columns by column how do is do this????

1 件のコメント

James Tursa
James Tursa 2020 年 4 月 12 日
Please give a small example with inputs and desired output. What are the variable names? What do the structure fields look like?

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

回答 (1 件)

Image Analyst
Image Analyst 2020 年 4 月 12 日

0 投票

Use commas and brackets:
matrix2d = [colVector1, colVector2, colVector3, colVector4, colVector5];

カテゴリ

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

製品

リリース

R2018a

質問済み:

2020 年 4 月 12 日

回答済み:

2020 年 4 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by