You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
%[same,different,diffvals] = comparestructs(A,B)
%Compares two structures of the same size and determines which fields are the same, and which are different; returns a structure of fields which are different to faciliate comparisons.
%This is useful for comparing properties (ex: tmp1 = get(axes1);tmp2=get(axes2); [same, different] = comparestructs(tmp1,tmp2))
%to see how an item has changed.
Tested under MATLAB R12 and R13.
Cite As
Brett Shoelson (2026). comparestructs (https://www.mathworks.com/matlabcentral/fileexchange/2965-comparestructs), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1.54 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
