Visit the MathWorks file exchange submission page for detailed explanation:

https://www.mathworks.com/matlabcentral/fileexchange/72541-create-custom-device-driver-block-for-arduino