Conversion of cell containing numbers into a numerical double?
2 次查看(过去 30 天)
显示 更早的评论
How am I to convert a 101x1 cell (containing numbers) into a 101x1 double?
Thank you! Andie
0 个评论
回答(1 个)
Brendan Hamm
2016-1-15
A = {3;4;5}; % Cell array
B = cell2mat(A) % convert to a double.
B =
3
4
5
0 个评论
另请参阅
类别
在 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!