Extract entire matrices from a cell
1 次查看(过去 30 天)
显示 更早的评论
Hallo,
I have a cell which contains 10 matrices. Each matrix contains data from a different sensor and all matrices have different number of rows although they have the same number of columns. I would like to extract the entire matrices from the cell and keep the name of each matrix.
Thanks in advance
5 个评论
Walter Roberson
2020-1-28
Leave them in the struct. Use structfun() . Or use struct2cell() and cellfun()
回答(1 个)
Selva Karna
2020-1-28
clc
clear all;
close all;
cel_len=length(your_cell);
for i=1:cel_len
exta_cel=your_cell(i);
ext_data(i)=ext_cel
end
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!