How to display decimal places
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Tanner Schmitt
am 9 Apr. 2019
Beantwortet: Star Strider
am 9 Apr. 2019
So I am programming a loop that multiplies by 10, but I need it to display 2 decimal places, how do I do that? This is what I have so far:
clc
for i = 1.00:1.00:15.00
k = i*10
end
0 Kommentare
Akzeptierte Antwort
Star Strider
am 9 Apr. 2019
There are several options, one of which is to choose the format (link) type for what you want to do. I will let yoiu explore the linked documentation at your leisure.
0 Kommentare
Weitere Antworten (0)
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!