フィルターのクリア

How do i get multiple outputs in one dialog box?

6 ビュー (過去 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 Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by