variables and numbers in msgbox
30 次查看(过去 30 天)
显示 更早的评论
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
采纳的回答
Sean de Wolski
2013-3-7
msgbox(sprintf('A = %2.3g\nB = %2.3g',A,B),'AB')
And for more info:
doc sprintf
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Collision Detection 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!