cell into a cell
1 次查看(过去 30 天)
显示 更早的评论
I have a 1x3 cell called 'Data' where each of the cells are made up of a 2x1 cell. I want to combine 'Data' with another 1x3 cell called 'Named'. I basically want 'Data' to be cells within the cells in 'Named'. So in the command window you will have a 1x3 cell called 'Named' then by clicking on this variable you will then get the 1x3 cell originally in 'Named' then by clicking on the appropriate cell you will get the relevant 2x1 cell which was originally in 'Data'.
If this isn't clear enough i'll attempt to make an idealised example to make it clearer.
4 个评论
采纳的回答
Titus Edelhofer
2012-1-16
This sounds more like a struct?
for i=1:3
for j=1:2
TXT.(Name{i}){j,1} = rand(12);
end
end
Or use cell2struct to do this afterwards ... ??
Titus
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!