Rounding down when doing division in Matlab
    5 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
How do you round when dividing such that
1/7 = 1
2/7 = 1
...
7/7 = 1
8/7 = 2
...
14/7 = 2
15/7 = 3
etc.
0 commentaires
Réponse acceptée
  Arif Hoq
      
 le 28 Nov 2022
        use ceil function:
a=ceil(1/7)
b=ceil(2/7)
c=ceil(7/7)
d=ceil(8/7)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Logical dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

