Can GUI show a circuit drawing based on the user input?
6 views (last 30 days)
Show older comments
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))
0 Comments
Answers (2)
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.
0 Comments
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().
0 Comments
See Also
Categories
Find more on Circuits and Systems in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!