0% found this document useful (0 votes)
51 views4 pages

Experiment No. (1) Generation OF Signals: Object

1) The document describes generating continuous and discrete time signals using MATLAB. 2) It explains how to generate common periodic waveforms like sawtooth and square waves using MATLAB functions. 3) The procedure section shows code to generate a continuous sinusoidal signal and plot the results.

Uploaded by

Mohanad Adnan
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)
51 views4 pages

Experiment No. (1) Generation OF Signals: Object

1) The document describes generating continuous and discrete time signals using MATLAB. 2) It explains how to generate common periodic waveforms like sawtooth and square waves using MATLAB functions. 3) The procedure section shows code to generate a continuous sinusoidal signal and plot the results.

Uploaded by

Mohanad Adnan
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
You are on page 1/ 4

Generation OF Signals

Experiment No.1

Experiment No. (1)


Generation OF Signals
A. CONTINUOUS TIME SIGNAL

Object :
To generate a continuous sinusoidal time signals Using MATLAB.
Requirements:
Matlab 2013 SOFTWARE

Theory :
Common Periodic Waveforms
The toolbox provides functions for generating widely used periodic waveforms: sawtooth
generates a sawtooth wave with peaks at 1 and a period of 2. An optional width parameter specifies
a fractional multiple of 2 at which the signal's maximum occurs. square generates a square wave with
a period of 2. An optional parameter specifies duty cycle, the percent of the period for which the
signal is positive.
Common Aperiodic Waveforms
The toolbox also provides functions for generating several widely used aperiodic waveforms:
gauspuls generates a Gaussian-modulated sinusoidal pulse with a specified time, center frequency, and
fractional bandwidth. Optional parameters return in-phase and Quadrature pulses, the RF signal
envelope, and the cutoff time for the trailing pulse envelope. chirp generates a linear, log, or quadratic
swept-frequency cosine signal. An optional parameter specifies alternative sweep methods. An
optional parameter phi allows initial phase to be specified in degrees.

Eng. Mohanad Adnan Al-faluji

Digital Signal Processing Lab

Generation OF Signals

Experiment No.1

Procedure :
clc;
clear all;
t = 0:0.0005:1;
a = 10;
f = 13;
xa = a*sin(2*pi*f*t);
subplot(2,1,1)
plot(t,xa);grid
xlabel('Time, msec');
ylabel('Amplitude');
title('Continuous-time signal x_{a}(t)');
axis([0 1 -10.2 10.2])

Expected Graph :

Result
Thus the Continuous Time Signal was generated using MATLAB.

Eng. Mohanad Adnan Al-faluji

Digital Signal Processing Lab

Generation OF Signals

Experiment No.1

B. DISCRETE TIME SIGNAL

Object :
To generate a Discrete time Exponential signals Using MATLAB.

Procedure :
1. OPEN MATLAB
2. File >> New >> Script.
3. Type the program in untitled window
4. File >> Save >> type filename.m in matlab workspace path
5. Debug >> Run. Wave will display at Figure dialog box.

clc;
clear all;
a = 10;
f = 13;
T = 0.01;
n = 0:T:1;
xs = a*sin(2*pi*f*n);
k = 0:length(n)-1;
stem(k,xs);
grid
xlabel('Time index n');
ylabel('Amplitude');
title('Discrete-time signal x[n]');
axis([0 (length(n)-1) -10.2 10.2])

Eng. Mohanad Adnan Al-faluji

Digital Signal Processing Lab

Experiment No.1

Generation OF Signals

Expected Graph:

Eng. Mohanad Adnan Al-faluji

Digital Signal Processing Lab

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy