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

11 次查看(过去 30 天)
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 中查找有关 Call C++ from MATLAB 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by