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

 Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 28 Feb. 2019

1 Stimme

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

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by