Calling multiple variables in one line of output

3 ビュー (過去 30 日間)
Brian Len
Brian Len 2020 年 5 月 17 日
回答済み: KSSV 2020 年 5 月 17 日
Hello! I am trying to call multiple variables in my script file onto one line, but I am not sure how to call them all. This is what the output is supposed to be:
My code right now is

採用された回答

KSSV
KSSV 2020 年 5 月 17 日
n1 = rand;
n2 = rand ;
fprintf("President Jones, for your %d, Kiloton blast at %d miles\n",n1,n2)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by