Warning message in GUI MATLAB
2 ビュー (過去 30 日間)
古いコメントを表示
i have created GUI for detecting and classifying cervical images.
i have completed till feature extraction. while running the code, there shows a warning when i click pushbutton for showing the calculated value for area of nucleus in edit text.
this is my code to show perimeter and diameter of circle:
% --- Executes on button press in perim.
function perim_Callback(hObject, eventdata, handles)
% hObject handle to perim (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global feature img_comp_s
axes(handles.axes2);
feature = findobj(handles.axes2, 'type', 'image');
handles.ImgData2 = img_comp_s;
guidata(hObject,handles);
bin = imbinarize(img_comp_s);
J = imcomplement(bin);
props = regionprops(J,'Perimeter');
allperim = [props.Perimeter];
set(handles.edit17,'string',allperim);
% --- Executes on button press in dm.
function dm_Callback(hObject, eventdata, handles)
% hObject handle to dm (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global feature img_comp_s
axes(handles.axes2);
feature = findobj(handles.axes2, 'type', 'image');
handles.ImgData2 = img_comp_s;
guidata(hObject,handles);
bin = imbinarize(img_comp_s);
J = imcomplement(bin);
props = regionprops(J,'EquivDiameter');
alldiameter = [props.EquivDiameter];
set(handles.edit18,'string',alldiameter);
'Warning: Single line Edit Controls can not have multi-line text'.
this what it shows. i dont know what it meant. can anyone please tell me what is it and how can i rectify it.
Thank you in advance.
0 件のコメント
採用された回答
Sahithi Kanumarlapudi
2020 年 3 月 17 日
Hi,
You might be using 'Edit Field' component to display multiple lines of text. But according to the documentattion here Edit Field can be used to display text as a single line only. You could use 'Text Area' component to display multiple lines of text.
For more information on how to use 'Text Area' you could refer to the following link
Hope this helps!
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!