Print subfunction names to text file
古いコメントを表示
I need to print the function names of subfunctions inside a classdef to a .txt file. I'd like to do it quickly without having to go in and copy paste each function name everytime i revise this code. This will be used to generate a change log for a README.
here's my basic setup:
classdef master
methods(Static)
function f1()
%stuff
end
function f2()
%stuff
end
function f3()
%stuff
end
end
end
And I want to run a function in matlab that will output something like:
File names in master.m:
master.f1()
master.f2()
master.f3()
into a text file. I know how to save as a text file, and other fprintf formatting is easy. I just don't know how to go into the classdef and grab those function names. Is there an easy way to do this?
I'm using MATLAB R2018a
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Adding custom doc についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!