compareStruct

Compare Structs fields

You are now following this Submission

compareStruct compares Structs fields and returns logical 1 (true) if the input structs have the same fields, and logical 0 (false) otherwise, no matter their content.

Cite As

Marco Borges (2026). compareStruct (https://nl.mathworks.com/matlabcentral/fileexchange/40124-comparestruct), 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.3.0.0

v2 : Changes compare struct like Jos (10584) mention

1.2.0.0

Changes suggested by the user Jos (10584) accepted!

1.0.0.0