I have an m file routine. How can I store the file along with its calling m file tree?

1 visualización (últimos 30 días)
I have an m file routine. How can I save the m file along with its calling subroutines m file tree? I want to share my m code and the routine calls from the main routine. Another way to think of it is that I want to bundle the m file main routine with all its calling m file subroutines.

Respuesta aceptada

Image Analyst
Image Analyst el 14 de Mayo de 2016
In the Current folder window's title bar, look for a little down arrow in the upper right of the title bar. Click on that and select Reports->Dependency Report.
  3 comentarios
Ahmet Cecen
Ahmet Cecen el 14 de Mayo de 2016
This is awesome. Makes one wonder why it is somewhere so obscure.
Image Analyst
Image Analyst el 14 de Mayo de 2016
We've all wondered the same thing. I mean, could they make it any more hard to find?!?!?

Iniciar sesión para comentar.

Más respuestas (3)

Azzi Abdelmalek
Azzi Abdelmalek el 14 de Mayo de 2016
Editada: Azzi Abdelmalek el 14 de Mayo de 2016
Save your file like you are used to do it.
  1 comentario
JohnC
JohnC el 14 de Mayo de 2016
Yes, but my main routine has many calls to other m-file subroutines, and I want to save it along with the calls to the subroutines. OR I have to manually go through line-by-line to review my subroutine calls. I am hoping there is an automatic save that also pulls in all the subroutines.

Iniciar sesión para comentar.


Ahmet Cecen
Ahmet Cecen el 14 de Mayo de 2016
Try
[fList, pList] = matlab.codetools.requiredFilesAndProducts(MainRoutines);
  1 comentario
JohnC
JohnC el 14 de Mayo de 2016
OK, that looks like that should work, but I get an error. The code itself runs fine. Thanks, Here's the error.
[fList, pList] = matlab.codetools.requiredFilesAndProducts(RV2LSIZo1Zo2LsLf) Not enough input arguments.
Error in RV2LSIZo1Zo2LsLf (line 19) sz=size(Rs,2);

Iniciar sesión para comentar.


Walter Roberson
Walter Roberson el 14 de Mayo de 2016

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by