writing two integer together into edit text.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
sermet
el 10 de Abr. de 2014
Respondida: Mischa Kim
el 10 de Abr. de 2014
a=1787;
b=4;
%I need to add b to the end of a, like this "17874". Then I need to write this number into edit text in GUI.
0 comentarios
Respuesta aceptada
Mischa Kim
el 10 de Abr. de 2014
Use something like
c = sprintf('%d%d',a,b);
set(handles.edit_text, 'String', c);
where the UI control is called handles.edit_text (or whatever it's called in your GUI).
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Migrate GUIDE Apps 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!