フィルターのクリア

Index in position 2 is invalid. Array indices must be positive integers or logical values.

1 回表示 (過去 30 日間)
Almas
Almas 2022 年 7 月 26 日
回答済み: Ishan Gupta 2022 年 7 月 28 日
Could someone explain what is the problem?
The problem is on the line #7
datavalues = dlmread(tline);
tline = fgets(fid);
index = str2num(tline);
datacoord = datavalues(:,index);
tline = fgets(fid);
index = str2num(tline);
datavalues_hard = datavalues(:,index);
tline = fgets(fid);
index_reg = str2num(tline);
end

回答 (1 件)

Ishan Gupta
Ishan Gupta 2022 年 7 月 28 日
Try to use breakpoints to check the value of index.

カテゴリ

Help Center および File ExchangeModel Compatibility についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by