https://se.mathworks.com/help/coder/ref/coder.classsignature.addmethod.html
addMethod - Add method specification to coder.ClassSignature object (Tech Preview) - MATLAB
When you specify a MATLAB class as an entry point for code generation, use the addMethod function to add methods to the coder.ClassSignature object.
addmethodspecification
https://forum.jquery.com/portal/en/community/topic/error-cannot-read-property-addmethod-using-jquery-validation
Error: Cannot read property 'addMethod' using jQuery Validation
No one was able to solve this on Stackoverflow.....
errorcannotreadpropertyusing