Lab 2 - lab 2 solved dsp PDF

Title Lab 2 - lab 2 solved dsp
Author Zaid Masood Studio
Course Digital Signal Processing
Institution COSMATS University Sahiwal
Pages 2
File Size 207.6 KB
File Type PDF
Total Downloads 72
Total Views 127

Summary

lab 2 solved dsp...


Description

Digitel signal processingDepartment of Electrical & Computer Engineering

Experiment No.2 GENERATION OF SINE AND SQUARE WAVE USING TMS320C6713 DSK You are required to write a MATLAB code to generate the graph shown in Figure 2-5 and then generate the same graph using TMS320C6713 DSK. You Must Submit MATLAB code, MATLAB graph, C-code and output graph of DSK. Matlab Code : clc close all Ac=1; fc=0.05;%carrier frequency Am=.25; fm=0.002;% frequency of message signal ka=1; t=[0:0.1:800]; ct=Ac*cos(2*pi*fc*t) mt=Am*cos(2*pi*fm*t); AM=ct.*(1+ka*mt); plot(AM,'g') hold on; envelop=abs(hilbert(AM)); plot(envelop,'b') hold off

Output :

Registration No: FA17-BSEE-024

Digitel signal processingDepartment of Electrical & Computer Engineering

2- C language code : #include void printSinWave(int wave_height, int wave_length) { // inner space and outer space. int is = 1, os = 2; // for loop for height of wave for (int i = 1; i...


Similar Free PDFs