variables and numbers in msgbox

24 ビュー (過去 30 日間)
nkumar
nkumar 2013 年 3 月 7 日
コメント済み: samy youssef 2015 年 3 月 14 日
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 件のコメント
samy youssef
samy youssef 2015 年 3 月 14 日
where is ur comment on the given answer nkumar?

サインインしてコメントする。

採用された回答

Sean de Wolski
Sean de Wolski 2013 年 3 月 7 日
msgbox(sprintf('A = %2.3g\nB = %2.3g',A,B),'AB')
And for more info:
doc sprintf

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCollision Detection についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by