Question

Problem 2 Consider the causal non-linear discrete-time system characterized by the following difference equation: 2y[n] yn-1]
0 0
Add a comment Improve this question Transcribed image text
Answer #1

MATLAB code is given below in bold letters.

clc;
clear all;
close all;

% Define intial conditions
y(1) = 0.2;
n = 2;
count1 = 0; % Number of iterations

a = input('Enter x: ');
x = a*ones(1,1e5);

while(1)
y(n) = 1/2*(y(n-1)+x(n)/y(n-1)) ;
error = sqrt(x(n))-y(n);
count1 = count1+1;
if abs(error)<0.0001 % accuracy upto 4 decimal places
break;
end
n = n+1;
end
fprintf('Square root of %1.0f is %1.5f \n',x(n-1),y(n-1));
fprintf('Number of iterations is %1.0f \n',count1);

RESULT:

Enter x: 25
Square root of 25 is 5.00036
Number of iterations is 8


Enter x: 9
Square root of 9 is 3.00117
Number of iterations is 7


Enter x: 3
Square root of 3 is 1.73412
Number of iterations is 6


Enter x: 2
Square root of 2 is 1.41453
Number of iterations is 6

Add a comment
Know the answer?
Add Answer to:
Problem 2 Consider the causal non-linear discrete-time system characterized by the following diff...
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
  • Problem 2 Consider the causal non-linear discrete-time system characterized b difference equation...

    Please help me in this question using MATLAB and Calculations please by hand Problem 2 Consider the causal non-linear discrete-time system characterized b difference equation: y the following n of amplitude P (i.e If we use as input x[n] to this system (algorithim) a step functio rge after several iterations to the square root of P t implements the above recursion to compute the square n)-P uIn), then yIn] will conver roots of 25, 9, 3, and 2. How many...

  • 6. (15) Consider the following causal linear time-invariant (LTT) discrete-time filter with input in and output...

    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...

  • A causal discrete-time system is described by the following difference equation: Use Matlab to write a...

    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...

  • Q8) Consider the following causal linear time-invariant (LTI) discrete-time filter with input x[n...

    Q8) Consider the following causal linear time-invariant (LTI) discrete-time filter with input x[n] and output y[n] described by bx[n-21- ax[n-3 for n 2 0, where a and b are real-valued positive coefficients. A) Is this a finite impulse response (FIR) or infinite impulse response (IIR) filter? Why? B) What are the initial conditions and their values? Why? C) Draw the block diagram of the filter relating input x[n] and output y[n] D) Derive a formula for the transfer function in...

  • 1) Determine if the discrete-time system,y[k] =x[k] +r·y[k−1]is linear / time-invariant / causal / memoryless. Show...

    1) Determine if the discrete-time system,y[k] =x[k] +r·y[k−1]is linear / time-invariant / causal / memoryless. Show your work and explain each property. Start by assuming,x1[k]→y1[k], x2[k]→y2[k]. 2) Determine if the discrete-time system,y[k] =x[k] +rk·y[k−1]is linear / time-invariant / causal / memoryless. Show your work and explain each property. 3) For the system in part 1), if x[k] = 100·u[k−1] and y[k] = 0 for k<0, what is the range of values for r that makes this system BIBO stable? Show...

  • 5 11 Question 3 2 pts Consider a discrete-time linear system with frequency response H(12) =...

    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 causal, linear and time-invariant system of continuous time, with an input-output relation that obeys...

    Consider a causal, linear and time-invariant system of continuous time, with an input-output relation that obeys the following linear differential equation: y(t) + 2y(t) = x(t), where x(t) and y(t) stand for the input and output signals of the system, respectively, and the dot symbol over a signal denotes its first-order derivative with respect to time t. Use the Laplace transform to compute the output y(t) of the system, given the initial condition y(0-) = V2 and the input signal...

  • LTI Systems and Discrete-Time Fourier Series-1 Problem Statement Consider a causal discrete-time LTI system whose input...

    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()

  • Problem 2. Decide if the following systems are linear, time-varying, causal, and have memory. The signals...

    Problem 2. Decide if the following systems are linear, time-varying, causal, and have memory. The signals r[n] or r(t) are the input, and the signals y[n] or y(t) are the output Put Y for Yes, and N for No. No justification is needed. Linear? Time-Invariant?Causal?Has Memory? System y(t) = cos[r(t)] y(t) = 2t-x(t + 1) y(t) = r(3) 2 | 6 | y[n] = x[n] + x[n-1] + 1

  • The system y[n]= x[n] +8x[n + 1]+x[n +2] is O With memory. Causal, Time-varying and Linear...

    The system y[n]= x[n] +8x[n + 1]+x[n +2] is O With memory. Causal, Time-varying and Linear With memory, None Causal, Time-varying and Linear With memory, None Causal, Time-invariant and Linear Memmoryless, None Causal, Time-invariant and Linear With memory, None Causal, Time-invariant and None Linear The system y[n]= x[n] +8x[n + 1]+x[n +2] is O With memory. Causal, Time-varying and Linear With memory, None Causal, Time-varying and Linear With memory, None Causal, Time-invariant and Linear Memmoryless, None Causal, Time-invariant and Linear...

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