struct_field_diff(s​1, s2, verbose, s1str, s2str)

Returns the difference between two structs

You are now following this Submission

Description: recursive comparison between two structs will give back the fields which are different between them , plus the count of the number of such fields.

Cite As

Ben (2026). struct_field_diff(s1, s2, verbose, s1str, s2str) (https://uk.mathworks.com/matlabcentral/fileexchange/52547-struct_field_diff-s1-s2-verbose-s1str-s2str), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0