a | b/f03_000_README.txt | ||
---|---|---|---|
1 | |||
2 | |||
3 | 1) Matlab files (.mat) may be read in Python using the Scipy library, loadmat method : scipy.io.loadmat(filename). |
||
4 | |||
5 | 2) In order to build the spectrogram images shown in Fig. 3, the following Matlab function was used: |
||
6 | |||
7 | % create a time vector that has the same number of point (90000) |
||
8 | % Sampling rate = 2000Hz |
||
9 | timevec = -5:1/2000:40-(1/2000) |
||
10 | |||
11 | %load the file |
||
12 | load('f03_B_001_Time-frequency-matrix-global-WT.mat') |
||
13 | |||
14 | % generate the spectrogram |
||
15 | contourf(timevec, linspace(0, 200, 200), tf_WT, 60, 'linecolor', 'none'); |