Organizing data into cells
이전 댓글 표시
Introduction I have simulation results from 6 different simulations with the same variable names. Each separate simulation result was saved as .mat-file, and contained the same variable names.
From the 6 .mat files I have created a single cell that contains the variable names in the first column, and the data from the 6 different simulations in columns 2-7. (Using the commands: load, fieldnames and struct2cell)
Now, I would like to easily access the data to be able to analyze it, make graphs.
Question My idea is to convert the single big cell into many cells, where each new cell contains the data of one type of variable.
For example, row 1 of my big cell could be:
r(1,:)= 't' [1x6000 double] [1x3000 double] [1x1000 double] [1x2000 double] [1x1000 double] [1x1500 double]
Based on this row I would like to create a variable called 't', where
t=cell(6,1)
t(1,1)=r(1,2)
t(2,1)=r(1,3)
and so on.
The question is two-fold: 1) how can I do this? 2) is this the most handy way to organize my data?
I also came across the following tread that seems to be realted, but I don't understand how to apply it: http://nl.mathworks.com/matlabcentral/newsreader/view_thread/159440
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!