You can use the isequal
function to compare two tables in MATLAB. The function will return true if both tables have the same size and contain the same elements.
Here's an example:
main.m232 chars7 lines
This will output true
since both tables have the same size and contain the same elements. If the tables are not equal, isequal
will return false
.
gistlibby LogSnag