https://it.mathworks.com/help/simulink/slref/simulink.io.filetype.validatefilenameimpl.html
Simulink.io.FileType.validateFileNameImpl - Validate contents of custom MAT file - MATLAB
This MATLAB function validates the format of the signals in the custom MAT file fileName with the associated Simulink.io.FileType reader.
custom matsimulinkiofiletypevalidate