Compare Structures

Compares two structured variables recursively and notes where the two structures are different.

Download
Download

You are now following this Submission

Cite As

michael arant (2026). Compare Structures (https://uk.mathworks.com/matlabcentral/fileexchange/22752-compare-structures), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

New version where results are reported as structures (matches, err1, err2). Results can be expanded with list_struct.

Download
1.3.0

This is an update of the code to provide better lists of the errors encountered.

Download
1.1.0

This is a scratch re-write of the code taking advantage of new abilities in MATLAB. This version should be more usable.

Download
1.0.0

Download