Error when calling propval

12 views
Skip to first unread message

maril...@gmail.com

unread,
Sep 30, 2015, 1:01:32 PM9/30/15
to Princeton MVPA Toolbox for Matlab
Hi,

I'm trying to use libsvm classifier with the tutorial_easy script. I use the train_libsvm and test_libsvm shared in a previous tread (https://groups.google.com/forum/#!topic/mvpa-toolbox/iT9JIgE0duQ). However, I encounter an error when calling the cross_validation function. It has to do with the propval function. 

Here is the error message: Cell contents reference from a non-cell array object. 
Error in propval (line 120)
if isempty(user_propvals{1})


As a troubleshooting test, I tried to modify the class_args in tutorial easy to cast them into a cellstr instead of a string:
class_args.train_funct_name = cellstr('train_libsvm');
class_args.test_funct_name = cellstr('test_libsvm');

When I do that, I get a different error:
Error using cross_validation>sanity_check (line 277)
Training or testing function names have to be strings

Error in cross_validation (line 139)
sanity_check(class_args);


I read in a previous tread that the propval function might have some back compatibility issues. Do you think that could be the reason for this error?

Thank you in advance for you input. It is much appreciated.

Best,
Marilyn

Reply all
Reply to author
Forward
0 new messages