Save as xlswrite file in user specified path and user specified name

3 vues (au cours des 30 derniers jours)
Harish M Y
Harish M Y le 16 Juin 2021
Commenté : Harish M Y le 21 Juin 2021
Hi,
I have an excel templete created using matlab, I want to use the same templete to store data from appdesigner, I want the new excel sheet with data to be stored in user specified name and path. Please help me with this.
Thank you in advance for your help!

Réponses (1)

Robert Daly
Robert Daly le 16 Juin 2021
You didn't say anything about how yuor data is stored
But something like this...
writematrix(data,'FileName.xlsx','Sheet','user specified name')
if your data is in a Table then use writetable.
There is also writetimetable,& writecell.
  3 commentaires
Robert Daly
Robert Daly le 17 Juin 2021
uiputfile
Will open a dialogbox for the user to input a file name and path
Harish M Y
Harish M Y le 21 Juin 2021
Thanks, Its working

Connectez-vous pour commenter.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by