Question

In: Electrical Engineering

Using MATLAB, determine whether the system below are a) linear/non-linear b) time-invariant/timevariant, c) causal/noncausal, d) has...

Using MATLAB, determine whether the system below are a) linear/non-linear b) time-invariant/timevariant, c) causal/noncausal, d) has memory/memoryless:

y(t) = x(t) + x(t -1)

Provide MATLAB code and graphs to show your work for the linearity and time-invariance testing.

Solutions

Expert Solution

MATALB code is given below in bold letters.

clc;
close all;
clear all;


% Let the input be a unit step signal
t = (-1:0.01:10)';
x = 1*(t>=0); % Input is unit step signal

figure;plot(t,x);grid on;
xlabel('t');ylabel('Amplitude');title('Input signal');
ylim([-0.1 1.1*max(x)]);%ylim([-0.1 1.1]);

% Linearity test quection (a)
x_t_1 = 1*(t>=1);
y = x + x_t_1;
figure;plot(t,y);grid on;
xlabel('t');ylabel('Amplitude');title('Output signal');
ylim([1.1*(min(y)) 1.1*(max(y))]);

It is observed from the above figure that, the response y[t] for unit step is proportional to input. Therefore the system is linear.

% Time invariance test question (b)
% A Time invariant system output does not depend on when the input is applied
t_shift = 0:0.01:11; % Shift in time
figure;plot(t_shift,y);grid on;
xlabel('t');ylabel('Amplitude');title('Output signal when the input is applied at t = 0');
ylim([1.1*(min(y)) 1.1*(max(y))]);

It is observed from the above figure that, input at t= 0 has caused the output at t = 0. Therefore the systems output does not depend on when the input is appled. Hence the system is Time-Invariant.

% Test on causality
% A system is causal when the its unit Impulse response is zero for n<0
% the systems output when the input is unit Impulse is given below
x = 1*(t == 0); % unit Impulse
x_t_1 = 1*(t == 1);
h = x + x_t_1; % unit Impulse response
figure;plot(t,h);grid on;
xlabel('t');ylabel('Amplitude');title('Unit Impulse response');
ylim([1.1*(min(h)) 1.1*(max(h))]);

It is observed from the above figure that, the system's output is zero for t<0 which indicates that system is causal.

% Question (d)

From the above figure it is observed that h[t] not equal to 0 for t>0 which indicate that the system is memory-system.


Related Solutions

Determine where the system is 1) linear 2) causal 3) stable and 4) time-invariant. a)y(n)= nx(n)...
Determine where the system is 1) linear 2) causal 3) stable and 4) time-invariant. a)y(n)= nx(n) b) y(n)=x square(n)
Consider the linear time invariant system described by the transfer function G(s) given below. Find the...
Consider the linear time invariant system described by the transfer function G(s) given below. Find the steady-state response of this system for two cases: G(s) = X(s)/F(s) = (s+2)/(3(s^2)+6s+24) when the input is f(t) = 5sin(2t) and f(t) = 5sin(2t) + 3sin(2sqrt(3)t)
Consider the first order linear time-invariant (LTI) system given by, ??(?) ?? + 4?(?) = ?(?)...
Consider the first order linear time-invariant (LTI) system given by, ??(?) ?? + 4?(?) = ?(?) Where the system is initially at rest. Part a: Determine the Frequency Response H(jω) and impulse response h(t). Part b: When the input ?(?) = ?23?(?), determine the output of the system ?(?). Part c: Is the system; memoryless? causal? Stable? please justify your answer
the following are impulse responses/outputs of discrete -time LTI systems. Determine whether each system is causal...
the following are impulse responses/outputs of discrete -time LTI systems. Determine whether each system is causal and/or stable. justify your answers 1. h [n] = 1/5^n u [n] 2. h [n] = 5^n u [3-n] 3. y [n] = 3x [n] - 0.15y [n-1] 4. y [n] = 2e^-x [n] 5. y [n] = n^2 4x [n] B. Show if the systems defined in 1 to 5 above have bounded input and output (BIBO) from the summation of their impulse...
Make the program(such as matlab) for solving the linear system Ax = b using the Naive-Gaussian...
Make the program(such as matlab) for solving the linear system Ax = b using the Naive-Gaussian elimination & also the Gaussian elimination with partial pivoting.
1.            Determine whether the function f from { a, b, c, d } to {a,...
1.            Determine whether the function f from { a, b, c, d } to {a, b, c, d, e} is injective (one-to-one), surjective (onto) and/or bijective (one-to- one correspondence) : f(a) = a,            f(b) = c,            f(c) = b, f(d) = e a. Is this function injective?              . surjective?              . bijective?              . If your answer is no for any of the above, explain:             b. Is there an inverse for this function?              . c. Is the composition f...
Using MATLAB: The velocity, v, and the distance, d, as a function of time, of a...
Using MATLAB: The velocity, v, and the distance, d, as a function of time, of a car that accelerates from rest at constant acceleration, a, are given by = a n d = 12 Determine v and d at every second for the first 10 seconds for a car with acceleration of = 15 ft/s2. Your output must have exactly the same format as the template table below. Note that dots have been added to the table below; you can...
This is a linear algebra question. Determine whether the given system has a unique solution, no...
This is a linear algebra question. Determine whether the given system has a unique solution, no solution, or infinitely many solutions. Put the associated augmented matrix in reduced row echelon form and find solutions, if any, in vector form. (If the system has infinitely many solutions, enter a general solution in terms of s. If the system has no solution, enter NO SOLUTION in any cell of the vector.) 2x1 + 3x2 − 4x3 = 12 −6x1 − 8x2 +...
Determine whether each system is LTI, causal and/or stable and with or without memory. Justify answers....
Determine whether each system is LTI, causal and/or stable and with or without memory. Justify answers. a) y[n + 1] + 4y[n] = 3x[n + 1] - x[n] b) y[n] = nx[2n]
Determine whether each system is LTI, causal and/or stable and with or without memory. Justify answers....
Determine whether each system is LTI, causal and/or stable and with or without memory. Justify answers. a) y(t) =sen(x(t)) b) y(t) = dx/dt + x(t)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT