Hi guys, I have defined a symbolic equation in matlab. When I run the program the result will be shown like this:
2239906695008851*cos(phi))/35184372088832
but my numbers simply were:
143*cos(phi)/2.24
How can I change the display format to the simple number? Thanks

 채택된 답변

Star Strider
Star Strider 2014년 6월 4일

1 개 추천

See the documentation for vpa. There are links to similar functions (such as double that might also work ) at the end of that page.

댓글 수: 2

Babak
Babak 2014년 6월 4일
Thanks. It works
Star Strider
Star Strider 2014년 6월 4일
My pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

태그

질문:

2014년 6월 4일

댓글:

2014년 6월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by