フィルターのクリア

Do matlab requires Excel as an application in order to create xlsx file?

19 ビュー (過去 30 日間)
vaibhav joshi
vaibhav joshi 2022 年 10 月 20 日
コメント済み: vaibhav joshi 2022 年 10 月 21 日
I need to write some data from matlab Workspace in to xlsx format. However, I dont have Excel installed on my Windows machine. Does Matlab support this xlsx writing without Excel as an Application installed on machine?

採用された回答

Image Analyst
Image Analyst 2022 年 10 月 20 日
I believe MATLAB can still write a .xlsx file even though you don't have Excel installed. Of course, it's easy enough to try -- just one line of code.
  2 件のコメント
vaibhav joshi
vaibhav joshi 2022 年 10 月 20 日
Thank you @Image Analyst. I do beleive it should work, could not find any written proof yet. I dont have the machine yet, so cannot check. It is a preparatory call :)
Image Analyst
Image Analyst 2022 年 10 月 20 日
編集済み: Image Analyst 2022 年 10 月 20 日
You can specify whether to use Excel or not. Of course if you try to use it, it must be installed.
writetable options:
UseExcel Flag to start instance of Microsoft Excel for Windows
false (default) | true
Flag to start an instance of Microsoft® Excel for Windows when writing spreadsheet data, specified as the comma-separated pair consisting of 'UseExcel' and either true, or false.
You can set the 'UseExcel' parameter to one of these values:
  • true — The writing function starts an instance of Microsoft Excel when writing the file.
  • false — The writing function does not start an instance of Microsoft Excel when writing the file. When operating in this mode, functionality for writing differs in the support of file formats and interactive features, such as formulas and macros.

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

その他の回答 (1 件)

Chanheung Cho
Chanheung Cho 2022 年 10 月 20 日
Using num = xlsread(filename), you can read the xlsx format file.
And then save the file as a xlsx form after you finished the modification.
  3 件のコメント
Chanheung Cho
Chanheung Cho 2022 年 10 月 20 日
According to Help Center:
"If your system does not have Excel for Windows installed, or the COM server is not available:
All MATLAB import options read XLS, XLSX, XLSM, XLTM, and XLTX files."
The Matlab can read xlsx file without Excel installed.
vaibhav joshi
vaibhav joshi 2022 年 10 月 21 日
Thank you Chanheung Cho. Matlab can read. I beleive that Matlab can write too, with some limitations.

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

カテゴリ

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

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by