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
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...
Get Answers For Free
Most questions answered within 1 hours.