필터 지우기
필터 지우기

Convert double

조회 수: 2 (최근 30일)
Xavier
Xavier 2011년 9월 14일
Hi,
I have a matrix like A: A=[1;1;1;1;1;1] A is 6*1 double I need to transform this double type matrix to a cell type matrix like B: B=[1;1;1;1;1;1] B is 6*1 cell
I cannot find any function to do the following transformation but it must be easy.
Thansk for you help
Xavier

채택된 답변

Andrei Bobrov
Andrei Bobrov 2011년 9월 14일
B = num2cell(A)
  댓글 수: 1
Xavier
Xavier 2011년 9월 14일
thanks it works. I do not know how I could not find this one. Thanks a lot.

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by