I'm having the same problem reported above by Sue C (16 Feb 2010). A similar problem was found for the 1-d version of this code and, apparently, was only fixed there: http://www.mathworks.com/matlabcentral/fileexchange/14034-kernel-density-estimator
Hi Ujwal. I did not find a solution for that problem yet. I have been working on a different project in the past few weeks though. I was hoping the problem would have been fixed in the recent versions of this OpenNI wrapper. But it seems most people here are using Windows.
Matt, I'm using freenect as well but then we are on our own finding calibration and skeletonization code. So I would like to make this OpenNI wrapper work with Matlab in Linux.
I see you are now having problems linking to the openNI library. I believe you can fix this issue by correctly setting your LD_LIBRARY_PATH environment variable BEFORE running Matlab (I've tried using Matlab's setenv() function but it didn't work for me).
I ran into the same error as described by Oliver and fixed it by replacing
options = optimset('FunValCheck','off')
defaultError('override error, be cautious!');