cell array with mixed data types into single type

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

Accepted Answer

Andrei Bobrov
Andrei Bobrov on 28 Feb 2019
Let A - your cell array:
out = cellfun(@double,A);

More Answers (0)

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!