Export Dependencies - command line function?

4 Ansichten (letzte 30 Tage)
Sven
Sven am 8 Okt. 2015
Beantwortet: Daniel Frisch am 13 Nov. 2020
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?

Antworten (2)

Sean de Wolski
Sean de Wolski am 8 Okt. 2015
  1 Kommentar
Sven
Sven am 8 Okt. 2015
Bearbeitet: Sven am 8 Okt. 2015
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

Melden Sie sich an, um zu kommentieren.


Daniel Frisch
Daniel Frisch am 13 Nov. 2020
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')

Kategorien

Mehr zu Dependency Analysis finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by