Question

Problem 1 Rotational speed can be measured in revolutions per minute (rpm) or in radian per...

Problem 1
Rotational speed can be measured in revolutions per minute (rpm) or in radian per second (rad/s). Write a
MATLAB function called hw4_p1_lastname that accepts as input rotational speed in rpm and provides as
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.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

function rotational_speed = hw4_p1_lastname( w )


rotational_speed = 2*pi*w/60;
fprintf('Rotational Speed: %d rpm = %5.3f rad/s',w,rotational_speed);

end

Add a comment
Know the answer?
Add Answer to:
Problem 1 Rotational speed can be measured in revolutions per minute (rpm) or in radian per...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT