Ask a question from expert

Ask now

Digital Signal Processing (ENGT5111)

4 Pages251 Words148 Views
   

Digital Signal Processing (ENGT5111)

   

Added on  2021-12-13

Digital Signal Processing (ENGT5111)

   

Digital Signal Processing (ENGT5111)

   Added on 2021-12-13

BookmarkShareRelated Documents
Digital signal processing
%PART I
%problem 1
clear all
close all
clc
sfs = 98.5; %
Sampling frequency
fcuts = [0.5 1.0 45 46]; %
Frequency Vector
mags = [0 1 0]; %
Magnitude (Defines Passbands & Stopbands)
devs = [0.05 0.01 0.05]; %
Allowable Deviations
[n,Wn,beta,ftype] = kaiserord(fcuts,mags,devs,sfs);
n = n + rem(n,2);
hh = fir1(n,Wn,ftype,kaiser(n+1,beta),'scale');
figure(1)
freqz(hh, 1, 2^14, sfs)
%problem 2
[y,fs]=audioread('flyin_high.wav');
sound(y,fs);
figure(2)
plot(y)
grid on
title('Flyin_high Sound Signal')
xlabel('Samples')
ylabel('Continuous time sound signal')
x=y(10000:20000);
figure(3)
plot(x)
grid on
title('Flyin_high Sound Signal')
xlabel('Samples')
ylabel('Continuous time sound signal')
%Sampling the speech spectrogram
figure(4)
subplot(2,1,1)
specgram(y)
subplot(2,1,2)
specgram(x,256,fs) %outputs the line spectra
1
Digital Signal Processing (ENGT5111)_1
2
Digital Signal Processing (ENGT5111)_2

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Signal Down-sampling and Up-sampling in MATLAB
|30
|3489
|56

Synthesis of Sinusoidal Signals-MUS Signal Processing Lab 04
|12
|2092
|491

Simulation of a Harmonic Equation with Built-in Tests
|9
|1284
|84

Signals and Systems I ECE 351 Computing Assignment #2
|7
|928
|251

Transient analysis stability and surge protection Solution 2022
|13
|1513
|19

Correcting Heart Rate Errors
|4
|1527
|378