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!