Question

Design the **"high pass filter"** for the signal,
x(t) = 10 sin (10 t) + 1 sin (1000 t) by MATLAB

I have to submit MATLAB code which is written on A4 size paper.

Please show me MATLAB code.

* I can't recognize cursive script....

Answer #1

MATLAB code is given below.

**clc;close all;clear all;
fs = 1000; % sampling frequency is 1000Hz**

**ts = 1/fs; % Sample time**

**t = 0:ts:1;**

**x = 10*sin(10*t) + 1*sin(1000*t);**

**% Lets filter this ginal for high frequency compenent at
100rad /sec
% i have chosen a sampling frequency of 1000 samples/sec and
cutoff
% frequency of 100 rad/sec This will allow 1000 rad/sec and
% eliminate 10 rad/sec**

**
fc = 100/(2*pi); % Cutoff frequency of Highpass Filter**

**order = 5;**

**[b,a] = butter(order,fc/(fs/2),'high'); % Butter worth
filter of order 5**

**y = filter(b,a,x) ; % Filter the signal**

**figure;plot(t,x,t,y);grid;title('Input and filtered
signals');
% Plot the input and filtered signals**

**legend('x(t)','Filtered signal');**

**xlabel('Time');ylabel('Amplitude');**

Question : Design the low and high pass filter for the signal,
x(t) = 10 sin (10 t) + 1 sin (1000 t) by MATLAB
Is below answer right?
at ?High pass , 5row
shouldn't this change from sin(100*t) ?
sin(1000*t)
x = 10*sin(10*t) + 1*sin(100*t); ? x = 10*sin(10*t) +
1*sin(1000*t); ???
.....................................................................................................................................................
?Low pass
clc;
rng default
Fs=2000;
t=linspace(0,1,Fs);
x=10*sin(10*t)+sin(1000*t)%given signal
n=0.5*randn(size(t));%noise
x1=x+n;
fc=150;
Wn=(2/Fs)*fc;
b=fir1(20,Wn,'low',kaiser(21,3));
%fvtool(b,1,’Fs’,Fs)
y=filter(b,1,x1);
plot(t,x1,t,y)
xlim([0 0.1])
xlabel('Time (s) ')
ylabel('Amplitude')
legend('Original Signal','Filtered Data')...

SHOW IN MATLAB PLEASE
Generate a signal x(t) = sin(t) + sin(5t) + sin(25t).
Design a low-pass filter to extract sin(t).

Generate a signal x(t) = sin(t) + sin(5t) + sin(25t).
a. Design a low-pass ?lter to extract sin(t). You can try
di?erent types of ?lters and compare their performances.
b. Design a band-pass ?lter to extract sin(5t). You can try
di?erent types of ?lters and compare their performances.
c. Design a high-pass ?lter to extract sin(25t). You can try
di?erent types of ?lters and compare their performances

Design and draw a simple electrical circuit (a combination of a
low-pass and a high-pass filter circuits) that will act as a
bandpass filter for frequencies between 0.1 and 100 rad/s. Generate
the magnitude Bode plot on matlab!!!
Please do the matlab! thank you!

Analog Signal Processing & Filter Design
Please answser problem 1 below for parts a, b, c, and d. Please
show all work written out, and matlab code for checking the
problems with matlab.
1. Find the roots of the following polynomials and
write them in factored form:
a. s2 + 4s + 4 (Use the quadratic equation and check
with Matlab)
b. s2 + 2s + 10 (Use the quadratic equation and check
with Matlab)
c. s3...

PLEASE ANSWER QUESTION #2
Design an FIR band-pass filter with cutoff frequencies of π/ 4
and π/ 6 . The filter’s impulse response should have 81 samples
(i.e. N = 81). Use a Blackman filter window.
(a) Plot the filter’s impulse response
(b) Plot the magnitude of the filter’s frequency response, in
dB. (i.e. 20 log(|H(e jω)|))
(c) Print out the MATLAB code used in the filter design
2. Use the filter designed in #1 to filter a random input...

Analog Signal Processing &
Filter Design
Instructions:
Please show how you arrived at the result.
Use 3 significant figures and scientific or engineering
notation.
Use standard rounding, >0.5 in the next significant
figure, round up & <0.5 round down.
Provide the numerical solution to problems (unless the
problem asks for a formula or equation). e.g. don't write
Ö79, write 8.89, don't write 127/9, write 14.1
For the problem below:
Please Use Matlab for plots. Label the Matlab plots,
then capture...

Assignments
Generate and plot the signal
x1(t) = 1+ sin
(4pt), for t
ranging from -1 to 1 in 0.001 increments. Use proper axes labels
with title.
Generate and plot the function
x2(t) = sin
(30pt), for t
ranging from -1 to 1 in 0.001 increments. Use proper axes labels
with title.
Generate and plot the combination function
x3(t) =
x1(t)*x2(t) as above. Use
proper axes labels with title.
Generate and plot the sum of
two cosine waves
v1(t) =...

Please show steps. Thank you
Design an identical cascade unit gain active RC low pass filter
of order 4. The cut frequency for the filter is 800Hz. Use 1.0uF
capacitors.
a) Draw the circuit and calculate the values of R.
b) Express the transfer function of the filter H(s).
c) Plot the Bode diagram of the frequency response of the
filter.
d) Estimate the output voltage if the filter is excited with an
input voltage vi(t) = sin(15000t)
e) What...

Given signal x(t) = sinc(t):
1. Find out the Fourier transform of x(t), find X(f), sketch
them.
2. Find out the Nyquist sampling frequency of x(t).
3. Given sampling rate fs, write down the expression of the
Fourier transform of xs(t), Xs(f) in terms of X(f).
4. Let sampling frequency fs = 1Hz.
Sketch the sampled signal xs(t) = x(kTs) and the Fourier
transform of xs(t), Xs(f).
5. Let sampling frequency fs = 2Hz. Repeat 4.
6. Let sampling frequency...

ADVERTISEMENT

Get Answers For Free

Most questions answered within 1 hours.

ADVERTISEMENT

asked 1 minute ago

asked 11 minutes ago

asked 25 minutes ago

asked 42 minutes ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 2 hours ago

asked 2 hours ago

asked 2 hours ago