https://au.mathworks.com/help/map/ref/projcrs.isequal.html
isequal - Compare two projcrs or geocrs objects for equivalence - MATLAB
This MATLAB function returns logical 1 (true) if the coordinate reference systems (CRSs) crs1 and crs2 are equivalent.
comparetwoobjectsequivalencematlab