필터 지우기
필터 지우기

how to convert a matrix to a cell?

조회 수: 2 (최근 30일)
bay rem
bay rem 2015년 12월 13일
편집: dpb 2015년 12월 13일
i have a 3*6 matrix :
26 197 27 197 28 197
26 196 27 196 28 196
26 195 27 195 28 195
and i want to covert it to a cell array :
[26,197] [27,197] [28,197]
[26,196] [27,196] [28,196]
[26,195] [27,195] [28,195]
I'm new to matlab and would appreciate any help.

채택된 답변

dpb
dpb 2015년 12월 13일
편집: dpb 2015년 12월 13일
c=mat2cell(m,ones(1,size(m,1)),2*ones(1,size(m,2)/2));
doc mat2cell % for details...

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by