AUTHOR=Shi Jianwei , Gong Xun , Song Ziang , Xie Wenkai , Yang Yanfeng , Sun Xiangjie , Wei Penghu , Wang Changming , Zhao Guoguang TITLE=EPAT: a user-friendly MATLAB toolbox for EEG/ERP data processing and analysis JOURNAL=Frontiers in Neuroinformatics VOLUME=Volume 18 - 2024 YEAR=2024 URL=https://www.frontiersin.org/journals/neuroinformatics/articles/10.3389/fninf.2024.1384250 DOI=10.3389/fninf.2024.1384250 ISSN=1662-5196 ABSTRACT=Background: At the intersection of neural monitoring and decoding, event-related potential (ERP) based on electroencephalography (EEG) has opened a window into intrinsic brain function. The stability of ERP makes it frequently employed in the field of neuroscience. However, project-specific custom code, tracking of user-defined parameters, and the large diversity of commercial tools have limited clinical application.We introduce an open-source, user-friendly, and reproducible MATLAB toolbox named EPAT that includes a variety of algorithms for EEG data preprocessing. It provides EEGLAB-based template pipelines for advanced multi-processing of EEG, magnetoencephalography, and polysomnogram data. Participants evaluated EEGLAB and EPAT across 14 indicators, with satisfaction ratings analyzed using the Wilcoxon signed-rank test or paired t-test based on distribution normality. Results: EPAT eases EEG signal browsing and preprocessing, EEG power spectrum analysis, independent component analysis, time-frequency analysis, ERP waveform drawing, and topological analysis of scalp voltage. A user-friendly graphical user interface allows clinicians and researchers with no programming background to use EPAT. Conclusions: This article describes the architecture, functionalities, and workflow of the toolbox. The release of EPAT will help advance EEG methodology and its application to clinical translational studies.