Velocity Conversion Toolbox
This toolbox contains 20 very simple functions that will convert between 5 very popular units of measure of velocity. The supported units are as follows:
1. Miles per hour (statute mile)
2. Meters per second
3. Kilometers per hour
4. Knots (nautical miles per hour)
5. Feet per second (U.S. survey feet)
These functions are called much like their distance-converting counterparts (i.e. nm2km, nm2sm, etc).
The convention for naming these functions are as follow:
[unitsFrom]2[unitsTo]
where [unitsFrom] and [unitsTo] can be any one of the following tags:
1. mph (miles per hour)
2. mps (meters per second)
3. kmph (kilometers per hour)
4. kts (nautical miles per hour)
5. ftps (feet per second)
For example, to convert from knots to meters per second.
vel_kts = 100;
vel_mps = kts2mph(vel_kts);
disp(vel_mps)
* UPDATE *
Also included is a function called veldim. This is very similar to MATLAB's distdim. It takes in the velocity, the units it is in, and the units you want to convert it to.
vel = veldim(vel,unitsFrom,unitsTo)
Zitieren als
Jonathan Sullivan (2024). Velocity Conversion Toolbox (https://www.mathworks.com/matlabcentral/fileexchange/31665-velocity-conversion-toolbox), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- Mathematics and Optimization > Mapping Toolbox > Geometric Geodesy > Lengths and Angles >
- Radar > Mapping Toolbox > Geometric Geodesy > Lengths and Angles >
Tags
Quellenangaben
Inspiriert: Unit Converters
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.2.0.0 | Added veldim function, much like MATLAB's distdim |
||
1.1.0.0 | Add a picture... |
||
1.0.0.0 |