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

Can someone explain what code to put for MATLAB for problems B, C and D in detai

ID: 3742912 • Letter: C

Question

Can someone explain what code to put for MATLAB for problems B, C and D in details? Im lost

3. The response of circuits containing resistors, inductors, and capacitors depends upon the relative values of the resistors and the way they are connected. An important intermediate quantity used in describing the response of such circuits is s. Depending on the values of R, L, and C, the values of s will be either both real values, a pair of complex values, or a duplicated value. L= 100 mh The equation that identifies the response of a particular series circuit is 2L 2L LC Hint a. b. c. Determine the values of s for a resistance of 800 . Create a vector of values for R ranging from 100 to 10002 and evaluate s Refine your values of B until you find the smallest size of resistor that yields a pure real value of s . d. Describe the effect on s as R increases in value.

Explanation / Answer

c = 1*10^-6

l = 100*10^-3

r = 800

first_ans = -r/(2*l) + sqrt((r/(2*l))^2-1/(l*c))

second_ans = -r/(2*l) - sqrt((r/(2*l))^2-1/(l*c))

r = linspace(100,1000,900); #This creates a vector of 900 elements between 100 and 1000

first_ans = -r./(2*l) + sqrt((r./(2*l)).^2-1/(l*c)); #.* and ./ are scalar multiplication and division of a vector. It now treates the elements as individual elements and not a vector as a whole.

second_ans = -r./(2*l) - sqrt((r./(2*l)).^2-1/(l*c));

Taking a look at the raw data itself we can see that the first real value appears at 533.

The magnitude in case of + decreases whereas in case of - increases. In the + case value of real part increases and imaginary part decreases But in the - case value of both parts decreases.