To check if two structures have the same content, you can use the isequal function in MATLAB. Here is an example code:
main.m172 chars9 lines
The isequal function returns a logical true if the two inputs are structurally equal, and a logical false otherwise. In the example above, the result will be true as the two structures have the same fields and values.
gistlibby LogSnag