Using identical() function to compare matrices