Qias - Unit Conversion in Matlab
Unit Conversion in Matlab with the ability to quickly add new units. The code is based on graph theory to determine the relationships between units. Because of this, only one conversion factor need to be provided for each new unit. There is no need to define all units in one standard unit. The code can relate to other units automatically.
Why a library for a simple thing such as units? Units can be annoying to handle in code. I had a couple of objectives for writing this code (aside from it being a cool very practical application of graph theory):
- Reusability: a code that I can use in multiple projects.
- Extendibility: new units and physical properties can be added easily without modifying the code at all.
- Simplicity: calling functions should be intuitive for Matlab users.
Usage: here is an example of usage. Check the example file for more information.
qs = Qias();
[valueUnitTo, multiplier, property] = qs.convert(2, 'm', 'in')
Check out the GitHub website for more information!
Citation pour cette source
MosGeo (2025). Qias - Unit Conversion in Matlab (https://github.com/MosGeo/qiyas), GitHub. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- Mathematics and Optimization > Symbolic Math Toolbox > Symbolic Computations in MATLAB > Units of Measurement >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Les versions qui utilisent la branche GitHub par défaut ne peuvent pas être téléchargées
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.2 | Updated description |
|
|
| 1.0.1 | Updated information |
|
|
| 1.0.0 |
|
