week 7 Flashcards

1
Q

how do you graph crosscorrelation in matlab?

A

[xcor, xlags] = xcorr(signal1, signal2)
figure; plot(xlags, xcor);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

[rxy, lags] = xcorr(x, y, ‘coeff’)

what if x and y are different lengths?

A

function appends zeros to the end of the shorter vector so both are the same length

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

peak correlation

A

tells us where the original signal is most similar to the reference signal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

multiple correlations

A

shift wave over to find the best match between two signals

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

autocorrelation

A

cross correlation between a waveform and itseld

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

it is common to normalize autocorrelation function to ____ at lag ____

A

1
0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is fs?

A

sampling frequency (Hz)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is N?

A

length of data (ex: length(eeg))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is t?

A

t = (0:N-1)/fs
or
t = (1:N) *Ts
time vector starting at 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

how do you plot cross correlation between two signals using the period?

A

t = (1:N) * Ts
[rxy, lags] = xcorr(x, y, ‘coeff’)
figure; plot(lags * Ts, rxy)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

how do you find the max correlation in matlab?

A

[max_corr, max_shift] = max(rxy)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

how do you do autocorrelation in matlab?

A

[rxy, lags] = xcorr(x, x, ‘coeff’)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

cross covariance

A

measures the similarity of deviation of 2 signals about their respective means

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

autocorrelaton and autocovariance versus regular crosscorrelation and covariance

A

auto is between the signal and itself, looking to see how one segment of data is correlation on average with adjacent segments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

(auto)covariance V.S (auto)correlation

A

basically the same but covariance has means subtracted from input signal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

how can analog and digital signals be represented?

A

as either time or frequency domains

17
Q

frequency domain

A

consists of two components, shows how signal energy is distributed over a range of frequencies

18
Q

2 components of frequency domain

A

magnitude and phase

19
Q

frequency components

A

the signal spectrum of a signal

20
Q

theta waves

A

4 - 7 Hz

21
Q

alpha waves

A

8 - 12 Hz

22
Q

beta waves

A

12 - 30 Hz