필터 지우기
필터 지우기

cell array with mixed data types into single type

조회 수: 2 (최근 30일)
Leela Sai Krishna
Leela Sai Krishna 2019년 2월 28일
답변: Andrei Bobrov 2019년 2월 28일
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일
Let A - your cell array:
out = cellfun(@double,A);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by