cell array with mixed data types into single type

i have cell array with mixed data types(single and double precision) randomly. how to convert it into one type in matlab

 採用された回答

Andrei Bobrov
Andrei Bobrov 2019 年 2 月 28 日

1 投票

Let A - your cell array:
out = cellfun(@double,A);

その他の回答 (0 件)

カテゴリ

ヘルプ センター および 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