max items in a nominal array
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
I want to convert a cellarray into a nominal array. The line of code I used is the following:
Cfull.instrumentId=nominal(Cfull.instrumentId);
however I keep getting the following error message:
Error using categorical (line 334)
This operation would create a categorical array with more than 65534
categories.
Error in nominal (line 142)
b = b@categorical(a,args{:},'Ordinal',false);
I believe my array has too many unique values and cannot convert this particular array into the previously mentioned data type.
Is there way to increase this maximum amount of unique variables from 65534 to say 1,000,000?
Cheers, Kyle Zarmair
댓글 수: 0
답변 (1개)
Ashish Gudla
2014년 8월 5일
I dont believe there is a way to increase the number of categories.
categorical.maxNumCategories
This gives the maximum number of categories it can hold which is 65534.
참고 항목
카테고리
Help Center 및 File Exchange에서 Categorical Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!