Question

CAN YOU SEND MATLAB CODE THAT QUESTİON THESE GRAPHS( IN GIVEN QUESTION) ANSWER of THAT QUESTION

CAN YOU SEND MATLAB CODE THAT QUESTİON THESE GRAPHS( IN GIVEN QUESTION) ANSWER of THAT QUESTION
media%2Feff%2Feffe7f13-cfcb-414c-a5b8-be
0 0
Add a comment Improve this question Transcribed image text
Answer #1

The MATLAB code for convolution is, as follows, x and h variables are the variables that store signal. Increasing the amount of time divisions will make the curve smoother. The following code has a sampling time of 1 s.

(a)

x = [1,1,1,1];

h = [2,2];

m=length(x);

n=length(h);

X=[x,zeros(1,n)];

H=[h,zeros(1,m)];

for i=1:n+m-1

Y(i)=0;

for j=1:m

if(i-j+1>0)

Y(i)=Y(i)+X(j)*H(i-j+1);

else

end

end

end

plot(Y)

(b)

x = [2,2,2];

h = [2,1,0];

m=length(x);

n=length(h);

X=[x,zeros(1,n)];

H=[h,zeros(1,m)];

for i=1:n+m-1

Y(i)=0;

for j=1:m

if(i-j+1>0)

Y(i)=Y(i)+X(j)*H(i-j+1);

else

end

end

end

plot(Y)

(c)

t = 0:1:10;

x = exp(-t);

t = 0:1:2;

h = 2*exp(-2*t);

m=length(x);

n=length(h);

X=[x,zeros(1,n)];

H=[h,zeros(1,m)];

for i=1:n+m-1

Y(i)=0;

for j=1:m

if(i-j+1>0)

Y(i)=Y(i)+X(j)*H(i-j+1);

else

end

end

end

plot(Y)

Add a comment
Know the answer?
Add Answer to:
CAN YOU SEND MATLAB CODE THAT QUESTİON THESE GRAPHS( IN GIVEN QUESTION) ANSWER of THAT QUESTION
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I need a matlab code for given question. Please send matlab code sctript. a:2 b:3: c:4...

    I need a matlab code for given question. Please send matlab code sctript. a:2 b:3: c:4 d:2.1 e:3.1 Question 1) (60 p) Consider following equation: axt-bx'+ex=dx-e Find the value of x via; a) Fixed Point iteration method with an accuracy of 0.0004 and a starting value of 1. b) Newton's Method with an accuracy of 0.0004 and a starting value of 1. Write the codes and the results to your paper.

  • Assembly language.    Can u pls send me a copyable code please. If you can run...

    Assembly language.    Can u pls send me a copyable code please. If you can run it. X86. Asm.    Subject: Assembly language If you know x86 asm then only answer it Use x86 asm version send me a written code please send me with out put please send me a copyable code i promise to give you thumbs up, question: Implement a simple 4 functios calculator for 3 digits entry. The user will enter 2 digits for the first...

  • Please answer this question using matlab MATLAB Question You are given the function

    Please answer this question using matlab MATLAB Question You are given the function

  • Please send the Matlab code 2. Compute the Fourier series coefficients for x(t) using MATLAB and...

    Please send the Matlab code 2. Compute the Fourier series coefficients for x(t) using MATLAB and plot the double-sided spectra up to the 10th harmonic. (20 points) 수 x(t) -10 10 20 30

  • MATLAB QUESTION Find the answer for the given application of higher order differential equation using MATLAB....

    MATLAB QUESTION Find the answer for the given application of higher order differential equation using MATLAB. NOTE: Screenshot the MATLAB ENVIRONMENT together with the CODES and FINAL ANSWERS. PLEASE SOLVE USING MATLAB CODE! PLEASE SOLVE USING MATLAB CODE! PLEASE SOLVE USING MATLAB CODE! Assume an object weighing 2 lb stretches a spring 6 in. Find the equation of motion if the spring is released from the equilibrium position with an upward velocity of 16 ft/sec. What is the period of...

  • MATLAB CODE. answer the following question in a driver in matlab please. 3. Write a for...

    MATLAB CODE. answer the following question in a driver in matlab please. 3. Write a for loop that calculates the first eleven values of the recursive sequence ak = -1(1 - ax-1), do = 10, and stores all eleven numbers in a vector. After the loop write a command to display the vector in the command window. Note that your loop does not need to compute do since this is given, and we should be the first entry in your...

  • can you answer both #1 (a&B) and #2 please 1. Write MATLAB code to do the...

    can you answer both #1 (a&B) and #2 please 1. Write MATLAB code to do the following: (4 pts) a) Find the area of the circles where r=[7, 8, 10] using A = tr2 b) Find the distance traveled by a ball falling in the air is given by the equation x=x0+vot+ at?. Calculate the position of the ball at time t = 5s, XO = 10m, vo= 15 m/s, and a = 9.81 m/sec^2. Write MATLAB code to accomplish...

  • MATLAB QUESTION Find the answer for the given application of first-order differential equation using MATLAB. NOTE:...

    MATLAB QUESTION Find the answer for the given application of first-order differential equation using MATLAB. NOTE: Screenshot the MATLAB ENVIRONMENT together with the CODES and FINAL ANSWERS. PLEASE SOLVE USING MATLAB CODE! PLEASE SOLVE USING MATLAB CODE! PLEASE SOLVE USING MATLAB CODE! A racquetball is hit straight upward with an initial velocity of 2m/s. The mass of a racquetball is approximately 0.0427 kg. Air resistance acts on the ball with a force numerically equal to 0.50, where v represents the...

  • MATLAB question I need the code exactly as you would write it in MATLAB. thank you...

    MATLAB question I need the code exactly as you would write it in MATLAB. thank you 1. Consider a Gaussian solution of the traveling-wave form ψ(z,t)-exp(-a(z-vt)2). The parameter values are a 1, 2. (a) Explain the physical meaning of these parameters (eg. what would happen if we took a = 10 instead?) Determine the direction of propagation of this solution: Is it traweling to the left or to the right? (2pts) (b) Write a Matlab code to plot the Gaussian...

  • Using Matlab can you please write the code for question 5. Display the zl and 22...

    Using Matlab can you please write the code for question 5. Display the zl and 22 results using the table function. 5. Create an anonymous function (name it perm) to determine how many arrangements of a subgroup n are possible from a total group size of m when the order is important (permutations). Test the function with m= 10 and n 3 . Use an fprintf statement to display the answer

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT