Scripts can't be ran from button callback function??

3 Ansichten (letzte 30 Tage)
Vadim Kachan
Vadim Kachan am 25 Jun. 2019
Kommentiert: Shameer Parmar am 27 Jun. 2019
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 Kommentare
Geoff Hayes
Geoff Hayes am 26 Jun. 2019
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
Shameer Parmar am 27 Jun. 2019
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;

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by