Help with basic GUI that answers why
Mostrar comentarios más antiguos
I'm trying to get an understanding on basic GUI stuff. As a test, I tried to make a window with a button and a static text, and upon pressing the button, the 'why' function returns an answer in the static text. To do this, I have under the function_pushbutton1_Callback the code
set(handles.whydisplay, 'string',why);
which returns the 'Too many output arguments' error. This code works with other strings, numbers, and functions that give numerical outputs. I don't understand why it doesn't work here, and what I'm missing.
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 24 de Mzo. de 2017
Try editing it
>> edit why.m
Now change the first line to
function a = why(n)
Then save why.m, and try your code again.
Categorías
Más información sobre Calendar en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!