sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
10517c267cd86ac842b4b63a3a3d4a16a7d4cbfdc5c803febc8db3584bd09ef4
MATLAB
28,991
689
function [net_run,net_out,pred_da_sense,pred_da_move,pred_da_move_u,pred_da_sense_u,pred_da_move_o,pred_da_sense_o] = dlRNN_train_cuedDAstim(net,input,input_omit,input_uncued,target,act_func_handle,learn_func_handle,transfer_func_handle,tolerance,tau_trans,stim,filt_scale,trans_sat) % note stim is a variable coding for...
2ee183c565b4c889c0c9d2fe09bd1d9db6b2aae2fdeab3a9d89a8f0a70d4d276
MATLAB
28,999
700
classdef ScrollingPanel < uix.Container & uix.mixin.Panel %uix.ScrollingPanel Scrolling panel % % p = uix.ScrollingPanel(p1,v1,p2,v2,...) constructs a scrolling panel % and sets parameter p1 to value v1, etc. % % A scrolling panel is a standard container (uicontainer) that shows %...
89aaff37450da1ab1ec0755a6e52d03decea531ceb8fc7ae4a7cf59424a815d0
MATLAB
29,061
638
% Analyse interplay between SWRs and assembly activation times % Run Project_Sleep_into_Task first (... including DecodeAssemFromSleepProjections) temp = load([p.pat 'Ripples' p.sep p.rat 'Ripp.mat']); rip.PreTimes = reshape([temp.Jlong2rip5sd_R1.tsabsmax],size(temp.Jlong2rip5sd_R1)); rip.TaskTimes = rip.PreTi...
230bb64d59a753a9340f8dd77ed86447be8d968ede2dabf11f13f694e3430059
MATLAB
29,071
936
function varargout = f_EEG_import_GUI(varargin) % F_EEG_IMPORT_GUI MATLAB code for f_EEG_import_GUI.fig % F_EEG_IMPORT_GUI, by itself, creates a new F_EEG_IMPORT_GUI or raises the existing % singleton*. % % H = F_EEG_IMPORT_GUI returns the handle to a new F_EEG_IMPORT_GUI or the handle to % the exis...
8c1ee6ca05210fe2ed98252836870efee442b197daede3579d7280fe4e6ae05c
MATLAB
29,159
632
%% Preamble clear warning('off') Target = 'Long'; UseResampledResults = true; UseTaskOnlyFiringRates = true; ProcessUnits = true; ProcessAssemblies = true; useWholeTaskPeriod = true; tlimsAll = [-5 5]; shift = 0; bw=0.05; tbAll = tlimsAll(1):bw:tlimsAll(2); Areas = {'PFC','HP','Joint'}; color_={'b',...
16a6cf88423a2ad447fc98f01d21ee31355ddf8675927fed94bf40b5315eb1b9
MATLAB
29,261
520
% % Scripts that averages the CCEP responses and N1 properties over the connections (from stimulated region to responding regions) for each run and each patient % % Note: the cells in the output variables ('subjectResponses', 'subjectResponses_nonnorm', 'subjectN1s', 'subjectN1Widths', % 'average_L_trk_lengt...
aea8154dbc8e708504e3aef2c5621dca61d74532df4a6723e5e705a0c34fa907
MATLAB
29,310
859
%% %%%%%% PREAMBLE %%%%%% targets = {'LONG2','AM251','CP55940','URB597','Physostigmine','Scopolamine','HU210','CPphyso','CPAM'}; targets2 = {'Vehicle','AM251','CP55940','URB597','Physostigmine','Scopolamine','HU210','CP55940 & Physostigmine','CP55940 & AM251'}; targets_ = {'Control','AM251','CP55940','URB597','Phys...
a6ce67b23d832a55fe1761947292cf0955170c47bbc4bc7c7a2108c6922fb2ec
MATLAB
29,668
712
%% %%%%%% PREAMBLE %%%%%% clear Target = 'MEDIUM'; switch Target case 'SHORT' Delays_ = {'Delay_0'}; Delays__ = {'0s'}; case 'MEDIUM' Delays_ = {'Delay_2','Delay_4','Delay_6','Delay_8'}; Delays__ = {'2s','4s','6s','8s'}; case 'LONG' Delays_ = {'Short','Medi...
379817f3754621952a0ba82cf7b84aa321e6ede3540a527beb2c37f150760a07
MATLAB
29,921
1,126
function varargout = ep_ExperimentDesign(varargin) % h = ep_ExperimentDesign % % Design protocols for EPsych experiments % % Daniel.Stolzberg@gmail.com 2014 % Copyright (C) 2016 Daniel Stolzberg, PhD % Last Modified by GUIDE v2.5 02-Aug-2014 10:45:12 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_...
9b5c36d6e5030f3ca9f4a982ef66fd0717dfcd4c546790acb874ae0a5015b8c7
MATLAB
30,084
1,012
function varargout = DB_UploadUtility(varargin) % Last Modified by GUIDE v2.5 29-May-2013 09:40:19 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @DB_UploadUti...
9c492d7182a660fb9fcb2f4d8563e3fe8f9507a40728e8fbab7a9338d42e0275
MATLAB
30,156
800
%% % Compares continuous L/R discrimination during the delay period, % calcluated on short/medium/long delay trials independently %% %%%%%% PREAMBLE %%%%%% clear Delays_ = {'Short','Medium','Long'}; Delays__ = {'4s','8s','16s'}; DelaysDur = [4,8,16]; Target = 'LONG'; tlimsAll = [-30 30]; tlimsTrials = [...
154de93dc652206bbf6c3dc45a1dfb97baf8ab0dff9d1f2152dfe741e489d43d
MATLAB
30,159
847
function split_tool( spikes, clus, h, savename, target_fig) % UltraMegaSort2000 by Hill DN, Mehta SB, & Kleinfeld D - 07/12/2010 % % split_tool - tool for inspection and division of a single cluster from a sorted spikes object % % Usage: % split_tool( spikes, clus, h, savename, target_fig) % % Description: % ...
ee631526dd3feefddf7b8215c393737b4a914ef30afb78d9a009c57fc652a18d
MATLAB
30,366
750
%% Introduction %{ MATLAB scripts for "Closing the Wearable Gap—Part VI: Human Gait Recognition Using Deep Learning Methodologies" In this paper the capacitance of soft robotic sensors (SRS) related to foot-ankle basic movements was quantified during the gait movements of 20 participants on a flat surface as well as ...
4455e078e372a466bcf089279bbe4810f14c8f2206896c64f91de38920854bb4
MATLAB
30,566
681
%%This function is operation for EventList % *** This function is part of ERPLAB Studio Toolbox *** % Author: Guanghui Zhang & Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % 2024 function varargout = f_ERP_events_GUI(varargin) global observe_ERPDAT; addlistener(observe_ERPD...
5afff94adf4688dfbe184aab14c6fa5ad8011d105b04e6f3372119ed9cc274af
MATLAB
30,666
713
% PURPOSE : Creates the EVENTLIST structure from the event information given in an edited list of events regarding % the information at EEG.event. The EVENTLIST structure is attached to the EEG structure. % % FORMAT : % % EEG = pop_editeventlist( EEG , Parameters); % % INPUTS : % % EEG ...
38e50e335f002b26cd8e7aa0a29b7041078af428b554a8ff0e555c8271dba018
MATLAB
31,114
763
function SPM = spm_spm(SPM) % [Re]ML Estimation of a General Linear Model % FORMAT SPM = spm_spm(SPM) % % Required fields of SPM: % % xY.VY - nScan x 1 struct array of image handles (see spm_vol) % Images must have the same orientation, voxel size and data type % - Any scaling should have already been app...
81b48f4fff0b4a3cf7cbbf469a91ecd6c65c597a445cf9cb621a4ec4cec8b8fa
MATLAB
31,172
618
% PURPOSE: subroutine for pop_geterpvalues.m % % FORMAT: % % VALUES = geterpvalues(ERP, latency, binArray, chanArray, moption, blc, coi, polpeak, sampeak, localopt, frac, fracmearep) % % or % % [VALUES L] = geterpvalues(...); % % % INPUTS : % % ERP - ERP structures (ERPLAB ERPset) % latency ...
d59d5849b80d6acd4556f16d440c8e6c740dd75773abafb29593aea1fdbc9db7
MATLAB
31,183
921
% Note: very preliminary alfa version. Only for testing purpose. May 2008 % % HELP PENDING for this function % Write erplab at command window for help % % % Bin Operations: % % The �Bin Operations� function allows you to compute RUN bins that are linear % combinations of the bins in the current ERP structure. For...
0b23946313fde2b188e129ffd153aea1113ed727c5940323e9a346edcefd9751
MATLAB
31,237
856
% Note: very preliminary alfa version. Only for testing purpose. May 2008 % % HELP PENDING for this function % Write erplab at command window for help % % % Bin Operations: % % The ‘Bin Operations’ function allows you to compute RUN bins that are linear % combinations of the bins in the current ERP structure. For...
87e77be046f073a8b0c86a567dd1f4bb80abd5ddf0b631031af357583de69693
MATLAB
31,420
710
% function DecodingDuringDelayIndividualUnits(iFile) % if isstr(iFile) % iFile = str2num(iFile); % end %% %%%%%% PREAMBLE %%%%%% Delays_ = {'Short','Medium','Long'}; Delays__ = {'4s','8s','16s'}; Target = 'LONG'; RunErrors = false; tlimsAll = [0 5]; tlimsShort=[0 4]; tlimsMedium=[0 8]; tlimsLong=[0 16]; shift = ...
e1e3f25c402e814d1095037420122937ac3c9ff55cc01fb8a56896f7554ebcb9
MATLAB
31,644
815
% % Author: Javier Lopez-Calderon & Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % 2009 %b8d3721ed219e65100184c6b95db209bb8d3721ed219e65100184c6b95db209b % % ERPLAB Toolbox % Copyright � 2007 The Regents of the University of California % Created by Javier Lopez-Calderon and St...
f4ca9b79ee40071c163331a61fc270890dca8a3eb5c191e5ccce9fffb76d7e87
MATLAB
32,075
895
%% Preamble, get file list clear all; close all % set(0,'DefaultFigureWindowStyle','docked') flags.plotIndividualChanges = false; if ispc pat{1} = 'C:\Analysis\AssemblyAnalysis\raw\MixedSelectivity_LONG\LeftvsRight\'; % Location of decoding information pat{2} = 'C:\Analysis\AssemblyAnalysis\raw'; ...
553b97ee491b29fe0f4b69355a71074554e20cca3df8538c4f6f3a4f7d3b8820
MATLAB
32,113
710
classdef Violin < handle %% This function has been adopted and edited from a Github repository. The original function is freely avalibale at the following: "https://github.com/bastibe/Violinplot-Matlab". % Violin creates violin plots for some data % A violin plot is an easy to read substitute fo...
cba2ff6011365f2b98344c4f211be3c1070fff893d574b0481d0f701bb09d5e7
MATLAB
32,395
898
%% Preamble, get file list clear all; close all set(0,'DefaultFigureWindowStyle','docked') flags.plotIndividualChanges = false; if ispc % pat{1} = 'C:\Analysis\AssemblyAnalysis\Sleep\'; % location of the processed sleep assembly activations % pat{1} = 'C:\Analysis\AssemblyAnalysis\Sleep\Decoding v...
e20cac45e3d1bdf901bacf024728d1d09aefffc57e5dd3c0edab13cda29d828a
MATLAB
32,471
711
function [C, audiovisuoCode, P, ... eventTimes, sp, motSVD, videoTimestampsEphysTime_face, uMotMask, ... pupilarea, pupilcom, blink, videoTimestampsEphysTime_eye] = ... loadDataEphys_paper(subject, date, imecX, P, recompute) if ~exist('recompute','var') recompute = 0; end %...
937dc99be982976ea83372bbf21c56ad1bd817b8892752168a54cdbd1ea9f26b
MATLAB
32,585
658
function [all_corrs, all_MSE, est_p1, IO_p1, IO_MAP_p1, est_conf, IO_conf, ... last_I_p1, last_I_conf, TPs_found, p1_poly, MAP_p1_poly, conf_poly] = ... TSL_analyze_ratings(varargin) % Load and analyze the behavioral data of all the subjects, for one model % and one parameter set. %%%%%%%%%%%%%%%%%%%%%...
7afb88a338152b6d84196cd9b7dc5d9c27fe571e6f77c6416b946e1f02736699
MATLAB
32,589
703
%% %%%%%% PREAMBLE %%%%%% clear Delays_ = {'Short','Medium','Long'}; Delays__ = {'4s','8s','16s'}; Target = 'LONG'; shift = 0; minTrialCount = 3; subsampleTrials = false; BootstrapCI_TS = true; nDrawsTrials = 50; Nbs = 500; bw=0.05; tlimsAll = [-4 4]; tbAll = tlimsAll(1):bw:tlimsAll(2);%0:bw:2*sum(abs(tlimsAll)); cl...
0df6c875501299a1c3d59ea40adfe49b0c0c3f7e245d3821c9a008ba750a730f
MATLAB
32,630
796
function [ ] = exp_one_condition(NI_session, TPs, trial, pulse_dur, temp_base, ... temp_I1, temp_I2, V0_temp, V10_temp, fn_session, subj_name, foreperiod,... postperiod, varargin) % Generate one test condition for the probabilistic learning experiment. % % Inputs: % TPs (1,2) vector containing [p(1...
28b8a7fc2d87e886b79ce96bdc35f050a79572bd72c64d37182887214c6f2f0d
MATLAB
32,666
674
%%This function is to Edit/Delete Channels & Locations % *** This function is part of ERPLAB Studio Toolbox *** % Author: Guanghui Zhang & Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % Sep.2023 function varargout = f_EEG_edit_channel_GUI(varargin) global observe_EEGDAT; ad...
23a415fcb4a4c2eb63472088513f947542679d0d8a591db5b8d18bbac9f441fb
MATLAB
32,679
713
%Author: Guanghui ZHANG %Center for Mind and Brain %University of California, Davis %Davis, CA, USA %Feb. 2022 && Nov. 2023 % ERPLAB Studio function varargout = f_ERP_append_GUI(varargin) global observe_ERPDAT; addlistener(observe_ERPDAT,'Count_currentERP_change',@Count_currentERPChanged); addlistener(observe_ERPDAT...
75440fd156e8928cf4dd646eb8012d7f7a99f828a17982d91a88a67bdf12e287
MATLAB
32,718
695
%%This function is to Edit/Delete Channels & Locations % *** This function is part of ERPLAB Studio Toolbox *** % Author: Guanghui Zhang & Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % Jan. 2024 function varargout = f_ERP_edit_channel_GUI(varargin) global observe_ERPDAT; a...
6f7817dd73e62a679996dd53eb7e5da32b21f318bd11d29e059f6441ff7b927c
MATLAB
32,789
814
% New GUI Layout -ERPLAB Studio % % Author: Guanghui Zhang, Kurt Winsler, David Garrett, & Steve J. Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % 2022-2025 % ERPLAB Studio Toolbox % % % This program is free software: you can redistribute it and/or modify % it under the terms of the...
b88b3e43501bc05797f9256b46ccd7e230f41e3ef3025f0ca259db0f4157cb74
MATLAB
32,906
781
% NOTE: Migrated from App Designer (.mlapp) to plain .m for version control. % Original archived outside ERPLAB. Edit here, not the .mlapp. % Migrated to .m: March 2026 by Kurt Winsler classdef f_editchan_gui < matlab.apps.AppBase % Properties that correspond to app components properties (Access = public) ...
9b140c4eb17bff178c50f50568707adadfad23c9c6ad09318518e854db2aa25d
MATLAB
33,015
765
function [chanlocs,chan_desired, n_chan] = TSL_plot_avg_eeg() % Reload the data allowing to display the average EEG responses % - merging all conditions: y_I1 & y_I2 % - per condition: y_I1_cond & y_I2_cond % - per parameter (TPs): y_I1_TP & y_I2_TP % required data are saved in TSL_analyze_EEG.m w/ save_av...
ee69c032124c6bcec4ed37cd9118fb50a90336e982aac17b5a52ed66a8b586c1
MATLAB
33,477
813
clear cd('C:\Analysis\AssemblyAnalysis\LFPanalysis\Aleks chosen LFP segments\CellsOnTetrodes') load('cellsonTetrodes.mat') pat = 'C:\Analysis\AssemblyAnalysis\raw'; cd(pat); useWholeTaskPeriod = true; restrictToLeverTime = true; Targets= {'SHORT','MEDIUM','LONG'}; iTarget = 3; f.bandNames = {'4-6Hz','the...
6f7e8efa648b97b186575ab1ba8c053136a938d412949b28ab79e5b5283a8ac4
MATLAB
33,530
710
%%This function is to compute Data Quality Metrics (Epoched EEG). % *** This function is part of ERPLAB Studio Toolbox *** % Author: Guanghui Zhang & Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % Oct. 2023 function varargout = f_EEG_dq_epoch_GUI(varargin) global observe_E...
d13d3bdf353f600dd477637fede7159992e4e25debdaa6cfc546a96d4b6850b4
MATLAB
33,566
697
% Line up assemblies to their constituent units % % Aleksander PF Domanski PhD UoB 2015 % aleks.domanski@bristol.ac.uk % % 2016: OBSOLETE! %% re-wrap output data % JaroslawLONG2 % KrzesimirLONG2 % KrzysztofLONG2 % MiroslawLONG2 % NorbertLONG1 Animal= 'KrzysztofLONG2'; % (1) load raw cd('C:\Analysis\Assemb...
c0274010d0c1c5f57cb4a2039d9cf10950bc0b233d42214a01bd0afce9bb9ae8
MATLAB
33,695
733
function [net_run,net_out,pred_da_sense,pred_da_move,pred_da_move_u,pred_da_sense_u,pred_da_move_o,pred_da_sense_o] = dlRNN_train_learnDA(net,input,input_omit,input_uncued,target,act_func_handle,learn_func_handle,transfer_func_handle,tolerance,tau_trans,stim,filt_scale,trans_sat) % note stim is a variable coding for li...
cba8db82cd172cbf72c5014638dbc31371ffa86c3bb6804aa8e5120b64ef800f
MATLAB
33,832
686
clc; clear all; close all %% this script train participants %%%% explain the structure of the code here %%%% AliM. Sept 2019 %% collect participant's unidentifiable data data.individual.id = input('Subject Id: ') data.individual.age = input('Subject age: ') data.individual.jender = input('male or female: ', 's'...
c47b550f9acdf9491c4aebeef8845f9f6587ae41e1f09555ae3a0bb518814cfd
MATLAB
33,936
658
% readlocs() - read electrode location coordinates and other information from a file. % Several standard file formats are supported. Users may also specify % a custom column format. Defined format examples are given below % (see File Formats). % Usage: % >> eloc = readlocs( ...
29b733831d06a871e82e50ac172fc253a1fc075c563e99e4bb774c1f503c9bd1
MATLAB
33,987
720
%%This function is to assin eventlist to one specific bin % *** This function is part of ERPLAB Studio Toolbox *** % Author: Guanghui Zhang & Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % Sep. 2023 function varargout = f_EEG_event2bin_GUI(varargin) global observe_EEGDAT; ...
f7c911f803c8838819e2e84bbf016b5ee1438ac13063de695beba7e77e3b0a5e
MATLAB
34,365
942
% % Author: Javier Lopez-Calderon & Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % 2009 %b8d3721ed219e65100184c6b95db209bb8d3721ed219e65100184c6b95db209b % % ERPLAB Toolbox % Copyright © 2007 The Regents of the University of California % Created by Javier Lopez-Calderon and St...
08e563ff7ff7e5863ecc3b4188299e86de77334c9cc0a745bfb8e4ec80b33700
MATLAB
34,366
946
classdef TabPanel < uix.Container & uix.mixin.Panel %uix.TabPanel Tab panel % % p = uix.TabPanel(p1,v1,p2,v2,...) constructs a tab panel and sets % parameter p1 to value v1, etc. % % A tab panel shows one of its contents and hides the others according % to which tab is selected. ...
145944001c22cd4aac27aeb130982191719db27cb5866c3d43a91f106b3a7f4a
MATLAB
34,377
830
%% %%%%%% PREAMBLE %%%%%% clear PlotOnline = false; Delays_ = {'Short','Medium','Long'}; Delays__ = {'4s','8s','16s'}; Target = 'LONG'; trialTimeoutSecs = 5; bw=0.05; clear Av warning ('off') if ispc pat = 'C:\Analysis\AssemblyAnalysis\raw\'; pat2 = 'C:\Analysis\AssemblyAnalysis\raw\KDE_binsTask...
811e97e02181a173874ea45a088b82b4f28b732595e1d22f7625de2eb587a289
MATLAB
34,493
953
%%This is subfunction of the pop_ploteegset.m that is used to plot EEG wave % *** This function is part of ERPLAB Studio *** % Author: Guanghui Zhang & Steven Luck % ghzhang@ucdavis.edu, sjluck@ucdavis.edu % Center for Mind and Brain % University of California, Davis, % Davis, CA % August 2023 function errmeg = f_...
918703667526d15249bdc0d69da87edcca8fef4e017165f434fdd0bb9628a8aa
MATLAB
34,594
1,076
% Begin initialization code - DO NOT EDIT function varargout = chanoperGUI(varargin) gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @chanoperGUI_OpeningFcn, ... 'gui_OutputFcn', @chanoperGUI_OutputFcn, ... 'gui_LayoutFcn', ...
ea11d28822d21045c141d2fd5f9449a12bb3113b0e65599047ea8f7975542595
MATLAB
34,648
875
% Takes factor model computed for continuous data for the task epoch of experiment, then % cast model onto cutout segments for decoding analysis % % Aleksander PF Domanski PhD UoB 2016 % aleks.domanski@bristol.ac.uk %% Preample, load clear all % close all P.target = 'Task'; P.rat = 'JaroslawLONG1'; % ...
b9928cdd782c8e075caae3c22dca8fe09234e0258ee3acf8a16721672aa16360
MATLAB
34,666
875
% Takes factor model computed for continuous data for the task epoch of experiment, then % cast model onto cutout segments for decoding analysis % % Aleksander PF Domanski PhD UoB 2016 % aleks.domanski@bristol.ac.uk %% Preample, load clear all % close all P.target = 'Task'; P.rat = 'JaroslawLONG1'; % ...
8c672d3269b5b8765970de479e293817a948e7470bdd3f29977c2c8924ad1c08
MATLAB
34,708
721
%Author: Guanghui ZHANG--zhang.guanghui@foxmail.com %Center for Mind and Brain %University of California, Davis %Davis, CA, USA %Feb. 2022 & Nov. 2023 % ERPLAB Studio function varargout = f_ERP_spectral_GUI(varargin) global observe_ERPDAT; addlistener(observe_ERPDAT,'Count_currentERP_change',@Count_currentERPChanged...
76600cbdef7a27e55b9a48bbd6b674c519f29e2c778ce782365397483f89b72b
MATLAB
34,894
687
clear pat = 'C:\Analysis\AssemblyAnalysis\raw\'; % fileList_SHORT = dir([pat 'MixedSelectivity_SHORT' filesep '*SHORT*.mat']); % fileList_MEDIUM = dir([pat 'MixedSelectivity_MEDIUM' filesep '*MEDIUM*.mat']); % fileList_LONG = dir([pat 'MixedSelectivity' filesep '*LONG*','*PFC.mat']); fileList_SHORT = dir([pat...
4bf069e329f4a23f3eeae17869abae43a7293e37e1e55781c7779b3a86ff924d
MATLAB
35,052
1,017
% Begin initialization code - DO NOT EDIT function varargout = f_chanoperGUI(varargin) gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @f_chanoperGUI_OpeningFcn, ... 'gui_OutputFcn', @f_chanoperGUI_OutputFcn, ... ...
35517fe41f5f873961d34a0e7a04f02fb8161b56172a1299ab79ef6c565f0349
MATLAB
35,407
1,008
% PURPOSE : Measures values from ERPset data (Instantaneous amplitude, mean amplitude, peak amplitude, etc.) % % FORMAT : % % pop_geterpvalues(ALLERP, latency, binArray, chanArray, parameters); % % or % % pop_geterpvalues(filename, latency, binArray, chanArray, parameters); % % % INPUTS: % % ALLERP ...
803b19a1770c7df1b569f73bb325666c5b50a49a49b410dc97961ad38fa4dc7d
MATLAB
35,460
770
%Ths is part of pop_plotERPwaviewer.m % PURPOSE: It use to update the parameters based on the all saved % paramerters or % function [ERPwaviewerIN, ErroMessg] = f_erpwave_viewer_update_parameter(Parameterfile,parse_param) ErroMessg = ''; ERPwaviewerIN = []; if nargin < 1 || nargin>2 ERPwaviewerIN = []; h...
2769e7206b60e2d77d0b0320c50fca8f1a37bcbad18a9e5db3814df5382f1223
MATLAB
35,684
715
%%This function is to Shift Event Codes (Continuous EEG). % *** This function is part of ERPLAB Studio Toolbox *** % Author: Guanghui Zhang & Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % Oct. 2023 function varargout = f_EEG_shift_eventcode_conus_GUI(varargin) global obse...
7746b777f1d8176463207ba29cbba8590a503752a2dd6a6e91eb54d709309a45
MATLAB
35,714
767
%Author: Guanghui ZHANG--zhang.guanghui@foxmail.com %Center for Mind and Brain %University of California, Davis %Davis, CA, USA %Feb. 2022 % ERPLAB Studio function varargout = f_ERP_binoperation_GUI(varargin) global observe_ERPDAT; addlistener(observe_ERPDAT,'Count_currentERP_change',@Count_currentERPChanged); addlis...
c382e36dbc8e00bb2d1273d568b716fbbfc48e67b1da2cc044ddb1f0ddb8e618
MATLAB
35,926
1,021
% %%%%%% PREAMBLE %%%%%% clear Delays_ = {'Short','Medium','Long'}; Target = 'LONG'; Areas = {'PFC','HP','Joint'}; bw=0.05; tlimsAll = [-5 5]; tbAll = tlimsAll(1):bw:tlimsAll(2); maxRange=20; % Upper limit of assembly size to explore noTrials = 5; % How many trials to con...
1c9f11072b06871111ea2d66f245efc1a9b17e1042d2993836778a03fbbf5eab
MATLAB
35,934
924
%This function is to plot MVPC waves with single or multiple columns on one page. % Author: Guanghui Zhang & Steve J. Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % 2024 function f_redrawmvpc_Wave_Viewer() global observe_DECODE; global EStudio_gui_erp_totl; addlistene...
1de5a3b8050fd4c10d059c4271ea1b285e207f61d36bc4a0974f17f644340c37
MATLAB
36,870
726
%Author: Guanghui ZHANG--zhang.guanghui@foxmail.com %Center for Mind and Brain %University of California, Davis %Davis, CA, USA %Feb. 2022 && Nov. 2023 % ERPLAB Studio function varargout = f_ERP_grandaverageGUI(varargin) global observe_ERPDAT; addlistener(observe_ERPDAT,'Count_currentERP_change',@Count_currentERPChan...
2124fcf0c87a82ab055463b5b1260c261fe47a0780bceba87a43515c838b2ddb
MATLAB
37,000
956
function handles = distributionPlot(varargin) %DISTRIBUTIONPLOT creates violin plots for convenient visualization of multiple distributions % % SYNOPSIS: handles = distributionPlot(data,propertyName,propertyValue,...) % handles = distributionPlot(ah,...) % % INPUT data : m-by-nData array of values, or v...
460dd6221b909ea423fa3f2dbeb673c54a3eb721d594239d0072e5b3b231707c
MATLAB
37,072
689
%Author: Guanghui ZHANG %Center for Mind and Brain %University of California, Davis %Davis, CA, USA % Dec. 2023 % ERPLAB Studio function varargout = f_ERP_resample_GUI(varargin) global observe_ERPDAT; addlistener(observe_ERPDAT,'Count_currentERP_change',@Count_currentERPChanged); addlistener(observe_ERPDAT,'erp_betwe...
f4038235d85bb70694d9188b9e1a31a877a4ec647a7485779c84ae959a8e3f19
MATLAB
37,158
914
%% %%%%%% PREAMBLE %%%%%% clear Delays_ = {'Short','Medium','Long'}; Delays__ = {'4s','8s','16s'}; Target = 'LONG'; RunErrors = false; % tlimsAll = [0 5]; % tlimsShort=[0 4]; % tlimsMedium=[0 8]; % tlimsLong=[0 16]; tlimsShort=[-5 9]; tlimsMedium=[-5 13]; tlimsLong=[-5 21]; shift = 0; plotOnline = false; bw = 0....
e8e231a2fc9201b870e8764852c69fbb1db0ff53c4ca1b45acda9f5168ed4efc
MATLAB
37,477
1,124
%% %%%%%% PREAMBLE %%%%%% % targets = {'LONG','AM251','CP55940','URB597','Physostigmine','Scopolamine','HU210','CPphyso','CPAM'}; % targets2 = {'Vehicle','AM251','CP55940','URB597','Physostigmine','Scopolamine','HU210','CP55940 & Physostigmine','CP55940 & AM251'}; % targets_ = {'Control','AM251','CP55940','URB597','Ph...
79bf667cc833d5a05d356aafd20246a76acd2c701b8e3a703334cb43dc3c5fcf
MATLAB
37,588
992
% plottopo() - plot concatenated multichannel data epochs in a topographic % or % rectangular array. Uses a channel location file with the same % format as topoplot(), or else plots data on a rectangular grid. % If data are all positive, they are assumed to be spectra. % Usage: % ...
db532d25741e757cd85768865b5e252993f6dc82d3c10a1221a78924d860f7b5
MATLAB
37,731
1,016
% PURPOSE : Decode BEST files after setting parameters. % % FORMAT : % % >> MVPC = pop_decoding(ALLBEST) % % INPUTS : % % BEST or ALLBEST - input dataset (BESTset) or input ALLBEST (via % decoding toolbox GUI) % % The available parameters are as follows: % % 'BES...
c49178fcf29cc0b30731bf3f7c355234f0a67e46981179ae502d5483e9911acc
MATLAB
37,748
1,110
%% %%%%%% PREAMBLE %%%%%% % targets = {'LONG','AM251','CP55940','URB597','Physostigmine','Scopolamine','HU210','CPphyso','CPAM'}; % targets2 = {'Vehicle','AM251','CP55940','URB597','Physostigmine','Scopolamine','HU210','CP55940 & Physostigmine','CP55940 & AM251'}; % targets_ = {'Control','AM251','CP55940','URB597',...
1bc2c27c46bcc381262da8b772a500f028443ffed6df742056e1beec6f0198c5
MATLAB
38,059
912
% MVPCset selector panel % % Author: Guanghui ZHANG && Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % 2024 % ERPLAB Studio Toolbox % function varargout = f_decode_mvpcsetsGUI(varargin) global observe_DECODE; global EStudio_gui_erp_totl; addlistener(observe_DECODE,'Count_curr...
fb0cb2643f6bfe29ef3b35391a406e642bb6efbbb4b2fcb9bc08ba38eb7fe77d
MATLAB
38,145
699
% % Author: Guanghui ZHANG && Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % 2025 % ERPLAB Studio Toolbox % function varargout = f_mvpc_plotempgenrmatrixGUI(varargin) global observe_DECODE; addlistener(observe_DECODE,'Count_currentMVPC_changed',@Count_currentMVPC_changed); ad...
86685bb43442a96b922335ac6f746712f59c674e45a56930054e9c0c92921fd4
MATLAB
38,239
743
% This script applies the OT_RBM to 3D meshes and obtains the fiber % orientation in each vertex of the mesh. % % Copyright (C) 2019 Ruben Doste Contact:ruben.doste@gmail.com % % This program is free software: you can redistribute it and/or modify % it under the terms of the GNU General Public...
2033165bb25f69c692f918d37a8f32f91570faf91dd79cd5a7c88367abf65386
MATLAB
38,455
922
function out = IdealObserver(in) % This function is a wrapper to run different Ideal Observer models on a % sequence of binary values (with 1s and 2s). The models depend on: % WHAT IS LEARNED: frequency of the outcome, or transition probabilities % between successive outcomes % WHETHER JUMPS ARE EXPECTED: th...
f89a61e5979480f17e3466c5d1d7d2e8447aaa6be4bf24372bc5e881f328f2a6
MATLAB
38,490
1,021
% % Author: Javier Lopez-Calderon & Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % 2009 %b8d3721ed219e65100184c6b95db209bb8d3721ed219e65100184c6b95db209b % % ERPLAB Toolbox % Copyright © 2007 The Regents of the University of California % Created by Javier Lopez-Calderon and St...
6819acf9cda173e1ed439a8b68e62076667588a3a38fd9038134c975c9528a03
MATLAB
38,613
715
clear pat = 'C:\Analysis\AssemblyAnalysis\raw\'; Areas = {'PFC','HP','Joint'}; Targets = {'SHORT','MEDIUM','LONG'}; Targets_ = {'Short','Medium','Long'}; DelaysList_ = {{'Delay_0'};{'Delay_2','Delay_4','Delay_6','Delay_8'};{'Short','Medium','Long'}}; DelaysList__ = {{'0s'};{'2s','4s','6s','8s'};{'4s','8s','1...
05469ea59c4290d676f6df729cb185104cffa8f94ec92a3bf748dd650e1798ac
MATLAB
38,704
645
% bst_ArtifactScanTool: Remove bad channels and trials. % % USAGE: bst_ArtifactScanTool(x, y, z) % % INPUT: output_channel_names, output_gradients, output_low_sig, % output_p2p, output_trial_fnames, output_trial_labels, % path_to_database, subjid % % % OUTPUT: output_channel_names_keep, output_cha...
55d80cadf681389bc8e712123de8258d2831077a48551cbd551582e769b1fa57
MATLAB
39,118
842
%%This function is to Compute Averaged ERPs (Epoched EEG). % *** This function is part of ERPLAB Studio Toolbox *** % Author: Guanghui Zhang & Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % Oct. 2023 function varargout = f_EEG_avg_erp_GUI(varargin) global observe_EEGDAT; g...
8997d57c4bfe3129ca96b8f1268714e3f170b83fc265cf842c28c87e17dc0b55
MATLAB
39,181
733
%%This function is to detect time segements for continuous EEG. % *** This function is part of ERPLAB Studio Toolbox *** % Author: Guanghui Zhang & Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % Oct. 2023 function varargout = f_EEG_arf_det_segmt_conus_GUI(varargin) global ...
7297d4d97b86a1f0da6cd175cbac4b3ece0c61053c9140dae0984d1ed71996d9
MATLAB
39,343
774
%Author: Guanghui ZHANG %Center for Mind and Brain %University of California, Davis %Davis, CA, USA %Feb. 2022 && Nov. 2023 % ERPLAB Studio function varargout = f_ERP_baselinecorr_detrend_GUI(varargin) global observe_ERPDAT; addlistener(observe_ERPDAT,'Count_currentERP_change',@Count_currentERPChanged); addlistener(...
995db5dd21b753e4c2d90cb566f133a9c59d14fc67bd4661985475ee5b5f33cc
MATLAB
39,489
784
% % Author: Guanghui ZHANG && Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % 2024 % ERPLAB Studio Toolbox % function varargout = f_mvpc_plotconfusionGUI(varargin) global observe_DECODE; addlistener(observe_DECODE,'Count_currentMVPC_changed',@Count_currentMVPC_changed); addlis...
231355dab454f5bf2aab1f7b7f7d676ed909ad7682c8ddbe62cba021aebaa34e
MATLAB
39,807
781
%Author: Guanghui ZHANG--zhang.guanghui@foxmail.com %Center for Mind and Brain %University of California, Davis %Davis, CA, USA % 2024 % EEGLAB Studio function varargout = f_EEG_baselinecorr_detrend_GUI(varargin) global observe_EEGDAT; addlistener(observe_EEGDAT,'eeg_two_panels_change',@eeg_two_panels_change); addli...
696871e2b5f51531d8818eec663d3542c11d841ec01ef2d80c365084c0c512f8
MATLAB
39,824
1,006
% function DecodingDuringDelayIndividualUnits(iFile) % if isstr(iFile) % iFile = str2num(iFile); % end %% %%%%%% PREAMBLE %%%%%% clear Delays_ = {'Short','Medium','Long'}; Delays__ = {'4s','8s','16s'}; Target = 'LONG'; RunErrors = false; tlimsAll = [0 5]; tlimsShort=[0 4]; tlimsMedium=[0 8]; tlimsLo...
6bef757c33998e4158ee41faba0791fc361e5defbc0617e0d6c23a6bbf25ebea
MATLAB
39,886
915
function [] = TSL_plot_IO_fit() % Reload the data allowing to display the IO fitting on the EEG, for *one* % given parameter. % % Data must have been computed and saved by running TSL_analyze_EEG.m with % IO_fit_opt = 1 and the corresponding model parameters. warning('off','all') ; %%%%%%%%%%%%%%%%%%%%%%%...
3ba7c7fcb5abe1f14a94d76e1e34b0df3a3e62e2226cfb37498db863bdfa6ece
MATLAB
40,158
1,080
% Intraparietal stimulation disrupts negative distractor effects in human multi-alternative decision-making % Kohl, C., Wong, M.X.M., Wong, J.J., Rushworth, M.F.S. & Chau, B.K.H. % eLife 2022 % Script to generate Figure 3 - figure supplement 2a clear all; close all; clc; % The following script requires VBA toolbox i...
6a1c5bb5eb4fb1f0650e03438413cb5af5b5cbf06acb89f40df381a80a633b96
MATLAB
40,697
1,110
%% Setup workspace %clear; cd /data/nil-bluearc/ances/millarp/fc_projects/analyses/; %% Load Datasets - volumetrics abneg_train_vol = load('reg_learner_data_volharm_abnegtrain_487_220506.mat').vol_features; abneg_test_vol = load('reg_learner_data_volharm_abnegtest_145_220506.mat').vol_features; abposs_vol = load('reg_...
9c59a4962308b86921ecaff68601b2a4eb0d8ecb96b0c13e8acdac7edb44437b
MATLAB
40,880
1,164
% % Author: Javier Lopez-Calderon & Steven Luck & Guanghui Zhang % Center for Mind and Brain % University of California, Davis, % Davis, CA % 2009 && 2023 %b8d3721ed219e65100184c6b95db209bb8d3721ed219e65100184c6b95db209b % % ERPLAB Toolbox % Copyright © 2007 The Regents of the University of California % Created by Jav...
b7264164cf13426709a58f4fcf3ba82b9846e175bbbb5606b680d599f2decf96
MATLAB
41,077
930
% Takes factor model computed for the task epoch, evaluates assembly activation profile of unseen data by casting another recording period into it % % Can take assemblies detected from task dataset either in trials cut-outs or as continuous FSCs % % Aleksander PF Domanski PhD UoB 2016 % aleks.domanski@bristol.ac...
1a62cf882f752b040e33f7ecda8c83f4a034502bad05ab510126ae267d69ffe0
MATLAB
41,149
867
%Author: Guanghui Zhang & Steven Luck %Center for Mind and Brain %University of California, Davis %Davis, CA, USA %Sep. 2023 % ERPLAB Studio function varargout = f_EEG_binepoch_GUI(varargin) global observe_EEGDAT; addlistener(observe_EEGDAT,'eeg_two_panels_change',@eeg_two_panels_change); addlistener(observe_EEGDAT,...
f890e1ce129a8da4b604d2832aa22082810cc1ea9521751b7dc1a7202ab02c6a
MATLAB
41,247
1,181
% PURPOSE: pop_plotERPwaviewer.m % plot ERP waveforms % % FORMAT: % % [ALLERP, erpcom] = pop_plotERPwaviewer(ALLERP,CURRENTPLOT,ERPsetArray,binArray, chanArray,'PLOTORG',PLOTORG,'GridposArray',GridposArray,'LabelsName',LabelsName, 'Blc', Blc,'Box',plotBox,'LineColor',LineColorspec,'LineStyle',LineStylespec,...
c3e37672cb5f45a0f1a3ef8d3b3aaf89a62bcaab45485526ae60e39c5f900b0a
MATLAB
41,306
888
%%This function is for Utilities. % *** This function is part of ERPLAB Studio Toolbox *** % Author: Guanghui Zhang & Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % Mar. 2024 function varargout = f_EEG_utilities_GUI(varargin) global observe_EEGDAT; addlistener(observe_EEGD...
661c3baa1e840459f65787e755c918231c20e007569ba43f89642cdef70593ed
MATLAB
41,504
1,012
% Selectivity % Override Q for faster execution deltaQnC = 1; qMaxnC = 120; Q = 0 : deltaQnC : qMaxnC; %% get active sites and list of fascicles within their reach [~, endo, ~, fascIdsByAs, activeSites] = import_nerve(direpi, direndo, ... direndowithelectrode, direlec, dirFEM, fFEM, asRange, 'hide_plots'); ...
6bd3962e3ee873f355896c2a6a7bdf8d50ec7ec59fea1f4a78f63078c87a9509
MATLAB
41,770
886
%%This function is to extract best file which is used to decode % *** This function is part of ERPLAB Studio Toolbox *** % Author: Guanghui Zhang & Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % Jun. 2024 function varargout = f_EEG_extr_best_GUI(varargin) global observe_EE...
f39eb105fa42699bb5704d642b4426bf06eb5c8809b8a7424a6ed5c6067daeac
MATLAB
42,317
890
%% This script produces subfigures/panels for the paper "Capacity Limits Lead to Information Bottlenecks for Ongoing Rapid Motor Behaviour" % Also produced are subfigures/panels for the associated technical report, % "Assessing Human Performance in Ongoing Rapid Motor Behaviours Tasks" % % In some cases, additional ...
56bb3aa9967aa0bfb05f56411de3bc4ba28c634ea20effb72d0fda65b72f608d
MATLAB
42,381
1,021
% DQ_Table_GUI % "ERPLAB Data Quality Measures - Table Viewer" - shows per-channel/per-time-window % Data Quality measures for an ERPset, with optional color-heatmap or outlier % highlighting. % % NOTE: Migrated from GUIDE (.fig) to a programmatic uifigure-based classdef % app. Original .fig archived outside ERPLAB. % ...
99a8c230ec73378e2e119d8840213bbdb02738a15c5b93170e617cafc88260e6
MATLAB
42,651
1,056
function varargout = Main(varargin) %MAIN MATLAB code file for Main.fig % MAIN, by itself, creates a new MAIN or raises the existing % singleton*. % % H = MAIN returns the handle to a new MAIN or the handle to % the existing singleton*. % % MAIN('Property','Value',...) creates a new MAIN using ...
f088d0d7e2162f12ac710359f223f63095070ca473f6a40c09df7070429b4e2f
MATLAB
42,765
1,098
% % Author: Javier Lopez-Calderon & Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % 2009 %b8d3721ed219e65100184c6b95db209bb8d3721ed219e65100184c6b95db209b % % ERPLAB Toolbox % Copyright © 2007 The Regents of the University of California % Created by Javier Lopez-Calderon and St...
c6c475ca942b41a7670ca80da423c605e525137f3d9134197a03de58af29cb72
MATLAB
42,773
825
%% %%%%%% PREAMBLE %%%%%% clear Delays_ = {'Short','Medium','Long'}; Delays__ = {'4s','8s','16s'}; Target = 'LONG'; tlimsAll = [-5 5]; tlimsShort=[-4 10]; tlimsMedium=[-8 10]; tlimsLong=[-16 10]; tlimsANOVA = [-2 2]; shift = 0; plotOnline = false; runCVEdecoder = true; ResampleTS = false; minTria...
8310dcf610657d83eb4dce15778b208f2b7d0c983683fd2b762b54c83cd87744
MATLAB
42,790
919
%Author: Guanghui ZHANG--zhang.guanghui@foxmail.com %Center for Mind and Brain %University of California, Davis %Davis, CA, USA %Feb. 2022 && Nov. 2023 % ERPLAB Studio function varargout = f_ERP_chanoperation_GUI(varargin) global observe_ERPDAT; addlistener(observe_ERPDAT,'Count_currentERP_change',@Count_currentERPCh...
cc7deaf09a53f9cd44eebb3f5686eb3fa4934503fd208571c43ea40943c68c4e
MATLAB
42,878
951
%Author: Guanghui ZHANG && Steve LUCK %Center for Mind and Brain %University of California, Davis %Davis, CA, USA %Sep. 2023 % ERPLAB Studio function varargout = f_EEG_chanoperation_GUI(varargin) global observe_EEGDAT; addlistener(observe_EEGDAT,'count_current_eeg_change',@count_current_eeg_change); addlistener(obs...
1b9d00fb429a3579d89771019bf2b28d96d3901bb12a5a9469d5297b41cc7873
MATLAB
43,097
871
%%This function is to assin eventlist to one specific bin % *** This function is part of ERPLAB Studio Toolbox *** % Author: Guanghui Zhang & Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % Sep. 2023 function varargout = f_EEG_eeglabtool_GUI(varargin) global observe_EEGDAT;...
e2b83cd4a5d905243920b74d7c5d0b6716804a791d182a7bd105f39fe278e29d
MATLAB
43,339
1,470
function varargout = mvpcviewerGUI(varargin) % MVPCVIEWERGUI MATLAB code for mvpcviewerGUI.fig % MVPCVIEWERGUI, by itself, creates a new MVPCVIEWERGUI or raises the existing % singleton*. % % H = MVPCVIEWERGUI returns the handle to a new MVPCVIEWERGUI or the handle to % the existing singleton*. % % ...
01254fc95febe621d5e95471ac400aa419f8bb152f2ae9149280d98c6d01173b
MATLAB
43,503
969
% Selectivity %% set up test environment clear_set_format; % set_test_env; %% get parameters param; % Override Q for faster execution deltaQnC = 0.1; qMaxnC = 10; Q = 0 : deltaQnC : qMaxnC; %% get active sites and list of fascicles within their reach [~, endo, ~, fascIdsByAs, activeSites] = import_n...
3606ebd38e377bcf8ff3390844b813d1fe61ddcd5fd239e97006a8b565cbebc3
MATLAB
43,562
1,025
% BESTset selector panel % % Author: Guanghui Zhang, David Garrett && Steven Luck % Center for Mind and Brain % University of California, Davis, % Davis, CA % 2022-2025 % ERPLAB Studio Toolbox % function varargout = f_decode_bestsetsGUI(varargin) global observe_DECODE; addlistener(observe_DECODE,'Count_currentbest_c...
f1c5487ac5e2e96c98c4468c150a8991f8a1f1974acea83aba2755c2667c642b
MATLAB
43,709
1,003
% neobinlister2_fast % % Additional functionality for events with time restriction % Events codes with time restriction can be specified in a way that they % are not preceded by certain event codes. E.g. one wants to have the % codes 21 and 23 within 200 to 2500 ms of the time-locking event, but % there should no...