MATLAB: How to solve string error in xlswrite

MATLABstringxlswrite

Here in following code and decr are vectors in for loop.I want to write xls file as
xlswrite(data_cells,header,colnames,strcat('initial',num2str(data_num),'_decreased',num2str(decr),'.xls'));
But I am getting error: ??? Error using ==> xlswrite at 156 Filename must be a string.
Can any body please explain how to remove solve this error.
Thank You.

Best Answer

what version of MATLAB are you using, looks like you are referring to this link
http://www.mathworks.com/matlabcentral/fileexchange/2855-xlswrite, if that is the case you need to download the corresponding file from file exchange
Related Question