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...
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).
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
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?
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
Can you rewrite this MATLAB code using a while loop instead of a for loop? %formatting...
Can you rewrite this MATLAB code using a while loop instead of a for loop? %formatting clc, clear, format compact; %define variables k=1; b=-2; x=-1; y=-2; %while loop initialization for k <= 3 disp([num2str(k), ' ',num2str(b),' ',num2str(x),' ',num2str(y),]); y = x^2 -3; if y< b b = y; end x = x+1; k = k+1; end
Problem 3 you can use Matlab and also i give u the Problem 1 code its...
Problem 3 you can use Matlab and also i give u the Problem 1 code its on Matlab Using the same initial code fragment as in Problem 1, add code that calculates and plays y (n)=h(n)?x (n) where h(n) is the impulse response of an IIR bandpass filter with band edge frequencies 750 Hz and 850 Hz and based on a 4th order Butterworth prototype. Name your program p3.sce this is the Problem 1 code and the solutin clear; clc;...