Using Display function in an easy way

8 ビュー (過去 30 日間)
Amir Ehsani
Amir Ehsani 2020 年 9 月 24 日
回答済み: madhan ravi 2020 年 9 月 24 日
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 日
S = 0.15;
fprintf('S = %.2f\n', S)

その他の回答 (1 件)

madhan ravi
madhan ravi 2020 年 9 月 24 日
Use fprintf()

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by