存储工作空间的变量时,文件名如何与输入文件名一致?。
이전 댓글 표시
function Import_DD()
Excel_Name = 'interface';
[~,~,Signal_Cell] = xlsread(Excel_Name,'In')
%读取excel数据,并在工作空间中生成了变量
matlab.io.saveVariablesToScript('Excel_Name.m');
%保存成.m文件,这种情况生成的文件名称是Excel_Name.m,而想要生成的文件名是interface.m
请教大佬该如何实现,谢谢
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 电子表格에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!