You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 .
General Information
- Version 1.0.2 (25.2 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
