Create an excel file in a specific folder
181 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alessandro Poppi
am 23 Nov. 2017
Kommentiert: AYUSH ANAND SAGAR
am 28 Okt. 2020
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.
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 23 Nov. 2017
Bearbeitet: Image Analyst
am 23 Nov. 2017
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 Kommentare
AYUSH ANAND SAGAR
am 28 Okt. 2020
i wanna create an attendance excel sheet from the date entered by the user
how can i do that?
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!