matlab
Your PR matrix now holds values of power (in watts) delivered to the resistor for every combination of inductor (L) and capacitor (C) values. Declare a new scalar variable max PR to store the largest value of power inside the PR matrix. Use your results to report which specific value for L and value for C resulted in max PR. Store these two results in the variables max L and max C, respectively. The find function should be instrumental here. More specifically, see its usage near the top of p. 178 in your textbook.
I was told by phi I need to use double indexing for this part.
The double indexing is confusing me.
hmm still thinking
sorry I'm getting lost in all the circuit analysis. I'm not exactly sure what they're even asking for
let me explain to you
hold on for a sec
% defining input variables for RLC circuit f_volt = 60; % measured in hertz W_volt = 120; % measured in volts rms R = 100; % measured in ohms L_o = 0.005:0.005:0.245; % matrix L 2D matrix incr. from left to right C_o = 5e-6:10e-10:9.5e-5; % matrix C 2D matrix incr. from top to bottom [L_o, C_o] = meshgrid(L_o, C_o); % current output for RLC circuit (I) in RLC circuit (note: j = sqrt(-1)) I = (120)./(100 + j*2*pi*60*L_o - ((j)./(2*pi*60*C_o))); % power obsorbed by resistor P_R = 100*abs(I.^2);
so here we have my variables (inputs) and my two vectors L is the inductor and C is the capacitor. We then perform a meshgrid. The current equation I gives me the current in the RLC circt. P_R is the power that the resistor absorbs.
|dw:1461197232451:dw|
Join our real-time social learning platform and learn together with your friends!