Question

4. Apply the periodic signal of Problem 1 to a system (the RC circuit discussed in class with the position of the two oRC H(jo) components flipped) for which爪r)-l+JRC·Use MATLAB to plot the output signal 0 (which corresponds in this case to the resistor voltage) for three cases, namely RC-sec, RC-10sec, and RC-0.1 see. Compare the output to the input signal and discuss the amount of distortion that is observed and why in some cases there is more distortion than in other cases
media%2Fe22%2Fe22366b4-6f04-4f5e-8b4a-2a

Please attach matlab code and figures
0 0
Add a comment Improve this question Transcribed image text
Answer #1

1)

clc;close all;clear all;
RC=1
b=[RC 0]
a=[RC 1]
sys=tf(b,a)
t=0:pi/100:pi;
x1=(exp(-t/RC));
tt=linspace(-3*pi,3*pi,6*length(x1));
x=[-x1 x1 -x1 x1 -x1 x1];
subplot(211)
plot(tt/pi,x,'r')
xlabel('t')
title('x(t) for RC=1')
ylabel('x(t)')

y=lsim(sys,x,tt)

subplot(212)
plot(tt/pi,y,'b')
xlabel('t')
title('y(t)')
ylabel('y(t)')

x(t) for RC=1 X(t) । | 2 3 y(t) |


clc;close all;clear all;
RC=10
b=[RC 0]
a=[RC 1]
sys=tf(b,a)
t=0:pi/100:pi;
x1=(exp(-t/RC));
tt=linspace(-3*pi,3*pi,6*length(x1));
x=[-x1 x1 -x1 x1 -x1 x1];
subplot(211)
plot(tt/pi,x,'r')
xlabel('t')
title('x(t) for RC=10')
ylabel('x(t)')

y=lsim(sys,x,tt);

subplot(212)
plot(tt/pi,y,'b')
xlabel('t')
title('y(t)')
ylabel('y(t)')

, y(t) X(t) x(t) for RC=10

clc;close all;clear all;
RC=0.1
b=[RC 0]
a=[RC 1]
sys=tf(b,a)
t=0:pi/100:pi;
x1=(exp(-t/RC));
tt=linspace(-3*pi,3*pi,6*length(x1));
x=[-x1 x1 -x1 x1 -x1 x1];
subplot(211)
plot(tt/pi,x,'r')
xlabel('t')
title('x(t) for RC=0.1')
ylabel('x(t)')

y=lsim(sys,x,tt);

subplot(212)
plot(tt/pi,y/abs(max(y)),'b')
xlabel('t')
title('y(t)')
ylabel('y(t)')

x(t) for RC=0.1 X(t) 3

Add a comment
Know the answer?
Add Answer to:
Please attach matlab code and figures 4. Apply the periodic signal of Problem 1 to a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • -1 3. Apply the periodic signal o I to a system (the RC circuit discussed in...

    -1 3. Apply the periodic signal o I to a system (the RC circuit discussed in class) for which I+ oRC Use MATLAB to plot the output signal ) (which corresponds to the capacitor voltage) for three cases, namely RC-see, RC-10see a RC-0.1se Compare the output to the input signal and discuss the amount of distortion that is observed and why in some cases there is more distortion than in other cases. Hint: you will need to where τ is...

  • Please use matlab and attach the figures of the solution 7. Consider the following CT signals,...

    Please use matlab and attach the figures of the solution 7. Consider the following CT signals, all of them defined for -31 (o)-cos()-sin(4x) ,0)-1.5e 5,0)-)50- For each of these signals indicate whether it is even, odd, or neither, real or complex, periodic or non periodic, type I, type II, or neither. Plot each signal using MATLAB. If a signal is complex, plot magnitude and phase separately. Select a plotting interval and a sampling interval appropriate for the signal in question....

  • please do this problem in matlab and show me the code. Thanks. please do this problem...

    please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks.please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me...

  • please do this problem in matlab and show me the code. Thanks. please do this problem...

    please do this problem in matlab and show me the code. Thanks. please do this problem in Matlab and show me the code. Thanks. Problem #1: Circuits and linear-systems In the last HW you developed the governing equations for the “Wheatstone”-bridge circuit used extensively in engineering applications (shown below). B R R2 A D G m RA с E The resulting equations were solved for the output voltage and currents using the function: function [V_out, I_vector] =Wheatstone_bridge (v_in, R_vector) In...

  • #3 and #4 please Preparation: 1. If we were to sample a periodic signal at a...

    #3 and #4 please Preparation: 1. If we were to sample a periodic signal at a randomly chosen point in its period, the value of the sample would be a random variable. The distribution of this random variable is termed the amplitude distribution of the periodic signal. Derive and plot the amplitude distribution of the sinusoid, triangular, and square wave signals (specify both the density function and the distribution function) 2. calculate and plot the autocorrelation function of a sinusoid...

  • Hello, I'm taking signal systems course. please solve this question in matlab as soon as possbile please. Question 1 a) Write a function that calculates the Continuous Time Fourier Transform o...

    Hello, I'm taking signal systems course. please solve this question in matlab as soon as possbile please. Question 1 a) Write a function that calculates the Continuous Time Fourier Transform of a periodic signal x() Syntax: [w, X] = CTFT(t, x) The outputs to the function are: w = the frequencies in rad/s, and X = the continuous Fourier transform of the signal The inputs to the function are: x-one period of the signal x(t), andt the time vector The...

  • solve using MatLab please. HW - 1 Use a cover page Word file attached for the...

    solve using MatLab please. HW - 1 Use a cover page Word file attached for the homework solution. Solve all questions using Word and the Matlab output should be copied into the Word file. All questions and answers should be numbered HW1.1 Generate the following sequences using the basic MATLAB signal functions and the basic MATLAB signal operations discussed in this chapter. Plot signal samples using the stem function. 1- x(n) = n°[u(n+5] – u(n-6) + 105(n) + 20(0.5)* [u(n-4)...

  • Can someone please help me with this, I'm really stuck. here a sample code provide for the matlab...

    can someone please help me with this, I'm really stuck. here a sample code provide for the matlab: clear all; close all; % ---------- (a) ---------- a = 0.7; % attenuation coef. D = 5; % digital time delay UnitImpulse = [1 zeros(1,???)]; % creat unit impulse, starting from n=0; x = UnitImpulse; y = filter(1, [1 zeros(1, D-1) -a], x); % help filter, do you know the usage of filter() now? n = 0:(length(y)-1); % check length of y[n]...

  • can you sovle this problem, also I need the code for part d. thanks Problem #5 Ri Vy= Probe I R- 1502 o VOLTMETER IN...

    can you sovle this problem, also I need the code for part d. thanks Problem #5 Ri Vy= Probe I R- 1502 o VOLTMETER INPUT CIRCUIT Probe 2 Express resistance in ohms (2) and voltage in volts (V) Requirements-Part 1 (voltmeter not attached yet) a) Suppose you want to produce a voltage of 1 V across resistor R2 (i.e. Vor 1 V) Use the voltage divider equation to find the value of Ri that is needed to do this. b)...

  • PLEASE DO IN MATLAB Problem 8 (PID feedback control). This problem is about Proportional-Integral-Derivative feedback control...

    PLEASE DO IN MATLAB Problem 8 (PID feedback control). This problem is about Proportional-Integral-Derivative feedback control systems. The general setup of the system we are going to look at is given below: e(t) u(t) |C(s) y(t) P(s) r(t) Here the various signals are: signal/system r(t) y(t) e(t) P(s) C(s) и(t) meaning desired output signal actual output signal error signal r(t) y(t) Laplace transform of the (unstable) plant controller to be designed control signal Our goal is to design a controller...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT