Clear Filters
Clear Filters

I want to use all nested arrays inside each cell.

3 views (last 30 days)
I want to use all nested arrays inside each cell. Thank you for your help His photo is attached
  13 Comments
Walter Roberson
Walter Roberson on 17 Apr 2023
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.

Accepted Answer

Walter Roberson
Walter Roberson on 18 Apr 2023

More Answers (1)

Chunru
Chunru on 18 Apr 2023
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
Ali Nik
Ali Nik on 18 Apr 2023
Moved: Walter Roberson on 18 Apr 2023

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

Sign in to comment.

Categories

Find more on Data Type Conversion 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!