Temperature Conversion Toolbox

버전 1.1.0.0 (5.32 KB) 작성자: Jonathan Sullivan
Convert temperature between Fahrenheit, Celsius, Kelvin, and Rankine
다운로드 수: 818
업데이트 날짜: 2011/7/15

라이선스 보기

This toolbox contains 12 very simple functions that will convert between 4 very popular units of measure of temperature. The supported units are as follows:

1. Fahrenheit
2. Celsius
3. Rankine
4. Kelvin

These functions are called much like their distance-converting counterparts (i.e. nm2km, nm2sm, etc).

The convention for naming these functions are as follow:

[unitsFrom]2[unitsTo]

where [unitsFrom] and [unitsTo] can be any one of the following tags:

1. far (Fahrenheit)
2. cel (Celsius)
3. rank (Rankine)
4. kel (Kelvin)

For example, to convert from Fahrenheit to Celsius.

temp_far = 100;
temp_cel = far2cel(temp_far);
disp(temp_cel)

Also included is a function called tempdim. This is very similar to MATLAB's distdim. It takes in the temperature, the units it is in, and the units you want to convert it to.

tempOut = tempdim(tempIn,unitsFrom,unitsTo)

인용 양식

Jonathan Sullivan (2026). Temperature Conversion Toolbox (https://kr.mathworks.com/matlabcentral/fileexchange/32218-temperature-conversion-toolbox), MATLAB Central File Exchange. 검색 날짜: .

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

도움 준 파일: Unit Converters

버전 게시됨 릴리스 정보
1.1.0.0

Fixed misspelling in the comments of tempdim

1.0.0.0