How to convert Cell & Double array to Numeric array?

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 日

0 投票

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.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

製品

タグ

タグが未入力です。

質問済み:

2015 年 4 月 17 日

コメント済み:

2021 年 11 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by