How to write a string to Excel using Matlab.

I want to write a file name including filepath to an excel file. I am using this code.
path2=['P:\\_Fach\\EF\\UX\\DL\\' py_file];
xlswrite(filename,path2,'Parametertabel','t60:t60');
This code is just writing 'P' to the excel file.

댓글 수: 3

Put them into cell.
path = {'wewer'};
xlswrite('sss.csv',path);
If this is answer you are looking for, then i will put it in the answer for you to accept it.
sachin k p
sachin k p 2018년 9월 6일
This works. Thank you very much.
Kevin Chng
Kevin Chng 2018년 9월 7일
Do you mind to accept my answer? Thanks

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

 채택된 답변

Kevin Chng
Kevin Chng 2018년 9월 7일

0 개 추천

Put them into cell.
path = {'wewer'};
xlswrite('sss.csv',path);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

질문:

2018년 9월 6일

댓글:

2018년 9월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by