MATLAB 7.5 doesn't calculate the whole operation

조회 수: 1 (최근 30일)
María
María 2013년 4월 3일
Hello! I'm working with MATLAB 7.5 and, in some occasions, when I make operations like sin(9283471987573/982489578238954) and press enter, it only writes it, but not the solution. How can I avoid it?
Sorry if I made some grammatical mistake, english is not my first language.

채택된 답변

Walter Roberson
Walter Roberson 2013년 4월 3일
If you are using the symbolic toolbox, use vpa() to evaluate it as decimal.
If the symbolic expression does not contain any symbols, then you can use double() to convert it to a double precision number.
  댓글 수: 1
María
María 2013년 4월 3일
Wow! That works! Thank you very much, I've been fighting with it for weeks

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

추가 답변 (1개)

Carlos
Carlos 2013년 4월 3일
편집: Carlos 2013년 4월 3일
Try typing
format long
in your command window.

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by