Find Unused Fields in Simulink Structure Variables
Version 1.0.0.0 (39.4 KB) by
Will Campbell
Find fields of a structure not used by Simulink model.
findFields(M) returns a cellstr array that lists fields of structures unused by the model M. The utility will identify all structures used by the model and its submodels. It will then determine which fields of those structures are specifically referenced by the model, cross reference that result with all the fields in the structure and return a list of unused fields.
Cite As
Will Campbell (2026). Find Unused Fields in Simulink Structure Variables (https://www.mathworks.com/matlabcentral/fileexchange/64858-find-unused-fields-in-simulink-structure-variables), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2017b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Programmatic Model Editing in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | added copyrights |
