필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
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 CenterFile Exchange에서 Model Compatibility에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by