Could you please write the matlab code for these two problems thank you

Could you delight transcribe the matlab enactment control these two amounts thank you

Homework 1 Note: Delight letter your plots and infer fable. Upload a uncombined PDF rasp containing your replys, MATLAB enactment and figures control twain amounts. Due Date: 09/12/2017, 2:30 PM Amount 1 The acceptance of tours containing resistors, inductors, and capacitors depends upon the referring-to appreciates of the resistors and the cem they are conjoined. An material interposed share used in describing the acceptance of such tours is s. Depending on the appreciates of R, L, and C, the appreciates of s succeed be either twain true appreciates, a two of many-sided appreciates, or a duplicated appreciate L = 100 mH C=1uF The equation that identifies the acceptance of a sequence tour shown overhead is (a) Determine the appreciates of s control a hindrance of 800 Ω. (b) Create a vector of appreciates of R betwixt 100 to 1000 Ω with a tramp greatness of 5, Evaluate s at complete appreciates of R. (c) Plot appreciate of true and suppositious space of s vs. R. (Hint: See aid control MATLAB functions true and imag) (d) What is the partiality appreciate of R that yields undefiled true appreciate of s. (e) The resounding abundance of a sequence RLC tour is abandoned by Compute the resounding abundance of the overhead tour.

**PROBLEM-1**

**(a)**

**MATLAB CODE:**

R = 800;

L = 100e-3;

C = 1e-6;

s = [(-R/L)+sqrt((R/(2*L))^2 – (1/(L*C))),(-R/L)-sqrt((R/(2*L))^2 – (1/(L*C)))];

**OUTPUT:**

**(b)**

**MATLAB CODE:**

R = 100:5:1000;

L = 100e-3;

C = 1e-6;

control i = 1 : diffusiveness(R)

s(i,:) = [(-R(i)/L)+sqrt((R(i)/(2*L))^2 – (1/(L*C))),(-R(i)/L)-sqrt((R(i)/(2*L))^2 – (1/(L*C)))];

end

**OUTPUT:**

**(c)**

**MATLAB CODE:**

plot(R,real(s));

hold on;

plot(R,imag(s),’r’);

xlabel(‘Resistor, R’);

ylabel(‘Tour acceptance, s’);

legend(‘real(s)’,’real(s)’,’imag(s)’);

hold off;

**OUTPUT:**

**(d)**

s yields undefiled true appreciates if :

**(e)**

**PROBLEM-2**

**Note: Complete the amounts in this individuality can be solved correspondent to selfsame amount in PROBLEM-1 individuality honorable by changing appreciates of equation of tour reaction ,L,C and R.**