CHANGEUNIT

CHANGEUNIT (converts between units).

Al momento, stai seguendo questo contributo

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.

Cita come

Mukhtar Ullah (2026). CHANGEUNIT (https://it.mathworks.com/matlabcentral/fileexchange/5863-changeunit), MATLAB Central File Exchange. Recuperato .

Riconoscimenti

Ispirato da: Units (updated)

Ispirato: Unit Conversion Tools

Categorie

Scopri di più su Convert Image Type in Help Center e MATLAB Answers

Informazioni generali

Compatibilità della release di MATLAB

  • Compatibile con qualsiasi release

Compatibilità della piattaforma

  • Windows
  • macOS
  • Linux
Versione Pubblicato Note della release Action
1.0.0.0

compact code