How do I round up a number?
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Jai
el 2 de Nov. de 2019
1 voto
how to make a decimal number to always round up to nearest integer
1 comentario
Steven Lord
el 2 de Nov. de 2019
Use the ceil function.
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!