Want to truncate an array
조회 수: 3 (최근 30일)
이전 댓글 표시
Suppose i have an array of [8.5766662529*10^22; 5.354353982*10^22;5.289634*10^22]. Now i want to truncate the array upto 4 decimal and power will remain same how i will do that?
댓글 수: 0
답변 (2개)
Walter Roberson
2024년 3월 6일
format long g
A = [8.5766662529*10^22; 5.354353982*10^22;5.289634*10^22]
round(A, 4, 'significant')
댓글 수: 0
Star Strider
2024년 3월 6일
댓글 수: 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!