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!