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

 Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 28 Fév 2019

1 vote

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

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by