Mileage Fitting

版本 1.0.0 (11.4 KB) 作者: David Snyder
Fit curve for gas mileage as a function of vehicle speed (assuming power losses are due to wind & rolling resistance as well as friction).
17.0 次下载
更新时间 2020/1/12

查看许可证

The function 'fitmpgcurve' fits a curve for gas mileage as a function of vehicle speed (assuming power losses are due to wind & rolling resistance as well as friction) given gas mileage values as user input (constant) speeds. The function 'plotperturbedmpgcurve' allows you to explore the effect of changing the effects of wind resistance, rolling resistance, friction and idle speed have on your vehicle's gas mileage: e.g. what would happen to gas mileage as a function of speed, if a flat tire increased rolling resistance. Example data for a 2018 Subaru Impreza are included. 'fitmpgcurve' uses the 'lsqnonlin' function in the Optimization Toolbox for non-linear, least squares curve fitting.

引用格式

David Snyder (2024). Mileage Fitting (https://www.mathworks.com/matlabcentral/fileexchange/73908-mileage-fitting), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2017a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Oil, Gas & Petrochemical 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0