Filter löschen
Filter löschen

I want to use all nested arrays inside each cell.

3 Ansichten (letzte 30 Tage)
Ali Nik
Ali Nik am 16 Apr. 2023
Kommentiert: Ali Nik am 18 Apr. 2023
I want to use all nested arrays inside each cell. Thank you for your help His photo is attached
  13 Kommentare
Walter Roberson
Walter Roberson am 17 Apr. 2023
Please give us an example of what you would like the output to look like.
Ali Nik
Ali Nik am 17 Apr. 2023
Bearbeitet: Ali Nik am 17 Apr. 2023
A={'c',{'d','f'},'E'} Answer matlab: A= 'c' {1*2cell} {1*1cell} ### I want A='c','d','f','E'

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 18 Apr. 2023

Weitere Antworten (1)

Chunru
Chunru am 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 Kommentar
Ali Nik
Ali Nik am 18 Apr. 2023
Verschoben: Walter Roberson am 18 Apr. 2023

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by