Qias - Unit Conversion in Matlab

版本 1.0.2 (30.7 KB) 作者: MosGeo
Unit Conversion in Matlab with the ability to quickly add new units.
51.0 次下载
更新时间 2022/5/29

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!

引用格式

MosGeo (2024). Qias - Unit Conversion in Matlab (https://github.com/MosGeo/qiyas), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.0.2

Updated description

1.0.1

Updated information

1.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库