comparestructs
版本 1.0.0.0 (1.5 KB) 作者:
Brett Shoelson
Compares 2 structures; determines which fields are the same, which are different; shows differences.
%[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.
引用格式
Brett Shoelson (2024). comparestructs (https://www.mathworks.com/matlabcentral/fileexchange/2965-comparestructs), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R13
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Language Fundamentals > Operators and Elementary Operations >
- MATLAB > Language Fundamentals > Data Types > Structures >
在 Help Center 和 MATLAB Answers 中查找有关 Operators and Elementary Operations 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |