Error message using functional connectivity

 Hello, 
I'm trying to run functional connectivity on a MacBook and I received the following error message when trying to perform. The error message is 

Error using ==> rest_WriteNiftiImage at 92
Meet error while writing the data

This is what shows up in MATLAB
Exception occured.    ()
    Error using ==> rest_WriteNiftiImage at 92
Meet error while writing the data

Q&A: DPARSF and REST

We are trying to learn your programs to do functional connectivity in TBI (traumatic brain injury).  We have a large group and have been using several MRI methods including DTI, SWI and MRS.  I’ve wanted to use Fc for some time now and found your programs while searching on the SPM website.   I was able to run an Fc analysis last night but without removing regressors of noninterest.  I would like to use all features of both programs but have some questions.  I did register but am in a time crunch so thought I might get faster answers to my questions.&nbsp