Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% LC Circuit in a Radio
- % Determines the wavelength and frequency of the waves
- % Constants
- c = 3.00*10^8; %[m/s] Speed of Light
- % Inputs and Variables
- L = input('What is the inductance?\n');
- C = input('What is the capacitance?\n');
- % Outputs and Equations
- f = 1/(2*pi*sqrt(L*C));
- lambda = c/f;
- fprintf('The frequency and wavelength are:\n %e Hz and %e m \n', f, lambda)
- %{
- A common unit for capacitance is pF or a pico- which is 10^-12
- The speed of the wave is the speed of light
- %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement