See http://stackoverflow.com/questions/4726155/whats-the-use-for-stdafx-h-in-visual-studio for more about stdafx.h
Basically it is an optimization. You should be able to comment out the #include "stdafx.h" and continue compiling.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!