lookupTable

버전 1.0.0.0 (935 Bytes) 작성자: Dan Cohn
Creates a lookup table for a collection of key/value pairs
다운로드 수: 1.5K
업데이트 날짜: 2008/3/31

라이선스 없음

Creates a lookup table for a collection of key/value pairs. Keys can be ANY data-type (although indexing over function handles might produce unexpected/incorrect behavior)

Examples:

weatherStruct = struct('clouds','rain','windy','cold');
obj = weatherObject(weatherStruct,...);
tbl = lookupTable('today''s weather', weatherStruct,obj,'found weather obj',0.0123,'random data here');

A = tbl('today''s weather')
= weatherStruct

A = tbl(obj)
= 'found weather obj'

A = tbl(0.0123)
= 'random data here'

k = tbl.key(1) %equal to first element of key
= 'today''s weather'

v = tbl.value(2) %equal to second element of value
= 'found weather obj'

key = tbl.contents('-key')
= {'today''s weather',obj,123}

value = tbl.contents('-value')
= {weatherStruct,'found weather obj','random data here'}

인용 양식

Dan Cohn (2026). lookupTable (https://kr.mathworks.com/matlabcentral/fileexchange/19381-lookuptable), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2008a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
도움

도움 준 파일: dict

버전 게시됨 릴리스 정보
1.0.0.0

Improved function help and code readability