P.E.S.College of Engineering: Manual
P.E.S.College of Engineering: Manual
COLLEGE OF ENGINEERING
NAGSENVANA, NEAR PANCHAKKI AURANGABAD
MANUAL
CLASS:TE (EC) EXPT 02 NO: AIM OF EXPT:
DEPARTMENT:ELECTRONICS ENGINEERING LABORATORY:DIGITAL SIGNAL PROCESSING SUBJECT:DSP To Study the Sampling Theorem using MATLAB
LIST OF EQIPMENTS/ APPARATUS : 1. MATLAB 2. 3. signal processing toolbox System with P4 and 1GB RAM etc.
LAB INCHARGE
HEAD OF DEPARTMENT :
It should be noted that the information in between two consecutive samples is lost forever. But still the entire signal can be reconstructed from the samples as long as Sampling theorem is satisfied. Sampling and quantization Sampling can be viewed theoretically as multiplying the original signal with a train of pulses with unit amplitude. This leaves the original signal with information at descrete points with magnitude of signal present in the original signal at that position. This is illustrated in the figure below.
After processing the samples has to be converted back to analog voltage. This is done by using a device known as DAC (Digital to Analog Converter). DAC does exactly opposite to what ADC has done. The DAC takes digital data as input and produces corresponding analog voltage. DACs are less expensive compared to ADCs. Taking all these in account, we can now come to the idea of physical realization of a Digital Signal Processing system. As we know, in a DSP system, the signal has to be first converted in to digital format, process it and then convert back to analog format. All theses things can be achieved by using a system shown below.
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.
LAB INCHARGE HEAD OF DEPARTMENT :
. SOFTWARE PROGRAM: (AS PER THE REQUIREMENT OF THE EXPERIMENT & IT SHOULD BE COMPUTER PRINT) 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)
RESULT, GRAPH:
LAB INCHARGE
HEAD OF DEPARTMENT :
2
EXPERIMENT
LAB INCHARGE
HEAD OF DEPARTMENT :
GRADE : TEACHER
*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 :