File Exchange

image thumbnail

Find Unused Fields in Simulink Structure Variables

version (39.4 KB) by Will Campbell
Find fields of a structure not used by Simulink model.


Updated 31 Oct 2017

View License

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 (2021). 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 Linux

Community Treasure Hunt

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

Start Hunting!