Plotting the coherence of two signals
.
seed
(
19680801
)
=
0.01
=
(
0
,
30
,
)
=
(
len
(
))
=
(
len
(
))
=
(
2
*
*
10
*
)
+
=
(
2
*
*
10
*
)
+
,
=
(
2
,
1
,
layout
=
'constrained'
)
[
0
]
.
plot
(
,
,
,
)
[
0
]
.
set_xlim
(
0
,
2
)
[
0
]
.
set_xlabel
(
'Time (s)'
)
[
0
]
.
set_ylabel
(
's1 and s2'
)
[
0
]
.
grid
(
True
)
,
=
[
1
]
.
cohere
(
,
,
NFFT
=
256
,
Fs
=
1.
/
)
[
1
]
.
set_ylabel
(
'Coherence'
)
()