I downloaded the code (npc) but could not run it as 'TrainingDatabase.mat' file is missing.
load('C:\Documents and Settings\newstar\My Documents\MATLAB\Myprogram\TrainDatabase.mat','Training_Database');
Indeed, the dependency test seems not so efficient, please try Fisher's test, which is also available in my website. Of course, the code itself is extensible by other statistic tests found in matlab community .
Comment only