waveUnit

WAVEUNIT is a simple module for handling optical units.
61 Downloads
Aktualisiert 16. Feb 2016

Lizenz anzeigen

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'

Zitieren als

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

Kompatibilität der MATLAB-Version
Erstellt mit R2015a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Physics finden Sie in Help Center und MATLAB Answers
Quellenangaben

Inspiriert: OpticalMedium

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.1.0

fixed typos

1.0.0.0