Question

Is it acceptable to use MATLAB's convolution function for this problem or are we supposed to...

Is it acceptable to use MATLAB's convolution function for this problem or are we supposed to implement convolution ourselves?

Homework Answers

Answer #1

We can use in-built function for convolution such as conv(x,h).

Or we can implement ourselves by writing the code.

MATLAB CODE:

x = input('Enter x: ');
h = input('Enter h: ') ;
Ni = length(x);
Nh = length(h);
y = zeros(1,Ni+Nh);
t = zeros(1,Nh);
for i = 1:Ni+Nh-1
if i<=Ni
t(1)= x(i);
for j = 1:Nh
y(i) = y(i) + h(j)*t(j);
end

for k = Nh:-1:2
t(k) = t(k-1);
end

else
t(1)= 0;
for j = 1:Nh
y(i) = y(i) + (h(j)*t(j));
end

for k = Nh:-1:2
t(k) = t(k-1);
end

end

end

stem(y);

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Show that if f is an arithmetic function that is invertible for the Dirichlet convolution and...
Show that if f is an arithmetic function that is invertible for the Dirichlet convolution and is of polynomial growth then its inverse f^(−1) is also of polynomial growth
Convolution of distribution integral range 1.Example: Exponential distribution convolution fx+y(z)=intergral from 0 to z fx(x)fy(z-x))dx how...
Convolution of distribution integral range 1.Example: Exponential distribution convolution fx+y(z)=intergral from 0 to z fx(x)fy(z-x))dx how we get the range 0 to z??? Better to use mathematics and a graph to explain. Also, when it ask find the density function X+Y, should I just add two exponential density function together?
9.       Determine the solution to the initial value problem using the Laplace transform and the convolution integral....
9.       Determine the solution to the initial value problem using the Laplace transform and the convolution integral.                                                  y'’ + y = cos(2t);          y(0) = 1, y’(0) = 0. Evaluate the convolution integral and simplify your solution
Find the inverse Laplace transform of the function by using the convolution theorem. F(s) = 1...
Find the inverse Laplace transform of the function by using the convolution theorem. F(s) = 1 (s + 4)2(s2 + 4) ℒ−1{F(s)}(t) = t 0       dτ
use convolution properties to evaluate L{2/s^2(s-5)}
use convolution properties to evaluate L{2/s^2(s-5)}
Use Laplace transformation to find the convolution product: t^2 * (420t^4 + 60t)
Use Laplace transformation to find the convolution product: t^2 * (420t^4 + 60t)
Use the Convolution Theorem to compute the inverse transform of the following: a. F(s)= (2 /...
Use the Convolution Theorem to compute the inverse transform of the following: a. F(s)= (2 / ( s^(2)(s2 +1) )). e. F(s)= e^(−3s)/(s^2)
Logic Circuit Problem #3 Given the following logic function: F(a,b,c,d) = ? m(0,3,7,9,11,13,15)+?d(4,6,8) use a Karnaugh...
Logic Circuit Problem #3 Given the following logic function: F(a,b,c,d) = ? m(0,3,7,9,11,13,15)+?d(4,6,8) use a Karnaugh Map to, a) Find a minimal SOP expression Answer: F(a,b,c,d) = b) Find a minimal POS expression Answer: F(a,b,c,d) = Problem #4 Implement the function F(a,b,c,d) given in problem #3 using two 3-to-8 decoders, both active low enabled and active low output. F(a,b,c,d) = ? m(0,3,7,9,11,13,15)+?d(4,6,8) Answer: Problem #5 Implement the function in the previous problem: F(a,b,c,d) = ? m(0,3,7,9,11,13,15)+?d(4,6,8), using a single 4...
Given y[n]=x[n]cos[(π/4)n] , Find the DTFT of y[n]. The hint we were given is to use...
Given y[n]=x[n]cos[(π/4)n] , Find the DTFT of y[n]. The hint we were given is to use the convolution in frequency domain using the dirac delta function property of the cosine. i will like if you help. Thanks
Use the convolution theorem to find the inverse Laplace transform of H(s) =  1/(s^2+a^2)^2
Use the convolution theorem to find the inverse Laplace transform of H(s) =  1/(s^2+a^2)^2
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT