Info
This question is closed. Reopen it to edit or answer.
Design a GUI to calculate capacitance
2 views (last 30 days)
Show older comments
I need to design a GUI that allows the user to select the resistance value from a drop down menu with 4 choices, which are 1k, 2k, 3k, and 4k. Then the user is required to input the cutoff frequency and the GUI should display the capacitance value.
I want to program it such that when I click a button 'CALCULATE', the program will take the selection from the drop down menu such that if index value is 1, the resistance is set to be 1000 and etc. Then it takes the frequency value and calculate the capacitance using the formula f = 1/2πRC. How should I do it?
The GUI that I have designed looks like this

2 Comments
Walter Roberson
on 22 May 2022
Okay, what is your question?
Also, are you using GUIDE or App Designer ?
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!