MATLAB Merging matrix into a table - Matlab question

AI Thread Summary
The discussion revolves around merging a 1x5 structure variable, referred to as 'Node', with a separate 1x5 matrix variable. The goal was to assign specific values from the matrix to corresponding cells in the Node variable, such that cell 1 of Node contains the 1x1 value from the matrix, cell 2 contains the 1x2 value, and so forth. Initially, the user faced challenges, as they were only able to insert the entire matrix into each cell of Node. However, they later resolved the issue independently, successfully merging the two variables as intended.
nb89
Messages
37
Reaction score
0
I have a variable called 'Node' which has a 1x5 structure and each of the 5 cells is made up of other variables.
I now have a 1x5 matrix as a completely separate variable. I am trying to merge the two together, so that in cell 1 of the Node variable, i have the 1x1 value of the matrix, in cell 2 of the Node variable i have the 1x2 value of the matrix and so on.

At the moment all i can manage to do is get the whole matrix in each of the cells of the Node variable.

Hopefully i have made sense!

Thanks for any help.
 
Physics news on Phys.org
Actually don't worry, I've done it now :D
 

Similar threads

Replies
32
Views
4K
Replies
3
Views
1K
Replies
4
Views
2K
Replies
1
Views
2K
Replies
1
Views
1K
Replies
1
Views
3K
Back
Top