Error 'Conversion to double from cell is not possible.'

조회 수: 2 (최근 30일)
rupak katwal
rupak katwal 2019년 10월 2일
댓글: Image Analyst 2019년 10월 2일
The list.txt is
12 Aaa
13 01A
14 01a
15 !
16 01!
17 !Aa
Here i encounter the error Conversion to double from cell is not possible
function MMCreate()
fid = fopen('list.txt');
list = textscan(fid,'%d%s');
repNum = list{1};
pword = list{2};
for i=1:length(repNum)
num = repNum(i);
pass = double(pword(i))
end

답변 (1개)

Matt J
Matt J 2019년 10월 2일
Perhaps
pass = double(pword{i})

카테고리

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