도움말 센터도움말 센터
이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
Map 객체에 있는 키-값 쌍의 개수
Map
L = length(M)
예제
L = length(M)은 입력된 Map 객체에 있는 키-값 쌍의 개수를 반환합니다. length(M)은 size(M,1) 및 속성 M.Count와 동일합니다.
M
length(M)
size(M,1)
M.Count
모두 축소
Map 객체를 만듭니다.
months = {'Jan','Feb','Mar','Apr'}; rainfall = [327.2 368.2 197.6 178.4]; M = containers.Map(months,rainfall)
M = Map with properties: Count: 4 KeyType: char ValueType: double
해당 객체에 포함된 키-값 쌍의 개수를 반환합니다.
L = 4
입력 Map 객체입니다.
R2008b에 개발됨
containers.Map | isKey | keys | size | values
containers.Map
isKey
keys
size
values
이 예제의 수정된 버전이 있습니다. 사용자가 편집한 내용을 반영하여 이 예제를 여시겠습니까?
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office