Professional Documents
Culture Documents
Experiment No. (1) Generation OF Signals: Object
Experiment No. (1) Generation OF Signals: Object
Experiment No.1
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.
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.
Generation OF Signals
Experiment No.1
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])
Experiment No.1
Generation OF Signals
Expected Graph: