Troubleshooting - PrincetonUniversity/princeton-mvpa-toolbox GitHub Wiki
Troubleshooting, common errors and debugging
Undefined function or variable
Check your paths are right. If they're not, Matlab won't be able to find the toolbox functions to run them. The Setup instructions tell you how to fix your paths.
Unable to read file 'blah': No such file or directory.
Check you're in the same directory as your data files. e.g. if you're trying to run the tutorial and you aren't in the directory that contains the sample data (which has to be downloaded separately. Matlab's cd command will help you here.
Error using ==> get_number / No object called
The get_number.m function is one of the central accessor functions that figures out which object you want, based on its name. This error probably means that you've typed something wrong at the command-line or in one of your functions, and that you're trying to get or set an object that doesn't exist. So check for typos, incorrect objtypes etc.
Sometimes when using write_to_afni.m, I get this message: 'Problem using spoofing write method - trying again with zeroifying - you can safely ignore this message and the following error stack'
See Howtos / Exporting / Sometimes when using write_to_afni.m.
Out of memory errors
See Advanced / Managing memory.
Invalid MEX-file error
The toolbox uses a small number of MEX files (compiled C files) for speed, e.g. compute_xcorr.c. These have to be compiled separately for each platform - google for 'matlab mex' for more info. We aim to provide .mex files for at least linux and mac. Email [email protected] if you think they're missing from a release.