As seen in the previous problem, the Fourier series is one of a possible class of representations

Question:

As seen in the previous problem, the Fourier series is one of a possible class of representations in terms of orthonormal functions. Consider the case of the Walsh functions which are a set of rectangular pulse signals that are orthonormal in a finite time interval [0, 1]. These functions are such that: (i) take only 1 and −1 values, (ii) φk(0) = 1 for all k, and (iii) are ordered according to the number of sign changes.

(a) Consider obtaining the functions {φk}k=0,...,5. The Walsh functions are clearly normal since when squared they are unity for t ∈[0, 1]. Let φ0(t) = 1 for t ∈[0, 1] and zero elsewhere. Obtain φ1(t)with one change of sign and that is orthogonal to φ0(t). Find then φ2(t) which has two changes of sign and is orthogonal to both φ0(t) and φ1(t). Continue this process. Carefully plot the {φi(t)},i = 0,...,5. Use the function stairs to plot these Walsh functions.

(b) Consider the Walsh functions obtained above as sequences of 1s and −1s of length 8, carefully write these 6 sequences. Observe the symmetry of the sequences corresponding to {φi(t),i = 0, 1, 3, 5}, determine the circular shift needed to find the sequence corresponding to φ2(t) from the sequence from φ1(t), and φ4(t) from φ3(t). Write a MATLAB script that generates a matrix ­Ф with entries the sequences, find the product (1/8) ФФT, explain how this result connects with the orthonormality of the Walsh functions.

(c) We wish to approximate a ramp function x(t) = r(t), 0 ≤ t ≤ 1, using {φk}k=0,...,5. This could be written

r = ­Фa

where r is a vector of x(nT) = r(nT) where T = 1/8, a are the coefficients of the expansion, and ­the Walsh matrix found above. Determine the vector aand use it to obtain an approximation of x(t). Plot x(t) and the approximation x̂(t) (use stairsfor this signal).

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: