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

 Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.

Preguntada:

el 28 de Feb. de 2019

Respondida:

el 28 de Feb. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by