0% found this document useful (0 votes)
56 views5 pages

GSM Based Temperature Monitering and Control

This document provides instructions for a lab experiment to generate and study discrete time signals using MATLAB. The objectives are to generate unit impulse, unit step, and unit ramp signals. The equipment needed is MATLAB with the Signal Processing Toolbox installed on a computer with at least 1GB of RAM. The procedure involves opening MATLAB, writing a program to generate the signals, running the program, and observing the output graphs of the signals. Sample MATLAB code is provided to generate the unit impulse as a vector of ones and zeros, the unit step as a vector of all ones, and the unit ramp as a time vector.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views5 pages

GSM Based Temperature Monitering and Control

This document provides instructions for a lab experiment to generate and study discrete time signals using MATLAB. The objectives are to generate unit impulse, unit step, and unit ramp signals. The equipment needed is MATLAB with the Signal Processing Toolbox installed on a computer with at least 1GB of RAM. The procedure involves opening MATLAB, writing a program to generate the signals, running the program, and observing the output graphs of the signals. Sample MATLAB code is provided to generate the unit impulse as a vector of ones and zeros, the unit step as a vector of all ones, and the unit ramp as a time vector.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

P.E.S.

COLLEGE OF ENGINEERING
NAGSENVANA, NEAR PANCHAKKI AURANGABAD

MANUAL
CLASS:TE (EC) EXPT 01 NO: AIM OF EXPT:

DEPARTMENT:ELECTRONICS ENGINEERING LABORATORY:DIGITAL SIGNAL PROCESSING SUBJECT:DSP To generate and study Discrete Time Signals for ex. unit step, ramp, impulse using MATLAB.

LIST OF EQIPMENTS/ APPARATUS : 1. MATLAB 2. 3. signal processing toolbox System with P4 and 1GB RAM etc.

DISCRIPTION,CIRCUIT DIA, PROCEDURE Common Sequences: Unit Impulse, Unit Step, and Unit Ramp Since MATLAB is a programming language, an endless variety of different signals is possible. Here are some statements that generate several commonly used sequences, including the unit impulse, unit step, and unit ramp functions. Signal Processing Toolbox Waveform Generation: Time Vectors and Sinusoids .A variety of toolbox functions generate waveforms. Most require you to begin with a vector representing a time base. Consider generating data with a 1000 Hz sample frequency, for example. An appropriate time vector is t = (0:0.001:1)'; where the MATLAB colon operator creates a 1001-element row vector that represents time running from zero to one second in steps of one millisecond. The transpose operator (') changes the row vector into a column; the semicolon (;) tells MATLAB to compute but not display the result. Given t you can create a sample signal y consisting of two sinusoids, one at 50 Hz and one at 120 Hz with twice the amplitude. y = sin(2*pi*50*t) + 2*sin(2*pi*120*t); The new variable y, formed from vector t, is also 1001 elements long. You can add normally distributed white noise to the signal and graph the first fifty points using r and n('state',0); y n = y + 0.5*r and n(size(t)); plot(t(1:50),y n(1:50))

LAB INCHARGE

HEAD OF DEPARTMENT :

Common Sequences: Unit Impulse, Unit Step, and Unit Ramp .Since MATLAB is a programming language, an endless variety of different signals is possible. Here are some statements that generate several commonly used sequences, including the unit impulse, unit step, and unit ramp functions: t = (0:0.001:1)'; y = [1; zeros(99,1)]; % impulse y = ones(100,1); % step (filter assumes 0 initial cond.) y = t; % ramp y = t.^2; y = square(4*t); All of these sequences are column vectors. The last three inherit their shapes from t. Representing Signals Common Sequences: Unit Impulse, Unit Step, and Unit PROCEDURE: 1. Double click on MATLAB icon on the desktop. 2. Click on File > New > M-File. 3. Type the program in the M-File Editor. 4. Save the file with a relavant name. 5. Run the program by clicking on the Run Icon in the toolbar and observe the output.

. SOFTWARE PROGRAM
LAB INCHARGE HEAD OF DEPARTMENT :

1)% generation of discrete time signals h = [1; zeros(99,1)]; xlabel('n'); ylabel('h(n)'); title('generation of impulse discrete time signals'); stem(h) 2) % generation of discrete time signals t = (0:0.001:1); r = t; xlabel('n'); ylabel('r(n)'); title('generation of ramp discrete time signals'); stem(r) 3) % generation of discrete time signals u = ones(100,1); xlabel('n'); ylabel('u(n)'); title('generation of unit step discrete time signals'); stem(u)

OBSERVATION TABLE:

CALCULATIONS RESULT, GRAPH:

CONCLUTION: By using MATLAB DTS are generated and studied.

LAB INCHARGE

HEAD OF DEPARTMENT :

2
EXPERIMENT

LAB INCHARGE

HEAD OF DEPARTMENT :

GRADE : TEACHER

SIGNATURE OF THE SUBJECT

*WILL BE PREPARED FOR EACH EXPERIMENT SUBJECTWISE. *THIS WILL BE A GUIDELINE TO THE STUDENT TO CONDUCT PRACTICAL. HE WILL HAVE TO DRAW CIRCUIT ( IF REQUIRED), WRIT PROCEDURE, TAKE THE OBSERVATIONS, DO CALCULATIONS AND OBTAIN RESULTS,GRAPHS ETC. ON THE JAURNAL PAPERS IN THIS FORMAT.

LAB INCHARGE

HEAD OF DEPARTMENT :

You might also like