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

Rajeshwari (M.Tech) is the Technical Education Director at WebVidyalayam. She focuses on translating high-level systems engineering into accessible technology courses.

Share
Published by
Rajeshwari Chiluveru

Recent Posts

Fix Hisense TV Storage Space Running Out: 2026 OS Logic Hub

Hisense Google TV Storage Space Running Out: Why it Happens and How to Fix It…

16 hours ago

Samsung Smart TV HDMI ARC/eARC Not Working? Easy Fixes That Actually Work (2026 Guide)

Introduction: "Setting up a soundbar with your Samsung TV should be simple, but the HDMI…

17 hours ago

Samsung TV Red Light Blinking? 4 Fixes (2026 Power Logic Hub)

User Problem Scenario: The Red Light "Panic" You press the power button on your Samsung…

3 weeks ago

Samsung TV Not Connecting to WiFi: 2026 Easy Fix Guide

Introduction: I Know the Feeling "We’ve all been there. You sit down to watch your…

3 weeks ago

Samsung TV Restarting During Diagnosis? Fix the Reboot Loop Fast

User Problem Scenario: The "Diagnosis Loop" Paradox Imagine you notice your apps are slow. You…

3 weeks ago

Samsung TV Optimize Now Not Working? (2026 Fix: Greyed Out, Stuck or Not Responding)

🎓 Technical Module: Memory Maintenance Logic Module: WV-OS-307 Verified 2026 👨‍🏫 Instructor: Vangari Divya (M.Tech)…

3 weeks ago