Horje
How to load .mat file and convert it to .csv file? Code Example
How to load .mat file and convert it to .csv file?
import pandas as pd
from scipy.io import loadmat

data_dict = loadmat('ecgca274_edfm.mat')
data_array = data_dict['val']
data_array = data_array.transpose(1, 0)
df = pd.DataFrame(data_array,
                  columns=['ch'+str(n) for n in range(1,7)])




Python

Related
transpose matrix in python without numpy Code Example transpose matrix in python without numpy Code Example
.first() in django Code Example .first() in django Code Example
crawl a folder python Code Example crawl a folder python Code Example
get next multiple of a number Code Example get next multiple of a number Code Example
Small Python Game Code Example Small Python Game Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7