Display number of digit is 2 in GUI Matlab
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Abed Nego Lubis
el 4 de Jun. de 2018
Respondida: Walter Roberson
el 4 de Jun. de 2018
Hi, i want display value of nlevel into my GUI, this is my code
global img;
nlevel= NoiseLevel(img);
set(handles.text2,'String', nlevel);
But its output long digit number decimal, how to reduce digit decimal, so it will only show 2 digit decimal? Thank you
0 comentarios
Respuesta aceptada
Walter Roberson
el 4 de Jun. de 2018
set(handles.text2, 'String', sprintf('%.2f', nlevel) );
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Axis Labels en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!