Save generated code in a special folder in “rtwbuild”

前端 未结 2 1322
借酒劲吻你
借酒劲吻你 2021-01-20 04:27

I am using rtwbuild to generated C++ code from a Simulation diagrams and would like to save generated code to an arbitrary directory. Is there any way to do so?

2条回答
  •  耶瑟儿~
    2021-01-20 05:02

    The generated code should be by default be in the a folder with the name of your model with some extension "_grt_rtw" or something else. So you are supoosed to know the default output folder. By using the following commands, you will be able to move or copy your files:movefile() copyfile()

提交回复
热议问题