I want to use all nested arrays inside each cell.
Show older comments
I want to use all nested arrays inside each cell. Thank you for your help His photo is attached
13 Comments
Matt J
on 16 Apr 2023
No photo is attached, but even if it were, you haven't said enough to clearly convey the problem you're having.
Image Analyst
on 16 Apr 2023
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
That means attach your photo or screenshot (which didn't make it if you tried), and your cell array inside a .mat file.
save('answers.mat', 'yourCellArrayVariableName');
Ali Nik
on 16 Apr 2023
Ali Nik
on 16 Apr 2023
Edited: Walter Roberson
on 17 Apr 2023
Dyuman Joshi
on 16 Apr 2023
Edited: Dyuman Joshi
on 16 Apr 2023
You still have not attached the data as Image Analyst requested above.
How do you obtain this data?
Ali Nik
on 16 Apr 2023
Ali Nik
on 16 Apr 2023
Image Analyst
on 16 Apr 2023
We can't load a photo. You need to attach Y in a .mat file:
save('answers.mat', 'Y');
then use the paperclip icon to attach 'answers.mat' 
Ali Nik
on 17 Apr 2023
Do I understand correctly that when you have a cell array in which some of the entries are cell arrays, that you want to be able to display the full content of the nested cells -- including that they too might contain cell arrays?
If so then it would help if you were to outline what you would want the display to look like if you had, for example,
C = {'A', (1:3).', {["frodo"; "pippin"], {4} {[5;6]}}}
Ali Nik
on 17 Apr 2023
Walter Roberson
on 17 Apr 2023
Please give us an example of what you would like the output to look like.
Accepted Answer
More Answers (1)
C = {'A', (1:3).', {["frodo"; "pippin"], {4} {[5;6]}}}
b = celldisp(C)
1 Comment
Ali Nik
on 18 Apr 2023
Moved: Walter Roberson
on 18 Apr 2023
Categories
Find more on Cell Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!