I want to output the results of the matlab function 'why' in GUI. But i am unable to do so.. I can output numbers or specific text but i cannot output a result of another function when the answer is in the form of a string.
Afficher commentaires plus anciens
%i
function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
a1 = why;
set(handles.text1,'String',a1)
I want to output the results of 'why' in a static text box called 'text1' when i push a push button called 'pushbutton4'.
Thank you for your help.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Characters and Strings 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!