(New page: == Homework 6 Solution == Q1. ------------------------------------ Q2. ------------------------------------ Q3. ------------------------------------ Q4. --------------------------...) |
|||
Line 3: | Line 3: | ||
Q1. | Q1. | ||
+ | [[Image:MCode_HW6_Q1]] | ||
+ | |||
+ | Assign the value of parameters and then call the function signalDFT | ||
+ | |||
+ | For example, in case 6 type following command in the command window of Matlab: | ||
+ | |||
+ | N=20; | ||
+ | |||
+ | w1=0.62831853; | ||
+ | |||
+ | k=0.2; | ||
+ | |||
+ | w2=0.79168135; | ||
+ | |||
+ | [x,X]=signal(w1,w2,k,N); | ||
+ | |||
+ | Plot result: | ||
+ | |||
+ | case 1: | ||
+ | [[Image:HW6_Q1_Case1]] | ||
+ | |||
+ | case 2: | ||
+ | [[Image:HW6_Q1_Case2]] | ||
+ | |||
+ | case 3: | ||
+ | [[Image:HW6_Q1_Case3]] | ||
+ | |||
+ | case 4: | ||
+ | [[Image:HW6_Q1_Case4]] | ||
+ | |||
+ | case 5: | ||
+ | [[Image:HW6_Q1_Case5]] | ||
+ | |||
+ | case 6: | ||
+ | [[Image:HW6_Q1_Case6]] | ||
------------------------------------ | ------------------------------------ |
Revision as of 16:42, 18 October 2010
Homework 6 Solution
Q1.
Assign the value of parameters and then call the function signalDFT
For example, in case 6 type following command in the command window of Matlab:
N=20;
w1=0.62831853;
k=0.2;
w2=0.79168135;
[x,X]=signal(w1,w2,k,N);
Plot result:
case 1: File:HW6 Q1 Case1
case 2: File:HW6 Q1 Case2
case 3: File:HW6 Q1 Case3
case 4: File:HW6 Q1 Case4
case 5: File:HW6 Q1 Case5
case 6: File:HW6 Q1 Case6
Q2.
Q3.
Q4.
Q5.
Q6.
Q7.