Create a graphical interface using a MATLAB program named HDTask2.m to verify your digital circuit design, which must also satisfy the following programming requirements:
i. You need to allow the user to enter an integer in the range of 0-9 in command window.
ii. Display the corresponding binary inputs (A3, A2, A1, A0) and LED simulation in a MATLAB figure. The LED should display the same integer as the user enters.
iii. The program should have a command for user to exit the program.
iv. The program should handle exceptions such as when player enters an invalid command, etc.
v. The program should not crash MATLAB during running (i.e., good reliability).
vi. You must use logical operations, e.g., and, or, not, |, &, ~, to produce the outputs a - g. Show the screenshot of your LED simulation interface. You may add comments in your program to describe the codes allowing others to understand your code easily.
Please somebody help me doing this. I have really tried.