The error being encountered is due to the constructor in the "LCDAddon" class requiring exactly 7 arguments. I have attached a screenshot that reproduces the error to illustrate the problem :-
To create an "LCDAddon" object correctly, you need to pass 7 specific arguments as shown in the original tutorial. You can find the proper way to instantiate the object here - https://www.mathworks.com/help/matlab/supportpkg/add-lcd-library.html.