Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please refer to the screenshot above for problems 1,2 and 3 If screenshot is not

ID: 2247917 • Letter: P

Question

Please refer to the screenshot above for problems 1,2 and 3

If screenshot is not visible please refer to this link for the full res image

http://img.pixady.com/2017/09/920464_matlabquestion.jpg

Problem 1

Write a Matlab function findEquiv such that

•findEquiv(Values, 'S', 'R') returns the equivalent resistance of any number of resistors in series (the second argument 'S' stands for “series”), the values of which are saved in the onedimensional array Values

•findEquiv(Values, 'P', 'R') returns the equivalent resistance of any number of resistors in parallel ('P' stands for “parallel”) •findEquiv(Values, 'S', 'C') and findEquiv(Values, 'P', 'C') perform the same for capacitors findEquiv(Values, 'S', 'L') and •findEquiv(Values, 'P', 'L') perform the same for inductors (i.e. the third arguments 'C' and 'L' stand for capacitors and inductors, respectively) Include this code with your report.

Problem 2

•Next you will check whether your function works properly by applying it to different resistive, capacitive and inductive networks. For example, your function should return Rab = 4.1481 for the circuit shown on the right when you type the following in your command prompt:

Rab = findEquiv( [16 findEquiv([4 1.6], 'S', 'R')], 'P', 'R')

Or,

r1 = findEquiv( [4 1.6], 'S', 'R'); Rab = findEquiv( [16 r1], 'P', 'R')

Write expressions similar to the ones above for each of the following circuits (Figures 1-3). Include these expressions and the results with your report.

Problem 3

•For Figures 1 to 3, use a standard circuit simulation program to find the equivalent resistance, capacitance, or inductance. If the simulation program cannot directly measure any of the quantities above (e.g. if it doesn’t have an ohmmeter, it can’t measure Req), think of an indirect way of measuring it (Hint: Consider measuring the time constant of the original circuit and the equivalent circuit). Include screenshots of your simulated circuits showing the quantities of interest, and state how you measured them. Check the results against those obtained in Problem 2.

Problem 1 (30 points) Write a Matlab function indEquiv such that 20 SO , s , , , R., returns the equivalent resistance of any number of resistors in tindEquivvalues, series (the second argument 'S' starnds for "series"), the values of which are saved in the one dimensional array Values findEquivvalues, ' parallel ('P stands for "parallel") t indEquivvalues, ' s ' ' , c') and rinda.quiv tvalie: s, . returns the equivalent resistance of any number of resistors in 'C ' perform lhe same fur ' L ') perform the same for . , R" 75 10 25 100 * " P" , ' S ' , ' L., and findEquiv { Values, . P. findEquivValues, inductors (ie. the third arguments 'C ' and . L' stand for capacitors and inductors, respectively) 10 10 Fig 1 Include this code with your report. 0.1 F 1.6 Problem 2 (40 points) Next you will check whether your function works properly by applying it to different resistie, capacitive and inductive networks. For example, your function should return Raab = 4·1481 for the circuit shown on the right when you type the following in your command prompt: Lo uF 1612 4 Fig 2 Or 0.2 mH Fig 3 Write expressions similar to the ones above for each of the following circuits (Figures 1-3) Include these expressions and the results wth your report. Problem 3 (30 points) For Fizures 1 to 3, usc a standard circuit simulation prograrn to find the equhalent resistance, capacitance, or inductance. If the simulation program cannot directly measure any of the quartities above (e if it doesn't have an ohmmeter, t can't measure Real, think of an indirect way of measurng it [Hint: Consider measuring the time corstant of the original circuit and the equivalent circut Include screenshats of ycur simulated circuits shasing the quarities of interest, and state how you measured them. Check the results against those abtained in Prablem 2

Explanation / Answer

Problem 1.

function R = findEquiv(Values, string, type)
if string=='S' && type=='R'
    R = sum(Values);
elseif string=='P' && type=='R'
    R = sum(1./Values);
elseif string=='S' && type=='C'
    R = sum(1./Values);
elseif string=='P' && type=='C'
    R = sum(Values);
elseif string =='S' && type=='L'
    R = sum(Values);
elseif string=='P' && type=='L'
    R = 1/sum(1./Values);
end

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote