✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Signal je zadan Matlab funkcijom:
function y = x ( n )for i=1: length( n ) y(i)=0; if (-5 <= n(i)) & (n(i) <= -2) & (floor(n(i)) == n(i)) y(i)= 2; end end
Za zadani vremenski vektor n, koji signal će se nacrtati pozivom funkcije na način:
>> stem (n, x(-2*n - 4))