Can GUI show a circuit drawing based on the user input?

6 views (last 30 days)
I have a generalized circuit for a voltage level converter with only two things that is variables, number of capacitors and number of switches and how they are connected to make this converter operational based on the user voltage gain input. Can I use the GUI in matlab to take the voltage gain needed from the user, and then it shows the circuit drawing? note: the voltage gain determines the number of capacitors and switches and how they are connected (( I did this part by a code already))

Answers (2)

Walter Roberson
Walter Roberson on 25 Sep 2016
Yes. You will probably want to use rectangle(), which is also useful for drawing ovals and circles, and annotation() which is useful for drawing arrows, and line() for drawing lines.

Image Analyst
Image Analyst on 25 Sep 2016
To "take the voltage gain needed from the user" I'd use inputdlg().
When you're ready to "shows the circuit drawing", I'd use imshow().

Tags

Community Treasure Hunt

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

Start Hunting!