To check if two structures have the same content, you can use the isequal
function in Matlab. Example code to compare two structures would be:
main.m570 chars22 lines
This code will output:
main.m89 chars3 lines
This indicates that the two structures are not equal, and shows where the differences are in the structure content by comparing struct1
and struct2
field-by-field.
gistlibby LogSnag