I wrote a Matlab Code with Psychtoolbox functions. When I use "WaitSecs" function with any time duration above 5secs, my code crashes. I replaced the WaitSecs with Matlab built-in function "Pause" and the code works just fine but since Pause is not as accurate as WaitSecs
I prefer to go on with WaitSecs. I ran the code on different computers and with different versions of Matlab and the problem persists. So is it the code I wrote that causes the problem?
P.S if you see no problem at first try 20 - 30 trials (stimulus presentation) and clicking during intervals.
The WaitSecs just after while t