Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help with sketching the signal

Status
Not open for further replies.

TorrieTTT

Newbie
Joined
Aug 26, 2021
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
27
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.

IMG_20210903_120423.jpg
 
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
IMG_20210903_120423w.jpg

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top