Conversion of cell containing numbers into a numerical double?

1 回表示 (過去 30 日間)
Andie Dola
Andie Dola 2016 年 1 月 14 日
回答済み: Brendan Hamm 2016 年 1 月 15 日
How am I to convert a 101x1 cell (containing numbers) into a 101x1 double?
Thank you! Andie

回答 (1 件)

Brendan Hamm
Brendan Hamm 2016 年 1 月 15 日
A = {3;4;5}; % Cell array
B = cell2mat(A) % convert to a double.
B =
3
4
5

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by