Using Display function in an easy way

I want to print name and value of a variable like "S" as below during the run:
S = 0.15
Can you help me with this please

 採用された回答

Ameer Hamza
Ameer Hamza 2020 年 9 月 24 日
編集済み: Ameer Hamza 2020 年 9 月 24 日

1 投票

S = 0.15;
fprintf('S = %.2f\n', S)

その他の回答 (1 件)

madhan ravi
madhan ravi 2020 年 9 月 24 日

1 投票

Use fprintf()

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

タグ

質問済み:

2020 年 9 月 24 日

回答済み:

2020 年 9 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by