Save as xlswrite file in user specified path and user specified name
    5 次查看(过去 30 天)
  
       显示 更早的评论
    
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!
0 个评论
回答(1 个)
  Robert Daly
      
 2021-6-16
        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 个评论
  Robert Daly
      
 2021-6-17
				uiputfile
Will open a dialogbox for the user to input a file name and path
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

