I need to know how to create an excel file and save it in a specific folder. This is the code I am using:
filename = 'diagramm.xlsx';
xlswrite(filename,vector_1,'Fluid');
xlswrite(filename,vector_2,'Power');
I don't find anything working in the older answers.

 채택된 답변

Image Analyst
Image Analyst 2017년 11월 23일
편집: Image Analyst 2017년 11월 23일

3 개 추천

Try this:
folder = 'c:/whatever';
if ~exist(folder, 'dir')
mkdir(folder);
end
baseFileName = 'diagramm.xlsx';
fullFileName = fullfile(folder, baseFileName);
xlswrite(fullFileName ,vector_1,'Fluid');
xlswrite(fullFileName ,vector_2,'Power');

댓글 수: 2

Alessandro Poppi
Alessandro Poppi 2017년 11월 24일
It works. Thank you
i wanna create an attendance excel sheet from the date entered by the user
how can i do that?

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

추가 답변 (1개)

카테고리

도움말 센터File Exchange에서 Arduino Hardware에 대해 자세히 알아보기

질문:

2017년 11월 23일

댓글:

2020년 10월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by