Borrar filtros
Borrar filtros

cell array with mixed data types into single type

2 visualizaciones (últimos 30 días)
Leela Sai Krishna
Leela Sai Krishna el 28 de Feb. de 2019
Respondida: Andrei Bobrov el 28 de Feb. de 2019
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 Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by