I want to use all nested arrays inside each cell.

4 次查看(过去 30 天)
I want to use all nested arrays inside each cell. Thank you for your help His photo is attached
  13 个评论
Walter Roberson
Walter Roberson 2023-4-17
Please give us an example of what you would like the output to look like.
Ali Nik
Ali Nik 2023-4-17
编辑:Ali Nik 2023-4-17
A={'c',{'d','f'},'E'} Answer matlab: A= 'c' {1*2cell} {1*1cell} ### I want A='c','d','f','E'

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2023-4-18

更多回答(1 个)

Chunru
Chunru 2023-4-18
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

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by