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!