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

 Risposta accettata

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

Più risposte (0)

Categorie

Community Treasure Hunt

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

Start Hunting!

Translated by