max items in a nominal array

1 回表示 (過去 30 日間)
Kyle Zarmair
Kyle Zarmair 2014 年 8 月 5 日
コメント済み: Kyle Zarmair 2014 年 8 月 5 日
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

回答 (1 件)

Ashish Gudla
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.
  1 件のコメント
Kyle Zarmair
Kyle Zarmair 2014 年 8 月 5 日
right now I am using a 32bit Matlab system, does this number vary from 32 to 64 bits?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCategorical Arrays についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by