Warning message in GUI MATLAB
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
vidhya v
il 14 Mar 2020
Commentato: vidhya v
il 18 Mar 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.
0 Commenti
Risposta accettata
Sahithi Kanumarlapudi
il 17 Mar 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!
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!