I want to use all nested arrays inside each cell.

조회 수: 4 (최근 30일)
Ali Nik
Ali Nik 2023년 4월 16일
댓글: Ali Nik 2023년 4월 18일
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
  댓글 수: 1
Ali Nik
Ali Nik 2023년 4월 18일
이동: Walter Roberson 2023년 4월 18일

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

댓글을 달려면 로그인하십시오.

카테고리

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