I wanna change the assigned value format's long in this function (value) "set(handles.edit1, 'String', value)"
Mostrar comentarios más antiguos
%for example x=-0.134635523018792
%for gui presentation
set(handles.edit1, 'String', x)
%in gui x=-0.1346355 %7 numbers after the dot is appeared but I want to see whole numbers after the dot
Respuesta aceptada
Más respuestas (1)
Yao Li
el 17 de Abr. de 2013
1 voto
x='-0.134635523018792';
4 comentarios
Yao Li
el 17 de Abr. de 2013
set(hObject, 'String', num2str(x,'%1.15f'))
Maybe this one is better.
sermet
el 17 de Abr. de 2013
Yao Li
el 17 de Abr. de 2013
Actually, I tried the command on my computer just now and it works well. I don't know why you failed.
sermet
el 17 de Abr. de 2013
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!