Create a script file that will accept a value in metric units (mass in kgs, and volume in cubic meter) and will output the equivalent density in lb/cu.ft.

Create a script file that will accept a value in metric units (mass in kgs, and volume in cubic meter) and will output the equivalent density in lb/cu.ft.
M = input('mass [kgs.]: ');
V = input('volume [cu.m.]: ');
u = symunit;
p = (M*u.lbm)/(V*u.cft);
Is this the correct way to answer this question?

 채택된 답변

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Animation에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2021년 9월 29일

댓글:

2021년 9월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by