How to convert Cell & Double array to Numeric array?
13 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Image Analyst
2015-4-18
Try cell2mat().
2 个评论
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
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 Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!