Merging matrix into a table - Matlab question

  • Context: MATLAB 
  • Thread starter Thread starter nb89
  • Start date Start date
  • Tags Tags
    Matlab Matrix Table
Click For Summary
SUMMARY

The discussion focuses on merging a 1x5 matrix into a 1x5 structure variable called 'Node' in MATLAB. The user initially struggled to insert individual matrix values into corresponding cells of the 'Node' variable, inadvertently placing the entire matrix in each cell. Ultimately, the user resolved the issue independently, indicating a successful implementation of the desired functionality.

PREREQUISITES
  • Understanding of MATLAB data structures, specifically cell arrays.
  • Familiarity with indexing in MATLAB.
  • Basic knowledge of matrix operations in MATLAB.
  • Experience with variable assignment in MATLAB.
NEXT STEPS
  • Research how to manipulate cell arrays in MATLAB.
  • Learn about MATLAB indexing techniques for efficient data retrieval.
  • Explore MATLAB's matrix manipulation functions.
  • Investigate best practices for variable assignment in MATLAB.
USEFUL FOR

MATLAB users, data analysts, and software developers looking to enhance their skills in data structure manipulation and matrix operations within MATLAB.

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 ·
2
Replies
32
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
996
  • · Replies 1 ·
Replies
1
Views
1K