This expands on the operation of the built-in ROUND function to provide functionality to round to a given number of decimal places. For example,
>> round(pi)
ans =
3
>> round2dp(pi,3)
ans =
3.142
Zitieren als
Andrew (2026). ROUND2DP (https://de.mathworks.com/matlabcentral/fileexchange/24213-round2dp), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2008a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Mehr zu Arithmetic Operations finden Sie in Help Center und MATLAB Answers
Tags
Quellenangaben
Inspiriert von: round2
Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.0.0.0 |
