Read model review comments into a table

Live script to extract Simulink review comments (review manager) from the <ModelName>_comments.mldatx.
26 Downloads
Updated 15 Aug 2023

View License

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 Linux
Tags Add Tags
Version Published Release Notes
1.0.2

Change table header from CommentID to "Replies to Key"

1.0.1

Support review replies (which have different fields) and sort them behind their corresponding comment.
Also add demo model to test with.

1.0.0