Warning message in GUI MATLAB

조회 수: 2 (최근 30일)
vidhya v
vidhya v 2020년 3월 14일
댓글: vidhya v 2020년 3월 18일
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.

채택된 답변

Sahithi Kanumarlapudi
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!
  댓글 수: 1
vidhya v
vidhya v 2020년 3월 18일
thank you so much for your response. I will try this

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by