I Have a value of bwarea, how can I get this value and show in edit text in my GUI?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Marlon Damaceno
il 12 Nov 2017
Commentato: Marlon Damaceno
il 12 Nov 2017
Example:
EDITOR: bwarea(a)
COMMAND WINDOW: ans = 10 % (I need to show this value in my edit text GUI)
anybody help me? thanks!!!
0 Commenti
Risposta accettata
Walter Roberson
il 12 Nov 2017
set(handles.text1, 'String', num2str(bwarea(a)) )
3 Commenti
Image Analyst
il 12 Nov 2017
Or, if you have a recent version of MATLAB you can use OOP syntax:
area = bwarea(a);
handles.text1.String = sprintf('The area = %.1f pixels', area);
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Annotations 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!