Matlab

GENERATION OF SIGNALS AND SEQUENCES

GENERATION OF SIGNALS AND SEQUENCES:

If we defines amplitude of the signal at every instant of time is called continuous time signal, else if we define at some instant of time is called discrete time signal. If the signal repeats at regular intervals is called as periodic signal. Else it is called as aperiodic. Let us consider some example of periodic and aperiodic signals.

Periodic: ramp, sinc, unit step and ramp.

Aperiodic: sawtooth, square, triangular sinusoidal.

Ramp signal:

The ramp function is a singular real function.it is applied in engineering. Easily computable because of the mean of the experimental variable and its definite quantity. Ramp function is defined as:

               r(t)= t   when   t≥0

0 Otherwise

clc;

clear all;

close all;

t=0:0.001:0.1;

y1=t;

figure;

subplot(2,2,1);

plot(t,y1);

xlabel(‘time’);

ylabel(‘amplitude’);

title(‘ramp signal’);

%generation of ramp sequence

subplot(2,2,2);

stem(t,y1);

xlabel(‘n’);

ylabel(‘amplitude’);

title(‘ramp sequence’);

Unit step:

Unit step function is considered as a fundamental function in engineering and strongly recommended which the reader becomes very familiar.

u(t) =0 if t<0

         1 if t>0

          ½ if t=0

clc;

clear all;

close all;

t=-12:1:12;

y=(t>=0);

subplot(2,2,1);

plot(t,y);

xlabel(‘time’);

ylabel(‘amplitude’);

title(‘unit step signal’);

%generation of unit step sequence

subplot(2,2,2);

stem(t,y);

xlabel(‘n’);

ylabel(‘amplitude’);

title(‘unit step sequence’);

Unit impulse:

Unit impulse function is most useful function in study of linear system.

S(t) =1 when t=0

         0 otherwise

clc;

clear all;

close all;

%generation of unit impulse signal

t1=-1:0.01:1

y1=(t1==0);

subplot(2,2,1);

plot(t1,y1);

xlabel(‘time’);

ylabel(‘amplitude’);

title(‘unit impulse signal’);

%generation of impulse sequence

subplot(2,2,2);

stem(t1,y1);

xlabel(‘n’);

ylabel(‘amplitude’);

title(‘unit impulse sequence’);

Rajeshwari Chiluveru

Share
Published by
Rajeshwari Chiluveru

Recent Posts

What are Template Tags in WordPress? How to Use Template Tags

In wordpress if you are developing new or custom wordpress theme or wordpress plugin then…

3 months ago

Google Search Indexing Issues Started on 31st January to February 2024

If you are experiencing indexing issues of your website then you are not alone and…

3 months ago

Create QR Code for Pages & Post using Plugin in WordPress

On your wordpress website if you want to generate qr code for pages and posts…

3 months ago

Add Google Search Console HTML File Upload on WordPress

If you are trying to verify your WordPress website with google search console with html…

4 months ago

How Do I Add Google Search Console Verification HTML Tag in WordPress?

If you are on wordpress website and wondering how to keep search console html verification…

4 months ago

Why WordPress Too Many Redirects After URL Change

If you are getting too many redirects error on your WordPress website after changing url…

4 months ago