【问题标题】:.m Script for moving multiple .c and .h file from diff folder to singlefolder.m 用于将多个 .c 和 .h 文件从 diff 文件夹移动到单个文件夹的脚本
【发布时间】:2018-05-09 05:39:50
【问题描述】:

如何使用 MATLAB/Simulink 中的 .m 脚本将自动生成的多个 .c 和 .h 文件从不同文件夹移动到单个文件夹?

【问题讨论】:

    标签: matlab command simulink matlab-guide auto-generate


    【解决方案1】:

    有一个名为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);
    

    【讨论】:

      猜你喜欢
      • 2022-07-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-07
      • 2015-07-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多