- The object handle
- An event data structure
Why do i get this error?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
new user 00
el 1 de Jul. de 2018
Comentada: new user 00
el 1 de Jul. de 2018
In a gui, I used a push button with a callbackfunction.
p1 = uicontrol('Style','pushbutton','String','Browse','Position',[480,500,150,50],'callback',{@browse_button_Callback});
"Error:Too many input arguments" I am totally unaware of the mistake.
0 comentarios
Respuesta aceptada
Adam Danz
el 1 de Jul. de 2018
Editada: Adam Danz
el 1 de Jul. de 2018
The first two inputs of a callback function are
If those are your only inputs, remove the curly brackets around your function call.
p1 = uicontrol('Style','pushbutton','String','Browse','Position',[480,500,150,50],'callback',@browse_button_Callback);
Use the curly brackets to pass additional inputs to your callback function. For example
p1 = uicontrol(..., 'callback',{@browse_button_Callback, data});
will pass the 'data' variable as the third input to browse_button_callback().
If you're not passing additional inputs to your callback function, you should only have those first two inputs.
If that doesn't help, please provide the actual callback function.
Más respuestas (0)
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!