waveUnit

版本 1.0.1.0 (5.6 KB) 作者: Alberto Comin
WAVEUNIT is a simple module for handling optical units.
61.0 次下载
更新时间 2016/2/16

查看许可证

WAVEUNIT allows to validate a physical unit and make some quick processing.

functionalities:
- validate units (e.g. 'fs' is ok, 'qs' not ok)
- optimize prefix (e.g. 1200 kHz --> 1.2 MHz)
- find inverse unit (e.g. 'ms'<-->'kHz')
- convert between frequency, wavelength and photon energy.
A subset on units, useful for optics, is currently supported.
Supported base units: 'm','s','Hz','eV','J'
examples:
wl = waveUnit.frequency2wavelength(1e-2, 'GHz', 'mm')
[freq, freqUnit] = waveUnit.wavelength2frequency(1, 'um', 'auto')
freq = waveUnit.energy2frequency(2.3, 'eV', 'THz')
[newValue, newUnit] = waveUnit.optimize(1.2e5, 'nm')
More information can be found in inside the main file 'waveUnit.m'

引用格式

Alberto Comin (2024). waveUnit (https://www.mathworks.com/matlabcentral/fileexchange/55408-waveunit), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2015a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Physics 的更多信息
致谢

启发作品: OpticalMedium

Community Treasure Hunt

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

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

fixed typos

1.0.0.0