The built-in setxor
function in MATLAB doesn't support tables. However, you can achieve the same functionality as setxor
for tables using the following approach:
main.m459 chars15 lines
This code first identifies the common variables in the two tables and then uses setdiff
to find the rows that are unique to each table. Finally, the unique rows are concatenated to form the final result table.
gistlibby LogSnag