이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
STRUCTCMP(A,B) returns logical 1 (TRUE) if structure A and B are the same
size, contain the same field names (case sensitive), same field sorting, and same values;
and logical 0 (FALSE) otherwise.
If A is defined and you set B = A, STRUCTCMP(A,B) is not necessarily
true. If A's or B's field contains a NaN (Not a Number) element, STRUCTCMP returns
false because NaNs are not equal to each other by definition. To considers NaN values to be equal
use STRUCTCMP(A,B, 'EqualNans', 'on')
The order in which the fields of each structure were created is important. To ignore the field
sorting use STRUCTCMP(A,B, 'IgnoreSorting', 'on')
Field names comparison is case sensitive. To ignore any differences in letter case use
STRUCTCMP(A,B, 'IgnoreCase', 'on')
STRUCTCMP(A,B, 'Report', 'on') displays a report on the command window
인용 양식
Javier Lopez-Calderon (2026). Compare Two Structures (https://kr.mathworks.com/matlabcentral/fileexchange/43463-compare-two-structures), MATLAB Central File Exchange. 검색 날짜: .
