CHANGEUNIT

CHANGEUNIT (converts between units).

Vous suivez désormais cette soumission

CHANGEUNIT
CHANGEUNIT(x,'unit1','unit2') - Converts array x from physical unit1
to unit2
Example: changeunit(1,'in','mm') = 25.4

This is a very compact/fast/simple version of units.m(by Henning Ressing) which has been very useful to me but is not very easy to read because of a flood of switch-case statements.

Citation pour cette source

Mukhtar Ullah (2026). CHANGEUNIT (https://fr.mathworks.com/matlabcentral/fileexchange/5863-changeunit), MATLAB Central File Exchange. Extrait(e) le .

Remerciements

Inspiré par : Units (updated)

A inspiré : Unit Conversion Tools

Catégories

En savoir plus sur Convert Image Type dans Help Center et MATLAB Answers

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0

compact code