필터 지우기
필터 지우기

display cell array vertically

조회 수: 14 (최근 30일)
Luca Re
Luca Re 2023년 12월 21일
이동: Stephen23 2024년 6월 24일 4:29
I WANT THIS:
  댓글 수: 1
Stephen23
Stephen23 2024년 6월 24일 4:23
이동: Stephen23 2024년 6월 24일 4:29
A = {{1,2},{3,4}}
A = 1x2 cell array
{1x2 cell} {1x2 cell}
B = vertcat(A{:})
B = 2x2 cell array
{[1]} {[2]} {[3]} {[4]}

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

채택된 답변

Matt J
Matt J 2023년 12월 21일
편집: Matt J 2023년 12월 21일
Perhaps this is what you want,
W1={{1,2},{3,4}}
W1 = 1×2 cell array
{1×2 cell} {1×2 cell}
W2=reshape([W1{:}],2,[])'
W2 = 2×2 cell array
{[1]} {[2]} {[3]} {[4]}

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by