Question: EEGR . 3 3 1 - Project 3 : Simple RLC Circuit % Part - I: Simulation and Data Generation % % Values for R

EEGR.331- Project 3: Simple RLC Circuit% Part - I: Simulation and Data Generation%% Values for R, L & C used for generating the dataset %{(w_n,G_maes(w_n))}, n=1,2,...,N %+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% Assumption: r =0 for this simulationR=50; % R =50 OhmsL=0.0023; % L =2.3 mHC=0.0000015; % C =1.5 micro-Faradf_n=1:50:100001;w_n=2*pi*f_n;h_n=abs((R/L).*(j*w_n)./(- w_n.^2+(R/L)*(j*w_n)+(1/(L*C))));subplot (2,1,1);semilogx(w_n,h_n);grid on; title('|H(j\omega_n)|');xlabel ('\omega_n');ylabel ('|H(j\omega_n)|');subplot (2,1,2);theta_n=angle((R/L).*(j*w_n)./(- w_n.^2+(R/L)*(j*w_n)+(1/(L*C)))); degree_n=theta_n*180/pi;semilogx(w_n,degree_n);grid on;title('\theta(j\omega_n)');xlabel('\omega_n');ylabel('\theta(j\omega_n)');Gmeas_n =1./(h_n.^2);temp =[w_n', h_n', Gmeas_n']; save('RLC.mat','temp'); % Saving the data in an ascii file%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% EEGR.331- Project 3: Simple RLC Circuit% Part - II: From the supplementary document for Project 3: Solving the % linear algebraic equation %% A * alpha = b %% with unknown parameters aplha =[alpha_1, aplha_2, aplha_3]'%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++clear all;load RLC.mat;w_n = temp(:,1); h_n = temp(:,2); Gmeas_n = temp(:,3);A = zeros(3,3); % Initialization of the matrix A and column vector bb = zeros(3,1);N = length(w_n); % Computing the system matrix A and column vector bfor i=1:1:N % A(1,1)= A(1,1)+ w_n(i)^(-4); A(1,2)= A(1,2)+ w_n(i)^(-2); A(1,3)= A(1,3)+1; A(2,1)= A(2,1)+ w_n(i)^(-2); A(2,2)= A(2,2)+1; A(2,3)= A(2,3)+ w_n(i)^(2); A(3,1)= A(3,1)+1; A(3,2)= A(3,2)+ w_n(i)^(2); A(3,3)= A(3,3)+ w_n(i)^(4); b(1)= b(1)+ w_n(i)^(-2)*Gmeas_n(i); b(2)= b(2)+ Gmeas_n(i); b(3)= b(3)+ w_n(i)^(2)*Gmeas_n(i);endalpha = A\b; % Solving the linear algebraic equations A * alpha = b; %++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% Note that we can also use the Moore-Penrose Pseudoinverse of matrix A,% that is, alpha=pinv(A)*b, to solve the algebraic equation, where the norm% for the solution is smaller than for any other solution including A\b.%% REMARK: Your approximate solution for alpha must close to the following % values: alpha_1=1/(RC)^2, alpha_2=[1-2L/(R^2 C)],% with r =0, & alpha_3= L^2/R^2*End of Code*
Note that (0.3) is a frequency-domain model for the system with parameters 0,1 and 2. It is easy to verify that the theoretical transfer function for the RLC circuit has the form in (0.3), that is,
|Htheor()|2=2(1RC)2+[(R+rR)2-2LR2C]2+(LR)24
Here, the objective is to develop a procedure for choosing the parameters 0,1 and 2 in (0.1), so that the model |Htheor()|2 is a good approximation to the noisy frequency response |Hmeas()|2 that would be obtained through laboratory measurements. Then, once 0,1 and 2 are known, we should be able to relate (0.3) and (0.4), and derive 0, and Q in (0.2) to compute 0,1 and 2. Note that solving for the optimum 0,1 and 2 directly from (0.3) is difficult, because |Hmodel()|2 is a nonlinear function of 0,1 and 2. Note, however, that the reciprocal is a linear function of the parameters:
Gmodel()=1|Hmodel()|2
=0-2+1+22
Thus, it is easy to find 0,1 and 2 that make Gmodel() the "best approximation" to the reciprocal of the measured data Gmeas()-=1|Hmeas()|

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!