Read model review comments into a table
Version 1.0.2 (25.2 KB) by
Stefan Schloesser
Live script to extract Simulink review comments (review manager) from the <ModelName>_comments.mldatx.
Extract review comments from a model
(Author: stefan.schloesser@continental-corporation.com)
Remark: This live script uses undocumented features, by directly accessing the data structure stored in the mathworks files. This is a proof-of-concept and for teaching purpose.
Algorithm
Matlab stores the review comments of a model in an own file, named "ModelName>_comments.mldatx".
This filetype (mldatx) is (similar to .slx) a .zip file, that contains a folder structure with several files containing the data.
For the review comments, they are stored in a file with the path "fsroot/data/commentsData.dat", which again is a JSON structure.
So to extract the Review comments we will do the following:
- Ask the user for the model name
- Unzip the review comments file
- Read commentsData.dat into a JSON struct
- Sort replies behind corresponding comments by 'CommentID' and 'Key'
- Convert JSON struct into a time table
Cite As
Stefan Schloesser (2026). Read model review comments into a table (https://www.mathworks.com/matlabcentral/fileexchange/133847-read-model-review-comments-into-a-table), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
