【发布时间】:2018-05-09 05:39:50
【问题描述】:
如何使用 MATLAB/Simulink 中的 .m 脚本将自动生成的多个 .c 和 .h 文件从不同文件夹移动到单个文件夹?
【问题讨论】:
标签: matlab command simulink matlab-guide auto-generate
如何使用 MATLAB/Simulink 中的 .m 脚本将自动生成的多个 .c 和 .h 文件从不同文件夹移动到单个文件夹?
【问题讨论】:
标签: matlab command simulink matlab-guide auto-generate
有一个名为movefile 的函数允许您在文件系统中移动文件。但是,您必须传递 *.c 和 *.h 文件的位置。
% Moves the file test.txt which is located in the current working
% directory into the folder "otherFolder"
movefile('./test.txt', '/otherFolder/test.txt', f);
【讨论】: