필터 지우기
필터 지우기

Could anyone help me to solve the issue.

조회 수: 2 (최근 30일)
jaah navi
jaah navi 2019년 9월 12일
답변: madhan ravi 2019년 9월 12일
position =[1 2;
1 3;
2 4;
3 4]
NN= num2cell(position,2)
when i run the code i am getting the result as
NN =
[1x2 double]
[1x2 double]
[1x2 double]
[1x2 double]
but i want to have NN in the following manner
NN=
{1x2 cell}
{1x2 cell}
{1x2 cell}
{1x2 cell}
Could anyone please help me on this.

채택된 답변

madhan ravi
madhan ravi 2019년 9월 12일
NN = num2cell(num2cell(position),2)

추가 답변 (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