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

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))

Respuestas (2)

Walter Roberson
Walter Roberson el 25 de Sept. de 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 el 25 de Sept. de 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().

Categorías

Etiquetas

Preguntada:

el 25 de Sept. de 2016

Respondida:

el 25 de Sept. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by