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

조회 수: 1 (최근 30일)
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.

채택된 답변

Image Analyst
Image Analyst 2016년 5월 14일
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
Ahmet Cecen
Ahmet Cecen 2016년 5월 14일
This is awesome. Makes one wonder why it is somewhere so obscure.
Image Analyst
Image Analyst 2016년 5월 14일
We've all wondered the same thing. I mean, could they make it any more hard to find?!?!?

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

추가 답변 (3개)

Azzi Abdelmalek
Azzi Abdelmalek 2016년 5월 14일
편집: Azzi Abdelmalek 2016년 5월 14일
Save your file like you are used to do it.
  댓글 수: 1
JohnC
JohnC 2016년 5월 14일
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.

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


Ahmet Cecen
Ahmet Cecen 2016년 5월 14일
Try
[fList, pList] = matlab.codetools.requiredFilesAndProducts(MainRoutines);
  댓글 수: 1
JohnC
JohnC 2016년 5월 14일
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);

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


Walter Roberson
Walter Roberson 2016년 5월 14일

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by