Limit significant figures to 2 significant figures
62 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
N/A
am 4 Feb. 2020
Beantwortet: Star Strider
am 4 Feb. 2020
et=abs(((stop-new_cos)/stop)*100);
Say I use the above to solve for a number how would I limit the et variable to 2 significant figures?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 4 Feb. 2020
Using the round function and the option in: Round Elements to Specified Number of Significant Digits is likely to be more consistent.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Interactive Control and Callbacks 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!