필터 지우기
필터 지우기

Export Dependencies - command line function?

조회 수: 9 (최근 30일)
Sven
Sven 2015년 10월 8일
답변: Daniel Frisch 2020년 11월 13일
One can create a dependencie analysis and export all the external files and all necessary functions in one neat little zip as descriped by: model-dependencies-help There is a command line function for creating the dependency analysis.
Question: But is there also a function for creating the zip file from within a matlab script/function?

답변 (2개)

Sean de Wolski
Sean de Wolski 2015년 10월 8일
  댓글 수: 1
Sven
Sven 2015년 10월 8일
편집: Sven 2015년 10월 8일
yes I know! But when you run the dependency analysis and klick on export zip it will include all external files and libraries and even keeps the folder structure!
I would need to replicate all these features using the zip command!
If you can click on a menu option in matlab, there has to be a associated function to it, or not?!
Here is the link to the help segment for this feature: Export Dependencies

댓글을 달려면 로그인하십시오.


Daniel Frisch
Daniel Frisch 2020년 11월 13일
This function finds all dependency code files and copies them into a single folder (that you can also zip afterwards):
copy_dependencies('my_script.m', 'target_folder')

카테고리

Help CenterFile Exchange에서 Dependency Analysis에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by