compStructs - Compare 2 structures and returns diff details
This code compares 2 MATLAB structures (or objects) and returns a cell array with the differences details, one row per difference, if any.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
Jorge Paloschi (2026). compStructs - Compare 2 structures and returns diff details (https://se.mathworks.com/matlabcentral/fileexchange/184712-compstructs-compare-2-structures-and-returns-diff-details), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.3 (2.52 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.3 | Added a safeguard for cases not implemented
|
||
| 1.0.2 | Accept objects as well as structures |
||
| 1.0.1 | Added limit on recursion level (defaults to 6)
|
||
| 1.0.0 |