How do I round up a number?
    7 次查看(过去 30 天)
  
       显示 更早的评论
    
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
0 个评论
采纳的回答
  the cyclist
      
      
 2013-4-20
        
      编辑:the cyclist
      
      
 2013-4-20
  
      You are probably getting that error because somehow you have created a variable called "round".
What do you get if you type
>> which round
更多回答(1 个)
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



