필터 지우기
필터 지우기

How do I expose the code in a function .m file within Live Editor

조회 수: 2 (최근 30일)
Eugene Davis
Eugene Davis 2017년 10월 13일
댓글: Eugene Davis 2017년 10월 13일
I have placed a wrapper around my call to a function .m file. This allows me to at least document a call to a function. I want to make a Live Editor file that I can use as documentation for the function. If I can see the function code I then hope to do all the cool annotation for the function code, not the wrapper script.

답변 (1개)

Sean de Wolski
Sean de Wolski 2017년 10월 13일
Use dbtype
This also allows you to specify which lines in a function to show (skip error checking, etc).
  댓글 수: 1
Eugene Davis
Eugene Davis 2017년 10월 13일
That almost gets it done. I can now see my function code within the live editor. Even better, if I edit the .m file, the next time I run the live script it updates the code. But I still can't get inside the function code and mark it up within live editor. It's just a read/view only thing.
I did see that if I copy and paste the function code into the live script, then I can document it quite well. But then if I change the function code I have to replicate the cahnges in the live script.

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

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by