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

1 vue (au cours des 30 derniers jours)
rupak katwal
rupak katwal le 2 Oct 2019
Commenté : Image Analyst le 2 Oct 2019
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 commentaire
Image Analyst
Image Analyst le 2 Oct 2019
Please attach list.txt with the paper clip icon.

Connectez-vous pour commenter.

Réponses (1)

Matt J
Matt J le 2 Oct 2019
Perhaps
pass = double(pword{i})

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by