Let's assume that we have a pair of two gears(pinion-bigger gear). The goal is to calculate the gear ratio(i) given the number (z) of the teeth on both gears. The number of teeth on pinion will be zp and the number of teeth on the bigger gear will be zg. Also assume that the starting gear is the pinion.
Tips:
1)BE CAREFULL OF THE REAL WORLD LOGIC!!! (The output can also be:'Not a gear' or 'Not a pair of pinion and gear').
2)The only unreasonable thing is that one gear can have almost infinite teeth.
3) If you find the logic of tip 1, the messages should be in order. First you shoul write about the 'Not a gear' message and then about the 'Not a pair of pinion and gear message.
GOOD LUCK!!!!!!!!!!!!!!!!!

Solution Stats

4 Solutions

2 Solvers

Last Solution submitted on Aug 24, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers2

Suggested Problems

More from this Author6

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!