How do I round up a number?
Show older comments
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
Accepted Answer
More Answers (1)
Jai
on 2 Nov 2019
1 vote
how to make a decimal number to always round up to nearest integer
1 Comment
Steven Lord
on 2 Nov 2019
Use the ceil function.
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!