Copy array columns to from matrix
6 次查看(过去 30 天)
显示 更早的评论
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
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
2020-4-12
Use commas and brackets:
matrix2d = [colVector1, colVector2, colVector3, colVector4, colVector5];
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!