Filter löschen
Filter löschen

cell array with mixed data types into single type

2 Ansichten (letzte 30 Tage)
Leela Sai Krishna
Leela Sai Krishna am 28 Feb. 2019
Beantwortet: Andrei Bobrov am 28 Feb. 2019
i have cell array with mixed data types(single and double precision) randomly. how to convert it into one type in matlab

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by