Utilize the Editor window of MATLAB in order to create a script file that evalua
ID: 3605390 • Letter: U
Question
Utilize the Editor window of MATLAB in order to create a script file that evaluates the formula described for each of the tasks indicated below. The program (script file) names for these tasks are to be designated GenevaDrive and deLavalNozzle, respectively GENEVA DRIVE The Geneva drive (or Maltese cross) is a mechanism that transforms a continuous rotary motion into an intermittent rotary motion. The drive disk of the mechanism has a pin that travels within a slot of the driven gear, causing it to advance by one step for each revolution of the drive disk. Between its steps, the driven gear configuration is typically fixed by means of a crescent-shaped blocking cylinder, which has not been depicted in the accompanying diagram. It can be shown that the maximum angular acceleration a, of a driven gear with n slots which are equally spaced (eireumferentially) is given by the formula 0-2bcos0+b) where and denotes the constant angular speed of the drive disk. Dctermine (, for the case in which "" 6 along with (a) "f raus, and (b) o,"f rad/s. The script file should prompt the user to input the values of " and olled.Explanation / Answer
*******************************************************************************************
GenevaDrive.m
function a = GenevaDrive(omega,n)
b = 1/(sin(pi/n));
d = (1+(b*b))/(4*b);
theta=-acos(sqrt((d*d)+2)-d);
a=(omega*omega)*((b*(1-(b*b))*sin(theta))/power((1-2*b*cos(theta)+(b*b)),2));
end
main.m
omega = input('Enter value of omega: ');
n=input('Enter value of n: ');
GenevaDrive(omega,n)
********************************************************************************************
Sample output:
**************************************************************************************************************************
I hope this helps you.
If you find my answer helpful,
Kindly rate the answer.
All the best :)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.