Question: EEGR . 3 3 1 - Project 3 : Simple RLC Circuit % Part - I: Simulation and Data Generation % % Values for R
EEGR Project : Simple RLC Circuit Part I: Simulation and Data Generation Values for R L & C used for generating the dataset wnGmaeswn nN Assumption: r for this simulationR; R OhmsL; L mHC; C microFaradfn::;wnpifn;hnabsRLjwn wnRLjwnLC;subplot ;semilogxwnhn;grid on; titleHjomegan;xlabel omegan;ylabel Hjomegan;subplot ;thetanangleRLjwn wnRLjwnLC; degreenthetanpi;semilogxwndegreen;grid on;titlethetajomegan;xlabelomegan;ylabelthetajomegan;Gmeasn hn;temp wn hn Gmeasn; saveRLCmat','temp'; Saving the data in an ascii file EEGR Project : Simple RLC Circuit Part II: From the supplementary document for Project : Solving the linear algebraic equation A alpha b with unknown parameters aplha alpha aplha aplhaclear all;load RLCmat;wn temp:; hn temp:; Gmeasn temp:;A zeros; Initialization of the matrix A and column vector bb zeros;N lengthwn; Computing the system matrix A and column vector bfor i::N A A wni; A A wni; A A; A A wni; A A; A A wni; A A; A A wni; A A wni; b b wniGmeasni; b b Gmeasni; b b wniGmeasni;endalpha Ab; Solving the linear algebraic equations A alpha b; Note that we can also use the MoorePenrose Pseudoinverse of matrix A that is alphapinvAb to solve the algebraic equation, where the norm for the solution is smaller than for any other solution including Ab REMARK: Your approximate solution for alpha must close to the following values: alphaRC alphaLR C with r & alpha LREnd of Code
Note that is a frequencydomain model for the system with parameters and It is easy to verify that the theoretical transfer function for the circuit has the form in that is
Here, the objective is to develop a procedure for choosing the parameters and in so that the model is a good approximation to the noisy frequency response that would be obtained through laboratory measurements. Then, once and are known, we should be able to relate and and derive and in to compute and Note that solving for the optimum and directly from is difficult, because is a nonlinear function of and Note, however, that the reciprocal is a linear function of the parameters:
Thus, it is easy to find and that make the "best approximation" to the reciprocal of the measured data
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
