cell array with mixed data types into single type

3 vues (au cours des 30 derniers jours)
Leela Sai Krishna
Leela Sai Krishna le 28 Fév 2019
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
Let A - your cell array:
out = cellfun(@double,A);

Plus de réponses (0)

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by