필터 지우기
필터 지우기

How do i get multiple outputs in one dialog box?

조회 수: 14 (최근 30일)
DIJESH
DIJESH 2014년 5월 22일
댓글: DIJESH 2014년 5월 22일
Suppose i have the output values as x = 3, y =4 and z=2. I want to show all these 3 output values in a single dialog box. I have used msgbox(sprintf()).But it shows only one output in a single dialog box. I tried writing all the outputs in one command and running it.. but even then it is not coming. Is there any other command by which i can get all three values in a single dialog box?

채택된 답변

Mischa Kim
Mischa Kim 2014년 5월 22일
편집: Mischa Kim 2014년 5월 22일
DIJESH, do you mean something like
x = 3; y = 4; z = 2;
h = msgbox({['x = ',num2str(x)]...
['y = ',num2str(y)]...
['z = ',num2str(z)]});
  댓글 수: 3
DIJESH
DIJESH 2014년 5월 22일
What if i want the output x = 3 and y = 4 in a single line? is there any way?
DIJESH
DIJESH 2014년 5월 22일
ok got it....

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by