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.
Show older comments
%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.
Accepted Answer
More Answers (0)
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!