How to solve string error in xlswrite?

조회 수: 5 (최근 30일)
Amit
Amit 2012년 7월 13일
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.

채택된 답변

Srinivas
Srinivas 2012년 7월 13일
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

추가 답변 (1개)

F.
F. 2012년 7월 13일
Well I don't know ....
xlswrite(filename,A,sheet,range)
... the order of arguments ??? what do you think about ?
  댓글 수: 1
Amit
Amit 2012년 7월 13일
I think we can use this order also where m is matrix xlswrite(m,header,colnames,'myfile.xls')

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by