필터 지우기
필터 지우기

How to convert Cell & Double array to Numeric array?

조회 수: 12 (최근 30일)
Mark Twen
Mark Twen 2015년 4월 17일
댓글: Image Analyst 2021년 11월 13일
I have got a data of speed and directions in double and cell array. I want to sketch a graph but it says that data must be in numeric array.

답변 (1개)

Image Analyst
Image Analyst 2015년 4월 18일
Try cell2mat().
  댓글 수: 2
Nancy Hammond
Nancy Hammond 2021년 11월 13일
Doesnt work for me:
>> xx = cell2mat(xallc{:,1});
Brace indexing is not supported for variables of this type.
>> xx = cell2mat(xallc);
Brace indexing is not supported for variables of this type.
Image Analyst
Image Analyst 2021년 11월 13일
@Nancy Hammond please start your own question and attach your xallc in a .mat file with the paperclip icon. xallc is not a cell array or table so you don't need braces or cell2mat, you can simply use parentheses.

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

카테고리

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

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by