Question

a) A step function has following characteristic 1for t > 0 -1 for t < 0 sgn(t) Use MATLAB plot this function over [-10, 10].

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

a.

MATLAB CODE

clear all;
clc;
t=-10:0.01:10; % Time Vector
y=sign(t); % signum function

plot(t,y,'*'); % plot
grid on
title('Signum ');
xlabel('t (sec)')
ylabel('Amplitude');

- 0 Figure 1 File Edit View 0803 Insert Tools Desktop Window A & Signum Help E O Amplitude ------ -10 8 6 4 2 0 t(sec) 2 4 6

b.

MATLAB CODE

clear all ;
clc ;
x=-4*pi:0.1:4*pi ; %axis defination

y=sinc(x) ; %sin(pi*x)/(pi*x)
plot(x,y,'r'); %plot
grid on
title('Sinc Function');
xlabel('t in sec')
ylabel('Amplitude');

Figure 1 File Edit View Insert Tools Desktop Window Help ada Ans. 3 O E O Sinc Function Amplitude OMAAAA -0.2 0.15 10 5 10 t

Add a comment
Know the answer?
Add Answer to:
a) A step function has following characteristic 1for t > 0 -1 for t < 0...
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