Seven segment LED display

7 ビュー (過去 30 日間)
Ilmiat
Ilmiat 2020 年 9 月 21 日
回答済み: Keyur Mistry 2020 年 9 月 24 日
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.

回答 (1 件)

Keyur Mistry
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:

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by