How do I round up a number?
Afficher commentaires plus anciens
Hi, I was wondering whether there's any function other than 'round(X)' that can round up a number? I'm trying not to use round(X) because every time I use it, I get an error: Subscript indices must either be real positive integers or logicals. Thanks
Réponse acceptée
Plus de réponses (1)
Jai
le 2 Nov 2019
1 vote
how to make a decimal number to always round up to nearest integer
1 commentaire
Steven Lord
le 2 Nov 2019
Use the ceil function.
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!