how to display texts in gui itself?
2 ビュー (過去 30 日間)
古いコメントを表示
For my present code, output (abnormal (or) normal) will appear in command window only. I need to display it in gui itself... how to write it?
0 件のコメント
回答 (1 件)
Yao Li
2013 年 4 月 8 日
Add an Edit Text (eg. edit1)
function edit1_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
res=4;
set(hObject,'String',num2str(res))
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!