Question

please, write the mathematical definition of each system . (System1, System2, System3,System4,System5),the code is written in...

please, write the mathematical definition of each system . (System1, System2, System3,System4,System5),the code is written in matlab. thanks

if sysnum==1 % System #1

y=x-4;

elseif sysnum==2 % System #2

y=n.^2.*x;

elseif sysnum==3 % System #3

y=-(x.^2);

elseif sysnum==4 % System #4

y=cos(2*pi/3-pi/7)*x;

elseif sysnum==5 % System #5

b=[-1 4 -1];

for ni=1:length(n)

y(ni)=0;

for k=0:length(b)-1;

if (ni-k)>=1

y(ni)=y(ni)+b(k+1)*x(ni-k);

end

end

end

else % Error: invalid system number

error(['labsys: Invalid system. Input sysnum must be 1, 2, ' ...

'3, 4 or 5']);

end

Homework Answers

Answer #1

Answer;

From,

if sysnum==1 % System #1

y=x-4;

the system 1 is define as:

y[n] = x[n] - 4

from,

elseif sysnum==2 % System #2

y=n.^2.*x;

the system 2 is define as:

y[n] = n^2 x[n]

from,

elseif sysnum==3 % System #3

y=-(x.^2);

the system 3 is define as:

y[n] = - (x[n] )^2

from,

elseif sysnum==4 % System #4

y=cos(2*pi/3-pi/7)*x;

the system 4 is define as:

y[n] = cos(2pi/3-pi/7 ) x[n]

from,

elseif sysnum==5 % System #5

b=[-1 4 -1];

for ni=1:length(n)

y(ni)=0;

for k=0:length(b)-1;

if (ni-k)>=1

y(ni)=y(ni)+b(k+1)*x(ni-k);

end

end

end

the system 5 is define as:

y[n] = -x[n]+4x[n-1]-x[n-2]

Thanking you sir / madam....

Plz thumsup if you like the answer...

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
In the study of Signal and System, it is important to understand the system characteristics such...
In the study of Signal and System, it is important to understand the system characteristics such as linearity, time invariance, stability, causality and invariability. In this experiment, write a function that uses inputs x1[n]=3?[n] and x2[n]=7?[n] to determine if the system output Y[n]={tan (3(pi)n/11)}2 + sin(6(pi)n/21) + cos(7(pi)n/21){x[n] + 1} represents the output of a linear system. Using MATLAB
Using Matlab to obtain the output squence that results when you use k(n) = cos(pi*n/4) as...
Using Matlab to obtain the output squence that results when you use k(n) = cos(pi*n/4) as the input. y(n) = x(n) + 2x(n-1) + x(n-2) + 0.8y(n-1) - 0.64y(n-2) Plot (stem) the resulting output. n=255 Amplitude? Was the signal amplified through the system? By how much?
The following is Algorithm 8 from §5.4. Note that it uses the following definition of the...
The following is Algorithm 8 from §5.4. Note that it uses the following definition of the fibonacci sequence: fn = fn−1 + fn−2, f1 = 1, f0 = 0. procedure iterative fibonacci(n: nonnegative integer) if n = 0 then return 0 else x := 0 y := 1 for i := 1 to n − 1 do z := x + y x := y y := z end for return y end if end procedure Prove this algorithm is...
Python Programming 1. Write the following Python expressions in mathematical notation. a. dm = m *...
Python Programming 1. Write the following Python expressions in mathematical notation. a. dm = m * (sqrt(1 + v / c) / sqrt(1 - v / c) - 1) b. volume = pi * r * r * h c. volume = 4 * pi * r ** 3 / 3 d. z = sqrt(x * x + y * y) 2. What are the values of the following expressions? In each line, assume that s = "Hello" t =...
Find the length of the curve 1) x=2sin t+2t, y=2cos t, 0≤t≤pi 2) x=6 cos t,...
Find the length of the curve 1) x=2sin t+2t, y=2cos t, 0≤t≤pi 2) x=6 cos t, y=6 sin t, 0≤t≤pi 3) x=7sin t- 7t cos t, y=7cos t+ 7 t sin t, 0≤t≤pi/4
Please write down the details of reasons for your solutions. Thanks. Questions 2 a) Let f(x,y)...
Please write down the details of reasons for your solutions. Thanks. Questions 2 a) Let f(x,y) = sin (y^2 + e^(2x)). Find f(xy) and f(yx) and verify their equality. b) Find the equation of the tangent plane to the surface z=e^(2x)*cos(3y) at P (0, pi/3, -1) c) Find the direction in which the function f(x,y) = ((x-2y)/(2x+y))^(1/3) increases most rapidly at (1,0).
Problem 2 (explain each codes please) If more information if needed please let me know 1)...
Problem 2 (explain each codes please) If more information if needed please let me know 1) % time vector t=linspace(0,1,1000); x = zeros(size(t)); y = zeros(size(t)); Meaning: 3)% loop to find the value of x and y for different values of time for i=1:length(t) x(i) = v*cos(angle_theta)*t(i); y(i) = h+v*sin(angle_theta)*t(i)-(0.5*g*(t(i).^2)); end Meaning: 4)% find the first index where y<=0 i.e the ball hits the ground I = find(y<=0,1); fprintf('The ball hits the ground at distance of %f meters\n',x(I)); Meaning: 5)...
The frequency response H(f) of a linear system is given by: , where f is frequency...
The frequency response H(f) of a linear system is given by: , where f is frequency in Hz. (repeat - y(f)/x(f) = H(f) = j2f ) Find the output y(t) of this system for a 10 Hz cosinusoidal input with an an amplitude of 3, i.,e . Again (x(t) = 3*cos(2*pi*10*t) A.) y(t) = 60*cos[2pi10t + (pi/2)] B.) y(t) = j60cos(2*pi*10t) C.) y(t) = 3*cos(2pi*60*t) D.) y(t) = 60*cos[2*pi*10*t - (pi/2)]
y[n] =b(ax[n] +x[n-1]+ax[n-2]) where a&b >0. Find the frequency response of the system H(e^jw). Determine the...
y[n] =b(ax[n] +x[n-1]+ax[n-2]) where a&b >0. Find the frequency response of the system H(e^jw). Determine the values of a & b, if the magnitude response of the filter at w = 0 is 1 and at w =pi÷2 is 0.5. thanks
Write a MATLAB function that implements the difference equation for the system assuming null initial conditions....
Write a MATLAB function that implements the difference equation for the system assuming null initial conditions. Include source code . y(n) = x(n) + 2x(n-1) + x(n-2) + 0.8 y(n-1) - 0.64 y(n-2) Use Matlab to calculate the response of the system to p(n) = 0 for all n expect when p(10) = 1. Using stem, plot the resulting output to n=100 What is the amplitude of the output squence? Was the signal amplified? How much?
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT