Copy array columns to from matrix

12 Ansichten (letzte 30 Tage)
Yaju Rajbhandari
Yaju Rajbhandari am 12 Apr. 2020
Beantwortet: Image Analyst am 12 Apr. 2020
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 Kommentar
James Tursa
James Tursa am 12 Apr. 2020
Please give a small example with inputs and desired output. What are the variable names? What do the structure fields look like?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Image Analyst
Image Analyst am 12 Apr. 2020
Use commas and brackets:
matrix2d = [colVector1, colVector2, colVector3, colVector4, colVector5];

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by