Info

This question is closed. Reopen it to edit or answer.

Design a GUI to calculate capacitance

2 views (last 30 days)
Ye Ken Kok
Ye Ken Kok on 22 May 2022
Closed: Cris LaPierre on 22 May 2022
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
Walter Roberson on 22 May 2022
Okay, what is your question?
Also, are you using GUIDE or App Designer ?
Ye Ken Kok
Ye Ken Kok on 22 May 2022
This is the question given to me
And I am using App Designer

Answers (0)

This question is closed.

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!