cell array with mixed data types into single type

3 次查看(过去 30 天)
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
Let A - your cell array:
out = cellfun(@double,A);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by