Gets "Function 'subsindex' is not defined for valuse of class matla.ui.c​ontrol.UIC​ONTROL

4 ビュー (過去 30 日間)
shlomi chen
shlomi chen 2024 年 10 月 13 日
移動済み: Steven Lord 2024 年 10 月 13 日
Hi,
This is not my first time setting and gettig data from GUI
But suddenly i get this error while trying to : set(handles.textbox_name,'string','somestring')
Can anyone help?
  2 件のコメント
Matt J
Matt J 2024 年 10 月 13 日
編集済み: Matt J 2024 年 10 月 13 日
Noth wit such a limited view of the code and output. We would need full copy-pastes of the error messages, and at least the sections of code triggering the error.
shlomi chen
shlomi chen 2024 年 10 月 13 日
移動済み: Steven Lord 2024 年 10 月 13 日
Function 'subsindex' is not defined for
values of class
'matlab.ui.control.UIControl'.
Error in
tint_calculation_Main_New_ver_from16_9_24_Bug_fix_2_LATEST
(line 230)
set(handles.edit12,'String','1');
Error in
Tint_simulation_GUI>Run_Simulation_but_Callback
(line 82)
tint_calculation_Main_New_ver_from16_9_24_Bug_fix_2_LATEST;
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in Tint_simulation_GUI (line 42)
gui_mainfcn(gui_State,
varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)Tint_simulation_GUI('Run_Simulation_but_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.

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

回答 (1 件)

Steven Lord
Steven Lord 2024 年 10 月 13 日
Don't define a variable named set in your code. If you do, you will not be able to call the set function in that function. Modify your code to use a different name for that variable.

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by