필터 지우기
필터 지우기

Cell to double returns NaN

조회 수: 11 (최근 30일)
Aswas
Aswas 2015년 10월 18일
답변: Walter Roberson 2015년 10월 18일
I have a c={7 x 1 cell}, and used c1=str2double(c), but get NaN's any advice please.

채택된 답변

Walter Roberson
Walter Roberson 2015년 10월 18일
If the contents of the cell are already numeric and the task is to convert from a cell array to a purely numeric array, then
c1 = cell2mat(c);

추가 답변 (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