MATLAB:nomem error while detrending

Dear experts

As I want to detrend my fmri images (1200 volumes per subject) matlab runs out of memory. I tried to Turn on the 3GB swithch but I faced a blue screen error afterwards. Detrending option works well on up to 400 volumes. How could I tackle this problem?
I highly appreciate your help.

Best,
mahsa