Change variable precision used
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi
IDK how I made this to my MATLAB, but it has changed to using only 4 precision digits, how can I fix it to its default which I think might be 32?
for example I get the following answers for these codes:
>>round(pi,9)
ans =
3.1416
>>round(0.55555,3)
ans =
0.5560
댓글 수: 0
채택된 답변
Walter Roberson
2019년 11월 30일
format long
or
format long g
You can also control the default that you get on startup, by going into Preferences
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!