ECE ( MatLAB programing ) very URGENT**


kingcross00
12-07-2007, 12:33 AM
An important concept in communication is that of representing a signal with a sum of simusoidal functions, i.e
x (t) = a0 + 2 ∞/Σ k =1 ak cos ( k ω0 t + θk).

Here x(t) is a periodic signal, which means that x ( t ) = x ( t + T0 )
for all t and ω0 = ( 2π / T0) .
T0 is called the period of x (t) , and ω0 is called the fundamental frequency .
1) Lets work with specific signal
let θk = 0, and a0 = 1.0 , and ak = ( sin(k* π/2) / ( k* π/2) )2 , k = 1, 2, .......
and approximate x (t) with x(t) ≈ a0 + 2 (k/Σ k=1ak cos ( k ω0 t + θk )
Thus, we can evaluate x (t) for any t by asumming a finite number or terms

A) write a Matlab program to evaluate x(t) for 1001 points over the time range
- <_ t <_ 4 . Use k = 2. then plot x(t) vs t.

B) As k is increased, what kind of a signal x(t) do you get ?

In your program, first use a FOR loop to calculate to calculate ak , say a (k), k = 1,.,k .
Then, use FOR loop for the time point and writing this for loop, use another FOR loop to evaluate the summation .

2) Make up a periodic signal, give the period and fundamental frequency.

girdhar
01-18-2008, 01:32 AM
HI,
I am very sorry but I can't help you anyway and I have not even heard of this program