I want to use all nested arrays inside each cell.

I want to use all nested arrays inside each cell. Thank you for your help His photo is attached

13 Comments

No photo is attached, but even if it were, you haven't said enough to clearly convey the problem you're having.
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');
I have a lot of nested arrays and I don't want to address them using each cell. I want, for example, Y{1,3} to display all the presentations that are even further placed in another cell. Thanks a lot.
for n=1:length(Z) M=[M;Z(n)(:)] end
answer: M= 'C' {1×2cell} I want to display {1×2cell} ?
You still have not attached the data as Image Analyst requested above.
How do you obtain this data?
Yes,I want cell 1*2 display
I have sent the photo. Is it not uploaded?
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'
The pictures upload. I want to 1*2cell, don't dispaly. Instead, it should be displayed inside the cell, for example,( d, f).
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]}}}
C = 1×3 cell array
{'A'} {3×1 double} {1×3 cell}
Yes, it is as you said. Only I don't want it to display a 3x1 cell array like the example you gave, actually ["frodo"; "pippin"], display {4} {[5;6]}}}.
Please give us an example of what you would like the output to look like.
Ali Nik
Ali Nik on 17 Apr 2023
Edited: Ali Nik on 17 Apr 2023
A={'c',{'d','f'},'E'} Answer matlab: A= 'c' {1*2cell} {1*1cell} ### I want A='c','d','f','E'

Sign in to comment.

More Answers (1)

C = {'A', (1:3).', {["frodo"; "pippin"], {4} {[5;6]}}}
C = 1×3 cell array
{'A'} {3×1 double} {1×3 cell}
b = celldisp(C)
C{1} = A C{2} = 1 2 3 C{3}{1} = "frodo" "pippin" C{3}{2}{1} = 4 C{3}{3}{1} = 5 6

1 Comment

Reply to chunru: How can I put this data into the matrix?

Sign in to comment.

Categories

Asked:

on 16 Apr 2023

Commented:

on 18 Apr 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!