how to save excel to a specific folder

9 views (last 30 days)
WEI TANG
WEI TANG on 2 Feb 2018
Commented: Rik on 19 Feb 2018
I have used xlwrite to make an excel, but it automatically saved in the working folder, how can I change the saving directory, I know I might need to use actxserver, but I was not clear what to do exactly.
Thank you, any help is appreciated.

Accepted Answer

Rik
Rik on 2 Feb 2018
Edited: Rik on 2 Feb 2018
Use an explicit path to your file, e.g. like this:
xlswrite('C:\data\sheet.xlsx',A)
This is mentioned in the documentation for xlswrite.
  1 Comment
Rik
Rik on 19 Feb 2018
Did this solve your question? If it did, please accept this answer. It will make it easier for others to find this solution, as well as give me reputation points.
If you still have questions, feel free to comment here with your questions.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!