Index in position 2 exceeds array bounds (must not exceed 1)

조회 수: 2 (최근 30일)
saman zahiri rad
saman zahiri rad 2018년 7월 11일
댓글: Jan 2018년 7월 11일
Hi everyone, I have this error: Index in position 2 exceeds array bounds (must not exceed 1).
Error in GUI_Current > apply_x_y_axis_data_Callback (line 651) combo_VAR_unique = unique(ComboValue(:,V));
Error in gui_mainfcn (line 95) feval(varargin{:});
Error in GUI_Current (line 20) gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)GUI_Current('apply_x_y_axis_data_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating DestroyedObject Callback.
I dont know how can I fox this error?

채택된 답변

Jan
Jan 2018년 7월 11일
편집: Jan 2018년 7월 11일
The message means, that you try to access ComboValue(:,V) with V > 1, but size(ComboValue, 2) is 1 only.
Without seeing the code it is impossible to guess how the code can be modified to work as wanted.
  댓글 수: 4
saman zahiri rad
saman zahiri rad 2018년 7월 11일
Thanks, @Guillaume and @Jan. exactly, the problem was the size of ComboValue. :-)
Jan
Jan 2018년 7월 11일
@Guillaume: Thanks, I've fixed the typo.
You are a gentle person with respect for the questions of the OPs.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by