Scripts can't be ran from button callback function??
2 ビュー (過去 30 日間)
古いコメントを表示
I am trying to press a button in my uicontrol that will callback a function that has "run xxxx" script. i get these errors
"Error while evaluating UIControl Callback."
2 件のコメント
Geoff Hayes
2019 年 6 月 26 日
Vadim - please copy and paste the full error message to this question. Also, please (at a minimum) show the callback function code so that we can see how this script is called.
Shameer Parmar
2019 年 6 月 27 日
You need to keep the script name inside the callback of your push button.
for example:
function pushbutton_Callback(hObject, eventdata, handles)
% hObject handle to msg_box (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
scriptName;
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!