Help with basic GUI that answers why
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 24 Mar 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.
Catégories
En savoir plus sur Calendar dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!