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.
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
John Doe
am 29 Sep. 2021
Kommentiert: John Doe
am 29 Sep. 2021
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 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!