variables and numbers in msgbox
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
nkumar
el 7 de Mzo. de 2013
Comentada: samy youssef
el 14 de Mzo. de 2015
i have two values
A=89.6
B=15.4
now i want to display this in msgbox as
The value of A is 89.6
the values of B is 15.4(in next line)
plz assist
1 comentario
Respuesta aceptada
Sean de Wolski
el 7 de Mzo. de 2013
msgbox(sprintf('A = %2.3g\nB = %2.3g',A,B),'AB')
And for more info:
doc sprintf
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Database Toolbox 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!