GUI edit excel file name
1 次查看(过去 30 天)
显示 更早的评论
Hi,
Now I set my excel name is 'filename1'. How can I use the edit box to change the file name, so the user can store the name whatever they want?
filename = 'filename1.xlsx';
writetable(Table,filename);
header={'Data Number', 'Effective Thickness', 'Refractive Index',...
'geometrical factor', 'Concentration', 'Donated Density', 'Settle Time',...
'Electron Settle Time', 'Hole Settle Time',...
'Epsilon', 'Fill Factor', 'Maximum Time', 'Minimum Time',...
'Y-axis Maximum', 'Y-axis Minimum','Maximum Frequency',...
'Minimum Frequency', 'Chi_Texting', 'Charge Carrier Density, n(σ)',...
'Charge Carrier Density, n(ωp)', 'Effective Carrier Mobility'}; %etc
xlswrite(filename,header,1); %1 is the sheet number which is by default 1
[file,path] = uiputfile('filename1.xlsx');
winopen(filename)
2 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!