Borrar filtros
Borrar filtros

matlab gui

1 visualización (últimos 30 días)
Rakshmy  C S
Rakshmy C S el 18 de Abr. de 2012
hello all,
I created a GUI in matlab for my project. When i use the push button it is giving an error.
??? Undefined function or variable 'hObject'.
??? Error while evaluating uicontrol Callback
The call back function is defined as
function pushbutton1_Callback(hObject, eventdata, handles)
primary_pat4.m
Plz help..
Regards
Rakshmy

Respuestas (1)

Walter Roberson
Walter Roberson el 18 de Abr. de 2012
Is primary_pat4.m a function or a script? If it is a function, you have to call it with function notation,
primary_pat4(hObject, eventdata, handles)
Notice there is no ".m" in the call. The ".m" should also be left out if primary_pat4.m is a script.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by