Continue to Site

# Help with sketching the signal

Status
Not open for further replies.

#### TorrieTTT

##### Newbie
I've been trying to solve the question but am not getting the desired answer.
I tried separating the components and solving but still no luck. Plese help.

Last edited by a moderator:

I've been trying to solve the question but am not getting the desired answer.
I tried separating the components and solving but still no luck. Plese help.

View attachment 171730
put values from -6 to 6 in n and change value of k according to n. x[-6]=4 ,x[-5]=2,and change values by simply puting values in question.

Hi,

the original picture has a file size of 5MBytes.
This picture has a filesize of 0.034MBytes

Mind that edaboard is an international forum and there are regions with low internet bandwidth

Generally it´s no good idea to take a high resolution photo from a computer monitor. It just gives huge file size with low quality. Better use the screenshot buttons of your keyboard (or other OS screenshot functions) and use .PNG file format.

put values from -6 to 6 in n and change value of k according to n. x[-6]=4 ,x[-5]=2,and change values by simply puting values in question.
This is my guess attempt:

Code:
clc;clear;
for n = 0:12
sum = 0;
for k = -6:5
if n < 3*k
u1 = 0;
else
u1 = 1;
end
if n < 4+3*k
u2 = 0;
else
u2 = 1;
end
sum = sum + (u1 - u2);
end
y(n+1) = 2*sum;
end

x = -6:6;
stem(x,y)

Status
Not open for further replies.