Extract docblock contents externally

1 回表示 (過去 30 日間)
Kent Schonert
Kent Schonert 2019 年 12 月 13 日
I want to write an external program to (quickly) display contents of a doc block at the top level of an .mdl library. I intend to call it from GIT Extensions to get more details pushed changes without actually opening the file from Matlab.
I think I can do this by looking for sourceType: "DocBlock" in the plaintext of the .mdl and then looking at the associated DataTag in it's UserData. However, I do not know how to convert the DataRecord from DocBlock encoding to text.
For example the following is the DataTag of a doc block that just has abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
MatData {
NumRecords 1
DataRecord {
Tag DataTag0
Data " %)30 . . $ 8 ( @ % \" $ ! 0 % 0 \" $ 8 =F5R<"
"VEO;@!C;VYT96YT &9O<FUA= #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ S,S,S,S/S/"
"PX !H !@ @ $ 4 ( 0 #, ! ! S 86)C9&5F9VAI:FML;6YO<'%R<W1U=G=X>7I!0D-"
"$149'2$E*2TQ-3D]045)35%565UA9 . , 8 ( ! % \" $ # 0 0 , 5%A4 "
}
}

回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by