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.
Will Campbell (2021). 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 .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!