Matlab

Aperiodic signals

Aperiodic signals:

If the signal does not repeat at regular intervals of time is called aperiodic signal.

Square wave:

Let us consider an example for square wave in matlab.

clc;

clear all;

close all;

t=0:0.002:0.1;

y=square(2*pi*50*t);

figure;

subplot(1,2,1);

plot(t,y);

axis([0 0.1 -2 2]);

xlabel(‘time’);

ylabel(‘amplitude’);

title(‘square wave signal’);

%generation of square wave sequence

subplot(1,2,2);

stem(t,y);

axis([0 0.1 -2 2]);

xlabel(‘n’);

ylabel(‘amplitude’);

title(‘square wave sequence’);

Sawtooth wave:

Let us consider an example of sawtooth wave in matlab.

clc;

clear all;

close all;

%generation of sawtooth signal

t=0:0.002:0.1;

y=sawtooth(2*pi*50*t);

subplot(1,2,1);

plot(t,y);

axis([0 0.1 -2 2]);

xlabel(‘time’);

ylabel(‘amplitude’);

title(‘sawtooth wave signal’);

%generation of sawtooth sequence

subplot(1,2,2);

stem(t,y);

axis([0 0.1 -2 2]);

xlabel(‘n’);

ylabel(‘amplitude’);

title(‘sawtooth wave sequence’);

Triangular wave:

Let us consider an example of triangular wave in matlab.

clc;

clear all;

close all;

%generation of triangular wave signal

t=0:0.002:0.1;

y=sawtooth(2*pi*50*t,.5);

figure;

subplot(2,2,1);

plot(t,y);

axis([0 0.1 -2 2]);

xlabel(‘time’);

ylabel(‘amplitude’);

title(‘ triangular wave signal’);

%generation of triangular wave sequence

subplot(2,2,2);

stem(t,y);

axis([0 0.1 -2 2]);

xlabel(‘n’);

ylabel(‘amplitude’);

title(‘triangular wave sequence’);

Rajeshwari Chiluveru

Share
Published by
Rajeshwari Chiluveru

Recent Posts

Google Spam Update 2025: Impact, Recovery Guide & SpamBrain Explained

Google released a spam update on 26th of August 2025 and this is affecting a…

2 months ago

Google Experiments with Black Sitelink Colors instead of Blue

Google keeps on testing google search display all the time and this time we are…

1 year ago

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…

2 years 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…

2 years 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…

2 years 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…

2 years ago