variables and numbers in msgbox

조회 수: 6 (최근 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 CenterFile Exchange에서 Database Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by