Extract docblock contents externally
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Database Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!