0% found this document useful (0 votes)
7 views6 pages

MATLAB Square Wave Experiment

The document details an experiment conducted by Aditya Arya in a System Modeling and Design Laboratory, focusing on generating periodic signals using MATLAB. The experiment involved plotting sine and square waves, discussing their characteristics, and addressing challenges faced while using MATLAB for the first time. The conclusion emphasizes the successful generation of these waveforms and the practical experience gained in using MATLAB's programming environment.

Uploaded by

aditya arya
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views6 pages

MATLAB Square Wave Experiment

The document details an experiment conducted by Aditya Arya in a System Modeling and Design Laboratory, focusing on generating periodic signals using MATLAB. The experiment involved plotting sine and square waves, discussing their characteristics, and addressing challenges faced while using MATLAB for the first time. The conclusion emphasizes the successful generation of these waveforms and the practical experience gained in using MATLAB's programming environment.

Uploaded by

aditya arya
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

EC2705:

System Modeling
And Design Laboratory

Name: Aditya Arya


Roll No: 122EC0579

Aditya Arya
122EC0579
[Link] Objective Experiment Submission Remarks
Date Date

Aditya Arya
122EC0579
EXPERIMENT-1
OBJECTIVE: To familiarize with MATLAB and its tools and to plot
periodic signals.

a) Plot a sine wave using MATLAB with amplitude =3 and frequency =5.
Take time axis as per your wish.

b) Plot a square wave using MATLAB. Total 10 pulses within duration of


20 seconds. Take pulse widths as per your wish.

THEORY:

Periodic signals are signals that repeat their waveform over a fixed time
interval, known as the period. The frequency of a periodic signal is
defined as the reciprocal of the period.

Sinusoidal signals are a very common type of periodic signal and have a
waveform that follows a sine function. They are characterized by their
amplitude, frequency, and phase. Amplitude refers to the maximum
distance a wave oscillates from its equilibrium position. Frequency is the
inverse of the period and represents the number of cycles per unit time.
Sinusoidal signals are widely used in electronics, signal processing,
communications, and control systems. We use the sin() function to
generate the sin signal.

Square waves are another common type of periodic waveform,


characterized by an instantaneous transition between two voltage levels.
Ideal square waves switch between a high and low state with no
transition time. We use the square() function to generate the square
wave signal.

We can generate a graph using the plot() function which is available in


MATLAB.

Aditya Arya
122EC0579
MATLAB CODE:

A).Sin Wave

b). Square Wave

Aditya Arya
122EC0579
MATLAB GRAPHICAL RESULTS:

a). Sin Wave

b). Square Wave

Aditya Arya
122EC0579
Discussion on Result:

Understanding periodic signals and their characteristics has a very


important practical significance and application. The plotted sine wave
appears as a smooth, continuous waveform oscillating between peak
positive and negative amplitudes. The waveform compresses in time
when the frequency is increased, and stretches out when frequency is
decreased. The plotted square wave shows abrupt vertical transitions
between high and low levels. The duty cycle of the square signal was
50%.The difficulties faced was as I was using MATLAB for the first time
I did not know all the functions and the syntax of MATLAB. By
observing these waves in a graphical manner, I gained a deeper
understanding of their characteristics and the effects of parameter
changes.

Conclusion:

In conclusion, sine waves and square waves of certain frequencies and


amplitudes were successfully generated using MATLAB programming
techniques. The sine waves were produced using the inbuilt sin()
function, with the frequency modified by changing the argument input.
The square waves were produced using the inbuilt square() function.

Overall, this experiment provided practical experience in utilizing


MATLAB’s numerical programming environment to synthesize basic
periodic waveforms.

Aditya Arya
122EC0579

You might also like