Hi, thanks for your code!
I've made it run using Matlab7.9, VSStudio2008,a and OpenCV 1.0 recompilng the FaceDetect.mexw32 file and it works but not in every situations. There are a lot of images with frontal faces that aren't recognized by the algorithm although they're big enought a quite easy to detect.
So I had a look at OpenCV 1.0 FaceDetect sample program, and it worked for those image where the matlab script couldn't find a face.
After looking at both c/cpp code (facedetect.c in the OpenCV/samples/c directory, and your facedetect.cpp) I couldn't find any difference in the processing method, except the 1.3 scalling in the OpenCV version (but even with this this change the matlab version didn't do better). Does anyone have the same problem? for instance if I run your program this image with this image the face is found : http://bit.ly/9WWYfD, but on this one : http://bit.ly/aNDlTt the matlab script can't detect a face, whereas OpenCV sample program does.