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

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2019년 2월 28일

1 개 추천

Let A - your cell array:
out = cellfun(@double,A);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Type Conversion에 대해 자세히 알아보기

질문:

2019년 2월 28일

답변:

2019년 2월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by