Question: please help in matlab. and please show the scripts and function windows. thanks! Problem 1 Rotational speed can be measured in revolutions per minute (rpm)

 please help in matlab. and please show the scripts and function

windows. thanks! Problem 1 Rotational speed can be measured in revolutions per

minute (rpm) or in radian per second rad/8). Write a MATLAB function

please help in matlab. and please show the scripts and function windows. thanks!

Problem 1 Rotational speed can be measured in revolutions per minute (rpm) or in radian per second rad/8). Write a MATLAB function called hv4_p1_lastname that accepts as input rotational speed in rpm and provides output the rotational speed in rad/s. For example if the input is 60 rpm, the output should be 6.283185 rad/s. The function should also print a line on the screen that says: Rotational Speed: 60 rpm = 6.238 rad/s Notice the rad/s value is limited to 3 decimal places. Problem 2 In a separate script file called hw4_lastname, use your function from problem 1 to convert the following values to rad/ 60 rpm 1000 rpm 5200 rpm Problem 3 F A power screw such as lead screws of lathes and screws for vises, presses and jacks are used to transmit power, and change angular motion into linear motion. When used in a jack, the power screws lifts a low by using an external torque T given by, T-F ( ) Here, is the mean diameter of the screw thread, f is the coefficient of friction, and I is the lead of the screw. The lead can be calculated from Inp where n is the number of starts on a thread. If the outside diameter, d, and pitch, p, is known, the mean diameter can be calculated from: d-d- dr- > Write a matlab function called hw4_p3 lastnate that accepts as inputs: outside diameter (mm) pitch (mm) number of starts coefficient of friction load (N) and return the torque as the output. Your ende should also priut a line to the command window formatted as follows: Torque = xx.xx Nem Here the torque should be given to 2 decimal places and have the units print afterward Problem 4 In your hw4_lastname file, use your function from problem 3 to calculate the torque for the following inputs: coefficient of friction 0.08 pitch - 4 mm Force 6400 N number of starts 2 outside diameter 32 mm In your hw4_lastname file, use your function from problem 3 to calculate the torque when the force is allowed to vary from 0 to 10000 N. Keep all other values the same as in problem 1. except create two curves on the same plot, one for a single start screw (u 1) and one for a double start screw (u 2). Note you may need to modify your function from problem 3 in order for it to calculate the torque needed for the plot. In your hw4_lastname file, add a legend which identifies the curves by number of starts. Make the curve for the single start screw black and a solid line. Make the curve for the double start screw red and a dash-dot line

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!