I looked at ‘UE1.txt’ and I initially could not make any sense out of it. It’s apparently supposed to be a multi-channel recording, however it imports as a (1x57604) vector.
Guessing as to its structure, this will parse it into what appear to be the appropriate vectors:
D = load('UE1.txt');
Dm = reshape(D, 4, );
for k = 1:3
I normally do not provide excessive amounts of assistance for homework assignments, however if you have not been introduced to the requisite functions (such as reshape) for this, some assistance is necessary. The first row of the signal matrix ‘Dm’ after using the reshape call appears to be the time base, and the others are signals. You can figure out the sampling frequency easily enough from the time vector ‘DM(1,:)’.
I have plotted the signals as appear to be appropriate. I leave the rest to you!