How to create MATLAB functions for the following unit conversions
37 次查看(过去 30 天)
显示 更早的评论
1. Inches to feet 2. Calories to joules 3. Watts to BTU/hr 4. Meters to miles 5. Miles per hour (mph) to ft/s
0 个评论
采纳的回答
Image Analyst
2017-10-29
For example:
function feet = InchesToFeet(inches)
feet = inches / 12;
Similar concept for the others, just use different multiplication factors.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String Parsing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!