IN MATLAB CODE - IN MATLAB CODE - IN MATLAB CODE
4. The amplitude of current in an RLC circuit with an alternating voltage source (AC), is given by Vo
where R = resistance of the resistor (ohms, ) Vo = amplitude of source voltage (volts, V) . L = inductance (henrys, H) : C = capacitance (farads, F) wa = 2fa = angular frequency (rad/s, or more technically, 1/s) fa = driving frequency (Hz, or 1/s)
Because the voltage varies, the current also varies, and has a maximum value (amplitude) of I. This function computes that maximum value.
Make a 3-D graph of I, as a function of wa and R, for 60 fa 110 Hz and 10 R 40 (ohms), and parameters vo = 24 V (volts), L = 0.30 H (henrys), and C = 12 x 10-6 F (farads).
Provide a title and label the axes with the relevant variables and brief descriptors of what the variables represent.
Hint: Define a vector for fa, then make the corresponding vector for wa. You can then make the meshgrid with wa, which is in the function formula and will be part of the graph (as opposed to fa).
Another hint: All of the single-valued parameters can (and should be) part of the computation for I, but pre-defined with variable names, so the values are not hardcoded in the formula.