Extract docblock contents externally

5 vues (au cours des 30 derniers jours)
Kent Schonert
Kent Schonert le 13 Déc 2019
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 "
}
}

Réponses (0)

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by