Please help me in this question using MATLAB and Calculations please by hand
NOTE : The solution to the problem is very straight and has no calculation parts. It only has MATLAB coding and result display parts.
(i) P = 25
MATLAB CODE:
clear
clear all
y(1) = 0.2; %% You can take any initial value of y
P = 25;
x = P; %% Since, starting time of our iteration is n = 0
for k=2:50 %% when n = 0, k = 2. This is to ensure integral array
number
y(k) = 0.5*y(k-1) + 0.5*x/y(k-1);
end
y %% To display the values of y
RESULT:
y =
Columns 1 through 14
0.2000 62.6000 31.4997 16.1467 8.8475 5.8366 5.0600 5.0004 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000
Columns 15 through 25
5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000
From the above results, we can see that iterations taken to converge to the true value = 9 ==> ANSWER
(ii) P = 9
MATLAB CODE:
clear
clear all
y(1) = 0.2; %% You can take any initial value of y
P = 9;
x = P; %% Since, starting time of our iteration is n = 0
for k=2:25 %% when n = 0, k = 2. This is to ensure integral array
number
y(k) = 0.5*y(k-1) + 0.5*x/y(k-1);
end
y %% To display the values of y
RESULT:
y =
Columns 1 through 14
0.2000 22.6000 11.4991 6.1409 3.8032 3.0848 3.0012 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000
Columns 15 through 25
3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000
From the above results, we can see that iterations taken to converge to the true value = 8 ==> ANSWER
(iii) P = 3
MATLAB CODE:
clear
clear all
y(1) = 0.2; %% You can take any initial value of y
P = 3;
x = P; %% Since, starting time of our iteration is n = 0
for k=2:25 %% when n = 0, k = 2. This is to ensure integral array
number
y(k) = 0.5*y(k-1) + 0.5*x/y(k-1);
end
y %% To display the values of y
RESULT:
y =
Columns 1 through 14
0.2000 7.6000 3.9974 2.3739 1.8188 1.7341 1.7321 1.7321 1.7321 1.7321 1.7321 1.7321 1.7321 1.7321
Columns 15 through 25
1.7321 1.7321 1.7321 1.7321 1.7321 1.7321 1.7321 1.7321 1.7321 1.7321 1.7321
From the above results, we can see that iterations taken to converge to the true value = 7 ==> ANSWER
(iv) P = 2
MATLAB CODE:
clear
clear all
y(1) = 0.2; %% You can take any initial value of y
P = 2;
x = P; %% Since, starting time of our iteration is n = 0
for k=2:25 %% when n = 0, k = 2. This is to ensure integral array
number
y(k) = 0.5*y(k-1) + 0.5*x/y(k-1);
end
y %% To display the values of y
RESULT:
y =
Columns 1 through 14
0.2000 5.1000 2.7461 1.7372 1.4442 1.4145 1.4142 1.4142 1.4142 1.4142 1.4142 1.4142 1.4142 1.4142
Columns 15 through 25
1.4142 1.4142 1.4142 1.4142 1.4142 1.4142 1.4142 1.4142 1.4142 1.4142 1.4142
From the above results, we can see that iterations taken to converge to the true value = 7 ==> ANSWER
For any help, please write in the comments.
Problem 2 Consider the causal non-linear discrete-time system characterized b difference equation...
Problem 2 Consider the causal non-linear discrete-time system characterized by the following difference equation: 2y[n] yn-1]+x[n] /yn-] If we use as input x[n] to this system (algorithm) a step function of amplitude P (i.e. xIn]-P u[n]), then y[n] will converge after several iterations to the square root of P .Write a MATLAB program that implements the above recursion to compute the square . How many iterations does it take to converge to the true value starting at y[-1]-0.2? roots of...
6. (15) Consider the following causal linear time-invariant (LTT) discrete-time filter with input in and output yn described by y[n] = x[n] – rn - 2 for n 20 . Is this a finite impulse response (FIR) or infinite impulse response (IIR) filter? Why? • What are the initial conditions and their values for this causal and linear time-invariant system? Why? • Draw the block diagram of the filter relating input x[n) and output y[n] • Derive a formula for...
For a causal LTI discrete-time system described by the difference equation: y[n] + y[n – 1] = x[n] a) Find the transfer function H(z).b) Find poles and zeros and then mark them on the z-plane (pole-zero plot). Is this system BIBO? c) Find its impulse response h[n]. d) Draw the z-domain block diagram (using the unit delay block z-1) of the discrete-time system. e) Find the output y[n] for input x[n] = 10 u[n] if all initial conditions are 0.
(2) Consider the causal discrete-time LTI system with an input r (n) and an output y(n) as shown in Figure 1, where K 6 (constant), system #1 is described by its impulse response: h(n) = -36(n) + 0.48(n- 1)+8.26(n-2), and system # 2 has the difference equation given by: y(n)+0.1y(n-1)+0.3y(n-2)- 2a(n). (a) Determine the corresponding difference equation of the system #1. Hence, write its fre- quency response. (b) Find the frequency response of system #2. 1 system #1 system #2...
LTI Systems and Discrete-Time Fourier Series-1 Problem Statement Consider a causal discrete-time LTI system whose input r[n] and output yinl are related by the following equation: Find the Fourier series representation of the output y[n] for (b) ncos()
1) A causal discrete-time system is described by the difference equation, y(n) = x(n)+3x(n-1)+ 2x(n-4) a) What is the transfer function of the system? b) Sketch the impulse response of the system
A causal discrete-time system is described by the following difference equation: Use Matlab to write a script to complete the following tasks. Turn in the output created by the Matlab "publish" utility. (a) Compute and plot the impulse response h[n], 0くn 〈 50. Use the function h=imp2(b, a , N ) to find the impulse response, and use the stem ) function to create the plot. (b) Let x[n] be defined by (n - 15)2 0n K 30 x[n] elsewhere...
a causal discrete time LTI system is implemented using the difference equation y(n)-0.5y(n-1)=x(n)+x(n-1) where x(n) is the input signal and y(n) the output signal. Find and sketch the impulse response of the system
5 11 Question 3 2 pts Consider a discrete-time linear system with frequency response H(12) = en The input to the system is the signal (0.2+ef) x[k] = 2 cos(1.2k).The output of the system is the signal y[k]. y[k]is a cosine with amplitude approximately equal to: 4.566 0.578 0.919 1.837
Consider a discrete-time system described by the following difference equation. y(n) = y(n−1)−.24y(n−2) + 2x(n−1)−1.6x(n−2) Find the transfer function H(z). Find the zero-state response to the causal exponential input x(k) = .8nµ(n). This means that given H(z), we can calculate Y(z) and subsequently the output, y(n) with all initial conditions presumed to be zero. Hence the term, zero-state.