I had gotten this error message the odd in it is that previously it worked properly, but after some usage it is not working any longer:
Error using xlswrite (line 224)
is not writable. It might be locked by another process.
Error in Ana_WE_home_v2 (line 98)