Question

3. Sketch stuff (by hand or by computer) 3.1 Systems signals The signal x()-sin^t), for 0stsl; is applied to a circuit with a

0 0
Add a comment Improve this question Transcribed image text
Answer #1

(3.1) Let draw the signals using computer through MATLAB

MATLAB CODE:

clc
clear all
close all

t = -2:0.01:2;
m = 2*length(t)-1;      % Length of Output y(t)
n = linspace(-2,2,m);

u1 = t >= 0;
u2 = t >= 1;

x = sin(pi.*t).*(u1-u2); % Input x(t)
h = 2.*(u1-u2);          % Impulse h(t)
y = conv(x,h);           % Output y(t)

subplot(3,1,1)
plot(t,x,'k','LineWidth',2)
xlabel('t')
title('x(t)')
grid on

subplot(3,1,2)
plot(t,h,'k','LineWidth',2)
xlabel('t')
title('h(t)')
grid on

subplot(3,1,3)
plot(n,y,'k','LineWidth',2)
xlabel('t')
title('y(t)')
grid on

OUTPUT:

x(t) 0.8 0.6 0.4 0.2 0 2 0.5 0.5 5 2 h(t) 2 0.5 0 2 0.5 0.5 2 y(t) 140 120 100 0.5 0.5 2 2

Add a comment
Know the answer?
Add Answer to:
3. Sketch stuff (by hand or by computer) 3.1 Systems signals The signal x()-sin^t), for 0stsl;...
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
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