Integer division problem (gear ratio related)
Ältere Kommentare anzeigen
Let's say A/B = 2.417. A and B both must be integers. I need to write a script to list some possible combos of A and B. Also 2.417 is a gear ratio rounded up to 4 significant figures, so it doesn't have to be exactly 2.417, but A and B must be something practical like 1-100. Any help would be greatly helpful!
Akzeptierte Antwort
Weitere Antworten (1)
KSSV
am 24 Okt. 2016
A = linspace(1,100) ;
B = A/2.417 ;
[A' B']
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!