Unit Conversion

버전 1.0.0.0 (1.72 KB) 작성자: Anthony Kendall
A simple unit conversion function that is easily extended.
다운로드 수: 2K
업데이트 날짜: 2008/1/10

라이선스 보기

There are a few other unit conversion functions out there, but most are structured in a rather unwieldy format and require the use of extended switch...case blocks. This one uses a very simple structured array table to convert between any set of units that differ by a multiplicative offset and/or an additive factor.

The code is extremely lightweight, and fully vectorized.

The user must specify the input units and, optionally, the output units. If no output units are specified, than SI units are output (using degrees Celsius for temperature).

Only a limited set of conversions are included, but adding new ones should be fairly trivial. I encourage anyone who has questions, comments, or additions to write me at kendal30 [at] yahoo [dot] com.

인용 양식

Anthony Kendall (2026). Unit Conversion (https://kr.mathworks.com/matlabcentral/fileexchange/15046-unit-conversion), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2007a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Physical and Time Unit Conversions에 대해 자세히 알아보기
도움

도움 준 파일: Unit Conversion Tools

버전 게시됨 릴리스 정보
1.0.0.0

I have added a new group of units to the function.

Also, I wrote the function to be able to handle any combination of cell, numeric, and structured arrays (i.e. nested versions of cell/structured arrays).