How to extract local functions from within a .m file?

조회 수: 2 (최근 30일)
Balaji
Balaji 2015년 3월 13일
Use case: I have a UI which opens up a particular local function for a user using matlab.desktop.editor.openAndGoToFunction.
Now the user should have an option to save only the local function in a separate file. To do this, i need to have atleast have the starting and ending lines of a function, to do some sort of file read. Can go for regexp but could be costly in case of files where the local function is huge. Any recommendations/suggestions will be appreciated.

답변 (0개)

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by