# Fourier series of square wave on Matlab?

1. Dec 16, 2015

### John Daff

1. The problem statement, all variables and given/known data
How Can i do this on matlap
the question in Attached files
2. Relevant equations

3. The attempt at a solution
i try a lot but i failed

#### Attached Files:

File size:
91.2 KB
Views:
39
• ###### 12360131_10153463689951219_5723816775098804842_n.jpg
File size:
91.2 KB
Views:
41
2. Dec 16, 2015

### Staff: Mentor

Welcome to the PF.

Can you post what you have tried?

3. Dec 16, 2015

### John Daff

you don't believe me :D?
i try to draw this square wave function (-k W k ) on a paper
it is the same but +ve & -ve
but i have 3 problems
1- i learned this just todaaay
2- the doc Need this homework tomorrow i don't know how i am not a superman
3- i don't know the code or how i draw it in matlab as fourier expansion

4. Dec 16, 2015

### Staff: Mentor

What have you found with your Google searching about using MATLAB to do this? What have you found at the mathworks website? Do they have any tutorials that are similar to this problem?

5. Dec 16, 2015

### John Daff

i didn't found the same also this is my first time in this lesson i don't know where i search
the real problem that the Doc learned us today and wanna this homework tomorrow
the time goo fast

6. Dec 16, 2015

### Staff: Mentor

Sorry, by the PF rules, we are not allowed to help you until you show some effort.

7. Dec 16, 2015

### John Daff

ok please tell me where i search
i am ready to stay wake all the night it is very important assignment

8. Dec 16, 2015

### Staff: Mentor

9. Dec 16, 2015

### John Daff

Thans
thanks a lot
but ihave a question
in my homework ( n=1) And above is 10 not infinity
how can this help me?