Skip to content

__unit__

general · scripts/general/__unit__.m

UNIT  Convert numeric values between units (MATLAB R2017b+ compat shim).

  Y = UNIT(X, FROMUNIT, TOUNIT) converts the numeric values in X from
  FROMUNIT to TOUNIT using SI and common US/customary definitions.

  See also: deg2rad, rad2deg