find the using of pretty and eval function ?

1 回表示 (過去 30 日間)
Berkay Çakal
Berkay Çakal 2018 年 12 月 18 日
回答済み: Cris LaPierre 2018 年 12 月 19 日

回答 (1 件)

Cris LaPierre
Cris LaPierre 2018 年 12 月 19 日
What version of MATLAB are you using?
I'm not sure what the exact question is, but evalc will execute the enclosed string as a MATLAB command and capture the result in a variable (h(x) here).
Pretty will take a symbolic expression and display it in "pretty" or more readable format, but only using ascii characters.
The use of both functions is not recommended. A live script is much better at displaying formatted math expressions without needing to call functions like pretty, and I don't see why evalc is needed.
BTW - it is much more helpful if you copy/paste your code here rather than uploading pictures of it.

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by