Question

Problem 3 you can use Matlab and also i give u the Problem 1 code its on Matlab

Using the same initial code fragment as in Problem 1, add code that calculates and plays y (n)=h(n)?x (n) where h(n) is the impulse response of an IIR bandpass filter with band edge frequencies 750 Hz and 850 Hz and based on a 4th order Butterworth prototype. Name your program p3.sce

this is the Problem 1 code and the solutin

clear; clc;

Fs = 8000;

Nbits = 16;

tMax = 10;

N = Fs*tMax+1;

f = linspace(0.0,0.2,N);

x = zeros(size(f));

plot(f,x)

phi = 0;

for n=0:N-1 x(n+1) = 0.8*sin(phi);

phi = phi+2*pi*f(n+1);

end

sound(x,Fs,Nbits);

pause % this will pause the programm after sounding the
first.

% sleep(10000);

%% Adding new codes

% creating the low pass butterwidth filter

Fn = 800; % cut off frequency

n = 4; % order of the filter

[b,a] = butter(n,Fn/(Fs/2))

% b = zeros, a = poles of the TF

TF = tf(b,a);

imp_res = impulse(TF);

y_n = conv(imp_res,x);

y_n = y_n(1:length(f));

% Ploting the Y(n) with frequency

plot(f,y_n);

grid on

xlabel('frequency')

ylabel('y(n)')

title('frequency responce')

% Playing Y(n)

sound(y_n,Fs,Nbits);

% the output from the input and filter coefficients

y = filter(b,a,x)

% end program

Answer #1

Problem 1....... you can use Matlab
The following Scilab code generates a 10-second “chirp” with
discrete frequencies ranging from 0 to 0.2 with a sampling
frequency of 8 kHz.
clear;
Fs = 8000;
Nbits = 16;
tMax = 10;
N = Fs*tMax+1;
f = linspace(0.0,0.2,N);
x = zeros(f);
phi = 0;
for n=0:N-1 x(n+1) = 0.8*sin(phi);
phi = phi+2*%pi*f(n+1);
end sound(x,Fs,Nbits);
sleep(10000); //allows full sound to play
Add code that calculates and plays y (n)=h(n)?x (n) where h(n)
is the...

Problem 1 ...... you can use Matlan i got one so all
what i need is 2, 3 and 4 one of them or all of them ..
thanks
The following Scilab code generates a 10-second “chirp” with
discrete frequencies ranging from 0 to 0.2 with a sampling
frequency of 8 kHz.
clear; Fs = 8000;
Nbits = 16;
tMax = 10;
N = Fs*tMax+1;
f = linspace(0.0,0.2,N);
x = zeros(f);
phi = 0;
for n=0:N-1 x(n+1) = 0.8*sin(phi);
phi...

MATLAB FIR filter design.
The audio file, covering the frequency range of roughly 0 to
3000 Hz, is very badly corrupted with high?level noise. Your
problem is to design a digital filter that will sufficiently
attenuate the noise so that the audio speech is intelligible.
(sorry but chegg doesn't allow me to attach the wav file)
Here is the design template:
clear, clc % clear all variables
%% Read in the noisy audio signal from the file 'CapnJ.wav' using audioread...

1. Write a MATLAB function to determine the discrete-time
Fourier Transform (H(?)) of the following sequence. Plot its
magnitude and phase. You can use the dtft command and use the abs,
angle and plot commands to plot the results.
x(n) = {4, 3, 2, 1, 2, 3, 4}.
2. Analytically determine H(z) and plot its magnitude and phase
for the following system using freqz.
y(n) = 2x(n) + x(n ? 1) ? 0.25y(n ? 1) + 0.25y(n ? 2).
3....

Problem 1
Consider the discrete-time LTI system characterized by the
following difference equation with input and initial conditions
specified:
y[n] - 2 y[n-1] – 3 y[n-2] =
x[n] , with y[0] = -1 and y[1] = 0,
x[n] = (-1/2)n u[n-2].
? Write a MATLAB program to simulate this difference
equation.
You may try the commands ‘filter’ or ‘filtic’ or
create a loop to compute the values recursively.
? Printout and plot the values of the input
signal, x[n] and...

In this problem you will use the cursor tracker code from the
previous homework assignment to measure frequency responses to
various sinusoidal inputs and then generate a Bode plot. Use the
Matlab file track cursor.m provided on Blackboard for a
proportional controller with K = 0.1. After the tracker
equilibrates, generate a sinusoidal input by moving the cursor back
and forth and determine the gain and phase. The gain is the ratio
of the amplitude of the output sinusoid over...

Please explain how so that I can get it
Both problems please and problem 1 only for part (e). Problem2
only part(c).
P1)The expression x = 7.70
cos(2.50πt + π/2) describes the position
of an object as a function of time, with x in centimeters
and t in seconds. What are the following?
(a) frequency
1.25Hz
(b) period
0.8 s
(c) amplitude
7.70 cm
(d) initial phase of the object's motion
1.57 rad
(e) position of the particle at t...

I. Solve the following problem:
For the following data:
1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 5, 6 n = 12
b) Calculate
1) the average or average
2) quartile-1
3) quartile-2 or medium
4) quartile-3
5) Draw box diagram (Box & Wisker)
II. PROBABILITY
1. Answer the questions using the following
contingency table, which collects the results of a study to 400
customers of a store where you want to analyze the payment
method.
_______B__________BC_____
A...

ADVERTISEMENT

Get Answers For Free

Most questions answered within 1 hours.

ADVERTISEMENT

asked 6 minutes ago

asked 11 minutes ago

asked 18 minutes ago

asked 19 minutes ago

asked 19 minutes ago

asked 19 minutes ago

asked 20 minutes ago

asked 32 minutes ago

asked 37 minutes ago

asked 41 minutes ago

asked 44 minutes ago

asked 50 minutes ago