cell array with mixed data types into single type

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

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by