Command use to convert expression E to numeric form
4 ビュー (過去 30 日間)
古いコメントを表示
Command use to convert expression E to numeric form
4 件のコメント
回答 (2 件)
Star Strider
2021 年 6 月 30 日
If ‘E’ is a symbolic expression (we have no idea exactly what it is), then matlabFunction could be appropriate to turn it into an anonymous function that could be executed numerically. If it is a symbolic scalar or vector, then vpa or double would be appropriate, depending on the desired result.
If none of these are appropriate, I will delete this Answer.
0 件のコメント
Jan
2021 年 6 月 30 日
Maybe you mean the output to the command window?
format short
pi * 1e8
format long
pi * 1e8
format long g
pi * 1e8
You have more control using fprintf or sprintf to create the output.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!