KamitaniLab / GenericObjectDecoding

Demo code for Horikawa and Kamitani (2017) Generic decoding of seen and imagined objects using hierarchical visual features. Nat Commun https://www.nature.com/articles/ncomms15037.
149 stars 47 forks source link

analysis_Feature prediction.m error #20

Open elkatso opened 4 years ago

elkatso commented 4 years ago

Hello,

every time i try to run analysis_Feature prediction.m script. ,get_refdata function has an error because trainlabels argument must be a vector and not an array. Any ideas or help about this problem?

Thank you in advance!

donghaiwang commented 2 years ago

So am I. Can anyone help us? Matlab 2018a

analysis_FeaturePrediction analysis_FeaturePrediction started Loading brain data... Loading image feature data... Analysis analysis_FeaturePrediction-Subject1-V1-cnn1 is already running and skipped Analysis analysis_FeaturePrediction-Subject1-V1-cnn2 is already running and skipped Start analysis_FeaturePrediction-Subject1-V1-cnn3 Error using get_refindex (line 18) Foreign key must be a vector

Error in get_refdata (line 18) refIndex = get_refindex(foreignKey, refKey);

Error in analysis_FeaturePrediction (line 202) trainFeat = get_refdata(trainFeat, trainImageIds, trainLabels);

mitsuaki commented 2 years ago

Sorry for the late response, I have modified analysis_FaturePrediction.m to fix the problem. 095cb01712a52e8bd1a805a1490255a1c4ec3e56