Want to truncate an array
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (2)
Walter Roberson
am 6 Mär. 2024
format long g
A = [8.5766662529*10^22; 5.354353982*10^22;5.289634*10^22]
round(A, 4, 'significant')
0 Kommentare
Star Strider
am 6 Mär. 2024
0 Kommentare
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!