Hi Azher,
Could you please post the MATLAB errors you're seeing? This will help us figure out what's wrong.
It would also be helpful to know:
-Your operating system
-Your MATLAB version
-Whether you have PsychToolbox installed (this fixes many issues on Linux, and is generally a good idea).
-Josh