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.

2 ビュー (過去 30 日間)
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?

採用された回答

Matt J
Matt J 2021 年 9 月 29 日
You don't need symunit. It's just
P=M/V

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange3-D Volumetric Image Processing についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by