コマンドウィンドウの数式表示
Afficher commentaires plus anciens
数式の結果を出力したとき,sinやintのような数式が含まれた表示がされるのですが,
1.73205...のように具体的な数値で表示させたい場合はどのようにプログラムを書くといいのでしょうか?
現在表示は,数式にセミコロンをつけない形での表示方法をとっています.
Réponses (1)
Toshinobu Shintai
le 18 Mai 2020
3 votes
数式というのは、Symbolic Math Toolboxで使える数式のことでしょうか。
例えば、以下の画像のように「double」という関数でキャストすることで具体的な数値にすることができます。

この画像の元ファイルも添付しています。
Catégories
En savoir plus sur Symbolic Math Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!