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 件のコメント
Image Analyst
Image Analyst 2019 年 10 月 2 日
Please attach list.txt with the paper clip icon.

サインインしてコメントする。

回答 (1 件)

Matt J
Matt J 2019 年 10 月 2 日
Perhaps
pass = double(pword{i})

カテゴリ

Help Center および File ExchangeCall C++ from MATLAB についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by