This project contains the code of SMARTA, which can be applied for removing the stimulation artifact in LFPs.
The function for SMARTA is "run_SMARTA.m" and the function for artifact detection is "find_stime.m".
Please see "example_SMARTA.m" for the usage of functions.