# -*- coding: utf-8 -*- """ Convert BDF file to MAT format. This script converts a BDF (Biosemi Data Format) EEG file to .mat format, matching the structure of eeg_data.mat. Structure of eeg_data.mat: - data: (n_samples, n_channels) float64 - chn: (1, n_channels) object - channel names - sample_rate: (1, 1) int64 - node_number: (1, 1) int64 - t: (n_samples, 1) float64 - time vector in seconds - electrode_name: (1, n_channels) object - electrode names (10-20 system) - electrode_xyz: (n_channels, 3) float64 - electrode 3D coordinates - electrode_coord_system: (1,)