Warning message in GUI MATLAB

2 Ansichten (letzte 30 Tage)
vidhya v
vidhya v am 14 Mär. 2020
Kommentiert: vidhya v am 18 Mär. 2020
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.

Akzeptierte Antwort

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi am 17 Mär. 2020
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 Kommentar
vidhya v
vidhya v am 18 Mär. 2020
thank you so much for your response. I will try this

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by