Seven segment LED display
조회 수: 4 (최근 30일)
이전 댓글 표시
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/364015/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/364018/image.png)
Please somebody help me doing this. I have really tried.
댓글 수: 0
답변 (1개)
Keyur Mistry
2020년 9월 24일
I understand you want to implement seven segment led display in MATLAB using the “figure” object. Following links will be useful for you:
“input” command can be used to request input from the user:
“if-elseif-else" statement can be used to validate the input:
“plot” command can be used to display LED:
Explore Axes Properties to add texts in figure window:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!