フィルターのクリア

Create an excel file in a specific folder

181 ビュー (過去 30 日間)
Alessandro Poppi
Alessandro Poppi 2017 年 11 月 23 日
コメント済み: AYUSH ANAND SAGAR 2020 年 10 月 28 日
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 日
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
AYUSH ANAND SAGAR
AYUSH ANAND SAGAR 2020 年 10 月 28 日
i wanna create an attendance excel sheet from the date entered by the user
how can i do that?

サインインしてコメントする。

その他の回答 (1 件)

Zeynab Mousavikhamene
Zeynab Mousavikhamene 2019 年 3 月 9 日
Thanks!

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by