Main Content

사전

값을 인덱싱하는 키를 사용하여 데이터 매핑

사전은 각 키와 키에 대응하는 값을 연결하는 데이터 구조입니다. 키와 값은 모든 데이터형이 될 수 있으며, 데이터 액세스에 있어 배열 인덱스보다 더 나은 유연성과 향상된 성능을 제공합니다.

더 많은 데이터형을 키와 값으로 지원하고 더 나은 성능을 제공하기 때문에 dictionarycontainers.Map보다 권장됩니다. (R2022b 이후)

함수

dictionary고유 키를 값에 매핑하는 객체 (R2022b 이후)
configureDictionaryCreate dictionary with specified key and value types (R2023b 이후)
insertAdd entries to a dictionary (R2023b 이후)
lookupFind value in dictionary by key (R2023b 이후)
removeRemove dictionary entries (R2023b 이후)
entriesKey-value pairs of dictionary (R2022b 이후)
keys사전의 키 (R2022b 이후)
valuesValues of dictionary (R2022b 이후)
typesTypes of dictionary keys and values (R2022b 이후)
numEntriesNumber of key-value pairs in dictionary (R2022b 이후)
isConfiguredDetermine if dictionary has types assigned to keys and values (R2022b 이후)
isKeyDetermine if dictionary contains key (R2022b 이후)
keyHashGenerate hash code for dictionary key (R2022b 이후)
keyMatchDetermine if two dictionary keys are the same (R2022b 이후)

클래스

모두 확장

containers.Map고유 키를 값에 매핑하는 객체

도움말 항목