sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
7350f9409cb3723657038fd29377e7c5bedf43dc1856b30c7477c6e0cdf3011f | MATLAB | 43,985 | 1,017 | classdef (ConstructOnLoad = false) logger < handle
%LOGGER Logger object that handles any command window or file logging.
%
% Logger provides a lot of functionalities and flexibility which
% a regular "fprintf" or "disp" message cannot such as log message
% formatting, logging to file, o... |
3170f2509f6a56d81b5618401c9a5a77d476708ac7f64a7b32b0a70e2ac382b6 | MATLAB | 44,097 | 1,168 | % PURPOSE : Plots ERP Scalp Maps
%
% FORMAT :
%
% pop_scalplot( ERP, binArray, latencyArray, parameters );
%
%
% INPUTS :
%
% ERP - input ERPset
% binArray - index(es) of bin(s) to plot. e.g [ 4:2:24]
% latencyArray - index(es) of latency(ies) to plot in ms (300 or -100:10:0 or 120 4... |
b681c1ed3fcbb0e8e2cf91d8aaeaeda7ddaf375d6278c59ac36b70bf7db941d3 | MATLAB | 44,248 | 1,115 | %% %%%%%% PREAMBLE %%%%%%
clear
close all
Target = 'LONG';
bw=0.05;
clear Av
warning ('off')
if ispc
pat = 'C:\Analysis\AssemblyAnalysis\raw\';
elseif ismac
% pat = '/Volumes/HDD2/DNMTP/raw/';
pat = '/Volumes/Akasa/Bristol/AssemblyAnalysis/raw/';
else
path(path,'/panfs/panasas01/phph/ad15419/MATLAB')
... |
03f9aebe5f53a896e609af95b6353e87ef31a0d5445aacd85a3aee72170abcfe | MATLAB | 45,723 | 1,396 | function varargout = eda_gui(varargin)
% EDA_GUI EDA Graphical User Interface (GUI)
%
% Formats:
% (1) EDA_GUI(eda, fs, edr)
%
% Required Input arguments:
% eda - 1-by-n vector of EDA samples
% fs - EDA sampling rate (Hz)
% edr - electrodermal response (EDR) structure array (see eda_edr.m)
% xconds... |
9394132dae23bb65bd6a3fb749b0034ea0b86ccc7c02d5c302259c3f8e72167d | MATLAB | 45,816 | 1,016 | %% CLASS kcGLM
%
% My own GPU-GLM interface.
% I don't recommend using a non-standard library for GLMs (like this one).
% I made this purely to line up nicely with my GMLM code, and to be very fast for evidence optimization.
%
%
% Package GMLM_dmc for dimensionality reduction of neural data.
%
% References
% ... |
c5249b4283ae919e8ff388e49b7690f50b2c2258e23cc6e43981b9b35f489f0b | MATLAB | 46,419 | 895 | %Author: Guanghui ZHANG
%Center for Mind and Brain
%University of California, Davis
%Davis, CA, USA
% Mar. 2024
% EEGLAB Studio
function varargout = f_EEG_resample_GUI(varargin)
global observe_EEGDAT;
addlistener(observe_EEGDAT,'eeg_two_panels_change',@eeg_two_panels_change);
addlistener(observe_EEGDAT,'count_curren... |
6b58ca0367badebba4674368d9c4425570b4d1777e92207f93fe709004ddb15d | MATLAB | 46,539 | 1,103 |
clear; iFile = 1;
p.target= 'LONG';
p.Delays_ = {'Short','Medium','Long'};
p.bw=0.05;
clear Av
warning ('off')
if ispc
p.pat = 'C:\Analysis\AssemblyAnalysis\raw\';
else ismac
p.pat = '/Volumes/HDD2/DNMTP/raw/';
end
cd(p.pat)
fileList=dir(['allTimestamps' filesep '*.mat']);
p.Areas = {'PFC',... |
3c50d6b1a1923d424663e31d78264ce24f3d62cf30491a88d3c8a2288ec4ffbf | MATLAB | 47,127 | 1,184 | %
% 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... |
c72cdf43e4527a8316b3d2599381217c7f64a0543b5d6598fc3d728a9cb69953 | MATLAB | 47,424 | 1,286 | % PURPOSE : Averages bin-epoched EEG dataset(s)
%
% FORMAT :
%
% ERP = pop_averager( ALLEEG , parameters )
%
% INPUTS :
%
% EEG or ALLEEG - input dataset
%
% The available parameters are as follows:
%
% 'DSindex' - dataset index(ices) when dataset(s) are contained within the ALLEEG structure.
... |
c56c01c766497fc3e58093a4ff892bc8069bab02a7697e12fd392ca32d26e5da | MATLAB | 48,104 | 819 | %%This function is to plot the panel for "Viewer properties".
% *** This function is part of ERPLAB Studio Toolbox ***
% Author: Guanghui Zhang & Steven Luck
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2022
function varargout = f_ERP_labelset_waveviewer_GUI(varargin)
global viewer_E... |
c4dd6aac705bd15e111ee94f98fed8a12d64e903ca7b3cf6d8ab858d2413face | MATLAB | 48,432 | 706 | function Human_Block_Pupil()
Rootaddress = '/Users/jlawlor3/Dropbox/Pilote12/';%'home/jennifer/Dropbox/Pilote12/'%'
load([Rootaddress 'ElectrophyStruct/20_07_03_DataBehaviorGLMlatestPsychophysicsPupilHuman.mat'])
load([Rootaddress 'ElectrophyStruct/20_07_03_DataGLMlatestPsychophysicsPupilHuman.mat'])
% general paramet... |
b4d96cd3f5d6942b44ea40f52fa614fe5883f8d216fd5d039a3f8ddf2eeddf74 | MATLAB | 48,687 | 1,112 | clear
Targets = {'SHORT','MEDIUM','LONG'};
Delays_ = {'Short','Medium','Long'};
tlimsShort=[-10 5];
tlimsMedium=[-10 5];
tlimsLong=[-10 5];
tlimsANOVA = [-4 4];
shift = 0;
plotOnline = false;
bw=0.05;
tbShort=tlimsShort(1):bw:tlimsShort(2);
tbMedium=tlimsMedium(1):bw:tlimsMedium(2);
tbLong=tlimsLong(1):bw:... |
37b97184af5d1147a7e166aef4ffe8236c14567b6886d3ec639be2d074e99f83 | MATLAB | 49,020 | 823 | function AnalyseMixedSelectivity_Batch()
%% %%%%%% PREAMBLE %%%%%%
clear
warning ('off')
if ispc
pat = 'C:\Analysis\AssemblyAnalysis\raw\';
else
path(path,'/panfs/panasas01/phph/ad15419/MATLAB')
home = getenv('HOME');
cd ([home '/MATLAB/MichalDataAna'])
pat = [home '/raw/'];
end
mkdir(... |
f8818813eaa9a0a4de40defafb00efda56e2de9d63fec17e9a7c951a18ee80d0 | MATLAB | 49,556 | 1,376 | % PURPOSE: Advanced Data Quality options dialog (custom aSME/aSD time windows,
% baseline noise measure, point-wise SEM).
%
% FORMAT:
%
% DQ_spec = avg_data_quality(old_DQ_spec, timelimits)
%
% old_DQ_spec - existing DQ specification struct, or [] for defaults
% timelimits - epoch limits in ms, [min max]
%
% ... |
3709bc0e5d96578b7f4f064f92595c86a4c7febf73eb971c5fc1503e3c26b606 | MATLAB | 49,676 | 766 | % Author: Kurt Winsler, David Garrett, Aaron Matthew Simmons, Guanghui Zhang, Andrew X Stewart,
% Javier Lopez-Calderon & Steven Luck
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2007-2025
% Version 13.10
%b8d3721ed219e65100184c6b95db209bb8d3721ed219e65100184c6b95db209b
%
% ER... |
558e26c4643fd0b7650efcaf88fafa7e2968860e429eada10c184bb34105fda4 | MATLAB | 49,698 | 1,247 | classdef network < handle
% Network object containing all layers, projections, nodes, and handling update
%
%
% Properties
% layerList - cell array of layers (objects) of model neurons
% projectionList - cell array of projections (objects) between layers of model
% neurons (each projection is an ob... |
9cc0001e166f8be8fa67a1092e0d5a7f8d108bcd6143b5ef4ec33bd924bcd134 | MATLAB | 49,821 | 1,066 | %% %%%%%% PREAMBLE %%%%%%
clear
Target = 'LONG';
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','Medium... |
e1c8b6d7f71f6c249629b7f61ee2efa07df0a63e62675178fc2b7c78a8b672b7 | MATLAB | 50,006 | 1,066 | %%
% 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'};
Target = 'LONG';
tlimsAll = [-5 5];
tlimsShort=[-5 6];
tlimsMedium=[-5 10];... |
3c3cf23a52f57bd53f0821bd6d3f52f63f2763ac4fbbec02349c46bc6d3c75c2 | MATLAB | 50,832 | 1,489 | %% %%%%%% 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... |
195850a2ba5d5f38b89004f08886aa065fc9999d083d9b08ad848953f920051d | MATLAB | 51,007 | 1,180 | clear
Targets = {'SHORT','MEDIUM','LONG'};
Delays_ = {'Short','Medium','Long'};
DelaysSecs = [4,8,16];
tlimsShort=[-10 5];
tlimsMedium=[-10 5];
tlimsLong=[-10 5];
tlimsANOVA = [-4 4];
shift = 0;
plotOnline = false;
bw=0.05;
tbShort=tlimsShort(1):bw:tlimsShort(2);
tbMedium=tlimsMedium(1):bw:tlimsMedium(2);
tbLong=tlims... |
31799785de3198377d6d57f0fe6266d5f49064052190e07ecabdc9abede9b082 | MATLAB | 51,084 | 1,246 | % Group analysis for single unit / assembly decoding capability, activation
% patterns for assemblies
%
% Aleksander PF Domanski PhD UoB 2016
% aleks.domanski@bristol.ac.uk
%% Preamble, get file list
clear all; close all
set(0,'DefaultFigureWindowStyle','docked')
flags.plotIndividualChanges = true;
if ispc
% ... |
18ddd9cf748bdd0db22afb70cc9cb29fbb1b1c6d390e9e7af774b651a904b951 | MATLAB | 52,090 | 925 | % BINLISTER IX 2010
%
% binlister2.m is the Matlab re-written version of the original Ecdbl from
% ERPSS. It takes a log file for a given set of data and a bin descriptor
% file containing specification defining the conditions & contigencies
% an event should satisfy to be included in a particular average ... |
961fa5ed69b5dd967e181c53731070ffc86db32e384f1b1e1888473a9393bfcc | MATLAB | 52,818 | 1,204 | function [ template ] = db_template(structureName)
% DB_TEMPLATE: Defines a template structure for all the Brainstorm data types.
%
% USAGE : [template] = db_template(structureName);
% @=============================================================================
% This function is part of the Brainstorm software:
% ... |
09a756e9c248260372c99b467ec1fb4c6cd4773c68a7460090936eb254982a84 | MATLAB | 53,391 | 997 | %%This function is to plot the panel for "Viewer properties".
% *** This function is part of ERPLAB Studio Toolbox ***
% Author: Guanghui Zhang & Steven Luck
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2022 && 2023
function varargout = f_ERP_otherset_waveviewer_GUI(varargin)
global ... |
074fa644b3960eb917268b2fc3e924954ae001bb4adfdf107bcd4cc4c7a90b0b | MATLAB | 54,400 | 1,068 | %%This function is to do the works about ICA in EGELAB
% *** 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_eeglabica_GUI(varargin)
global observe_EEGDAT;
addl... |
ee7566e60435a962873c966c9649ad85107c5161431a4118fdfa64ba05efbcb4 | MATLAB | 54,562 | 1,533 | %
% 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... |
4909cd66cbc60d4e7c66c149ab21bbe991c162f042b4cb6f5dd8b76ed53780aa | MATLAB | 54,944 | 1,282 | % ZIP_LOAD Load and format c3d files from zip archives created with
% Dexterit-E 3.0 and higher.
%
% DATA = ZIP_LOAD opens all data files (.ZIP files) created by Dexterit-E
% 3.0 and higher that are in the currect directory and outputs the data
% into the structure DATA. Each element of DATA corresponds ... |
9fbbef2973af251f650c916f705ba5cb20b55e695a2b82cc9272f3b82d44b7ce | MATLAB | 55,497 | 1,064 | %% %%%%%% 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];
shift = 0;
plotOnline = false;
bw = 0.05;
Nbs = 500;
tbShort=tlimsShort(1):bw:tlimsShort(2);
tbMedium=tli... |
0201c894e9bca08e4f419e8009a265ad176c319e94831a46db6ad4331a701c8c | MATLAB | 55,604 | 1,477 | %This function is to plot ERP 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
% 2022 -2024
function f_redrawERP()
global observe_ERPDAT;
global EStudio_gui_erp_totl;
FontSizeDefault = f_get_defaul... |
bf7ceb4d91c60af28dcb7e3694e5bb90fa112eb97d7c5f91169fd24fa97c3dfe | MATLAB | 55,967 | 1,153 | function analyzetpstack(command, thestackname, thefig)
% ANALYZETPSTACK - Analyze two-photon stack
%
% ANALYZETPSTACK(EXPDIRNAME, STACKNAME)
%
% Opens a window for analyzing a stack of two-photon
% time series.
%
% EXPDIRNAME is the name of the day's directory.
%
% STACKNAME is a string containing the name of... |
d4e263866c17e30985ad839b304586fbdcd75eb43d9847923bff19ab57cbb0c2 | MATLAB | 56,928 | 1,578 | % PURPOSE: subroutine for pop_plotERPwaveiwer.m
% plot ERP waveforms
%
% FORMAT:
%
% f_ploterpserpviewer(ALLERP,qCURRENTPLOT, qPLOTORG,qbinArray,qchanArray,qGridposArray,plotBox,qBlc,qLineColorspec,qLineStylespec,qLineMarkerspec,qLineWidthspec,...
% qLegendName,qLegendFont,qLegendFontsize,qCBELabels,qL... |
14df49b556838210ac5180611c7465cc2ed92ea80250c09daebf2e5cc3e57628 | MATLAB | 56,981 | 1,265 | % binlister_smart
%
% Unified, smarter binlister engine that replaces neobinlister2
% and neobinlister2_fast with a single function.
%
% The function detects the complexity of the bin descriptor file (BDF) at
% startup and selects the appropriate processing path:
%
% FAST PATH (more simple cases):
% - Pre-fil... |
df5fc01dcea3bb0421b2b07be6d2932de62b63cc8b69f42b41509f583e3ba3a3 | MATLAB | 57,910 | 839 | function Human_Pupil_Behavior()
Rootaddress = '/Users/jlawlor3/Dropbox/Pilote12/';
load([Rootaddress 'ElectrophyStruct/20_07_03_DataBehaviorGLMlatestPsychophysicsPupilHuman.mat'])
load([Rootaddress 'ElectrophyStruct/20_07_03_DataGLMlatestPsychophysicsPupilHuman.mat'])
% general parameters
BinSize = data(1).BinSize;... |
bc30e36a4792d58248b05f012723e24317e6b55334d23a9aef3917ea3accadda | MATLAB | 60,377 | 1,070 | %%This function is to plot the panel for "Viewer properties".
% *** This function is part of ERPLAB Studio Toolbox ***
% Author: Guanghui Zhang & Steven Luck
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2022 && Nov. 2023
function varargout = f_ERP_lineset_waveviewer_GUI(varargin)
glo... |
e0edf7c8ec2271e72a9264f1e3f7ad68f45a785d7b7e1bd7fe943e70859f12ae | MATLAB | 61,107 | 1,361 | %%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
% 2023
function varargout = f_EEG_events_GUI(varargin)
global observe_EEGDAT;
addlistener(observe_EEGD... |
21c1929a3c62d5509a1bd7ca130b6c390a4670bcd17eddde477666a7b6bbb27a | MATLAB | 61,667 | 2,109 | function varargout = Appetitive_2AFC_GUI(varargin)
% GUI for pure tone detection task
%
% Written by ML Caras Jun 10, 2015
% Modified by JD Yao Jan 27, 2016
% THIS IS ON THE REAL TIME PLOTTING BRANCH
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
... |
d3473cd4ca898282452e00c672536b8a5e920d96b3cf4250ceb91999ce2e0ca9 | MATLAB | 62,064 | 2,167 | function varargout = Appetitive_detection_GUI(varargin)
% GUI for appetitive detection task
%
%To do:
%Add trial order control (ascending, descending, shuffled)
%Add bandwidth cutoffs
%
%
%Written by ML Caras Jun 10, 2015
%Updated Apr 26, 2016
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State ... |
fb234ac081fb2ce1f1a38ed16a4192adf2ba25f166f95839972fcc472f3f6479 | MATLAB | 62,273 | 1,570 | % Author: Javier Lopez-Calderon % Sam London
% 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 Steve... |
81ed9e01e1db689cd99e7350376b8684de3626dfa845dde75c6387f00b221769 | MATLAB | 62,452 | 1,483 | % ERPset selector panel
%
% Author: Guanghui Zhang, David Garrett, & Steven Luck
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2022-2025
% ERPLAB Toolbox
%
function varargout = f_ERP_erpsetsGUI(varargin)
global observe_ERPDAT;
global EStudio_gui_erp_totl;
addlistener(observe_ERPDAT,'Co... |
6a26357281aee2e04bcc5956c3a0c93d6011c93285234b1d26656ea3c98c7e0d | MATLAB | 62,665 | 1,389 | function [all_params] = TSL_fit_on_ratings( )
% Compute the fit of different models (with different parameters) for the
% behavioral ratings.
%
% ======================================================================= %
% ===*=== Parameters
compute_data = 0 ; % otherwise, reload the fits if data prev... |
e8bd27e9667cf2f678802a719ba16119ceb6d69fe0652730971d4a237361b7e6 | MATLAB | 62,801 | 2,179 | function varargout = Appetitive_detection_temporalintegration_GUI(varargin)
% GUI for appetitive detection task
%
%To do:
%Add trial order control (ascending, descending, shuffled)
%Add bandwidth cutoffs
%
%
%Written by ML Caras Jun 10, 2015
%Updated Apr 26, 2016
% Begin initialization code - DO NOT EDIT
gui_Singl... |
a4be2d83a4aa5ae16dcbd7ed4edaaac204dbb4784d6de1d99d3eefdf2b91c412 | MATLAB | 63,352 | 1,418 | function analyzetpstack(command, thestackname, thefig)
% ANALYZETPSTACK - Analyze two-photon stack
%
% ANALYZETPSTACK(EXPDIRNAME, STACKNAME)
%
% Opens a window for analyzing a stack of two-photon
% time series.
%
% EXPDIRNAME is the name of the day's directory.
%
% STACKNAME is a string containing the name of... |
9856c90c1146c794fce0877168afd2bb36791c0bb9ee9ea835d0dd7a61fa4d3d | MATLAB | 64,585 | 1,344 |
load ~/'Dropbox (HHMI)'/matlab-common-init.mat
% load ~/'Dropbox (HHMI)'/run.mat
% load ~/'Dropbox (HHMI)'/cued-da-run.mat
%% LearnDA simulations scripts for comparing Cntrl (various inits) w/ StimLick+ StimLick- Stim+Lick+
global pt_on;
pt_on = 1;
% Code to run simulation and display key output measures:
num_sims =... |
57c6112588def055ec5f0a332e3b5a83f343ffa0bdf7a335733e7ab1fd3205e2 | MATLAB | 65,179 | 1,123 | % PURPOSE: subroutine for pop_binlister
%
% binlister2.m is the Matlab re-written version of the original Ecdbl from
% ERPSS. It takes a log file for a given set of data and a bin descriptor
% file containing specification defining the conditions & contigencies
% an event should satisfy to be included in a ... |
7ae965dff0723e89d7dcba3175a93bc6b5f6310bc789e6c6a8e753c7692d5c52 | MATLAB | 65,805 | 1,419 | %Author: Guanghui ZHANG
%Center for Mind and Brain
%University of California, Davis
%Davis, CA, USA
%Feb. 2022
% ERPLAB Studio
function varargout = f_ERP_filtering_GUI(varargin)
global observe_ERPDAT;
addlistener(observe_ERPDAT,'Count_currentERP_change',@Count_currentERPChanged);
addlistener(observe_ERPDAT,'erp_betw... |
72c3d94e8989fcec1bd877642edd5183671caa75c86d8f5aa0cba65ae517f2f0 | MATLAB | 67,729 | 1,736 | function [layout, cfg] = bst_artifactscantool_prepare_layout(cfg, data)
% FT_PREPARE_LAYOUT loads or creates a 2-D layout of the channel locations. This
% layout is required for plotting the topographical distribution of the potential or
% field distribution, or for plotting timecourses in a topographical arrangement.... |
ced4862dfe799a5a57040a397119fc6d02698f8f7387d19ec5f8d39884ce7b57 | MATLAB | 68,417 | 1,811 | %% RNN_dudlab_master_learnDA
% High level script to control the construction and training of RNNs
% Current ideas about future development:
% 1) DA transients would be estimated with licking state transition and sensory responses. Try computing these form the network
% 2) Would like to be able to modulate the learnin... |
b0196470c2b5f094cea35477f0666b936228df9e9f538668d7c77a19d3a071fb | MATLAB | 68,819 | 1,518 | %Author: Guanghui ZHANG & Steve LUCK
%Center for Mind and Brain
%University of California, Davis
%Davis, CA, USA
%Sep. 2023 && 2024
% ERPLAB Studio
function varargout = f_EEG_filtering_GUI(varargin)
global observe_EEGDAT;
global EStudio_gui_erp_totl;
addlistener(observe_EEGDAT,'count_current_eeg_change',@count_curre... |
deed1a9280de7925f50e4ff71bec1a4371ee6e72caaffed42d632a37f0667f18 | MATLAB | 69,238 | 1,401 | %% %%%%%% PREAMBLE %%%%%%
clear
Delays_ = {'Delay_2','Delay_4','Delay_6','Delay_8',};
Delays__ = {'2s','4s','6s','8s'};
Target = 'MEDIUM';
tlimsAll = [-5 5];
tlimsDelay_2=[-2 10];
tlimsDelay_4=[-4 10];
tlimsDelay_6=[-6 10];
tlimsDelay_8=[-8 10];
tlimsANOVA = [-1 1];
shift = 0;
plotOnline = false;
... |
d5ad2f9a90fd92b03be07788d8c8218bbb6d6c6ffda17950faf064bf5b7d9134 | MATLAB | 70,006 | 1,429 | function analyzetpstack(command, thestackname, thefig)
% ANALYZETPSTACK - Analyze two-photon stack
%
% ANALYZETPSTACK(EXPDIRNAME, STACKNAME)
%
% Opens a window for analyzing a stack of two-photon
% time series.
%
% EXPDIRNAME is the name of the day's directory.
%
% STACKNAME is a string containing the name of... |
67c169184e658c85c6f14d46d6f5603182e5321d25252a223f92210cff11b73a | MATLAB | 70,970 | 2,038 | %PURPOSE : Plot EEG waves within one axes as EEGLAB
% Author: Guanghui Zhang & Steve J. Luck
% Center for Mind and Brain
% University of California, Davis
% Davis, CA
% 2023
function f_redrawEEG_Wave_Viewer(Axesreset)
global observe_EEGDAT;
global EStudio_gui_erp_totl;%%Global variable
addlistener(observe_EEGDAT,... |
54c9f3a3ce3ce1616c055f5660aebd4cbcb6d49cd281a472ff3a8baaa7872b0a | MATLAB | 71,827 | 1,413 | %%This function is used to set the plotting wave for 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
% Agust 2023 && 2024
function varargout = f_EEG_Plot_setting_GUI(varargin)
global obser... |
da3076ffd3b1b8f82e166a9726354cd721f37407d3b77bce591cf261d75c938d | MATLAB | 71,969 | 1,695 | % topoplot() - plot a topographic map of a scalp data field in a 2-D circular view
% (looking down at the top of the head) using interpolation on a fine
% cartesian grid. Can also show specified channnel location(s), or return
% an interpolated value at an arbitrary scalp locat... |
ab7f0b05e633dd2c0a6710b6bccfdc2536e38f221cd353e2b88ce17a3f7830dd | MATLAB | 71,989 | 2,396 | function varargout = Appetitive_SameDifferentTwoInterval_GUI(varargin)
% GUI for pure tone detection task
%
% Written by ML Caras Jun 10, 2015
% Edited by JD Yao Feb 16, 2016 for Same Different Task
% THIS IS ON THE REAL TIME PLOTTING BRANCH
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State =... |
4537178245436c14b751e96328980e984605f9dd577390f61dc1e88ff1a8ab6a | MATLAB | 73,747 | 1,644 | % EEG sets selector panel
%
% Author: Guanghui ZHANG & Steve Luck
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2023 && 2024
% ERPLAB Studio Toolbox
%
function varargout = f_EEG_eeg_sets_GUI(varargin)
global observe_EEGDAT;
global EStudio_gui_erp_totl;
addlistener(observe_EEGDAT,'cou... |
434b103de835b2a30331a225c9046548502a8342b53caf52a141fce1064f9b49 | MATLAB | 74,101 | 1,230 | % BINLISTER IX 2010
%
% binlister2.m is the Matlab re-written version of the original Ecdbl from
% ERPSS. It takes a log file for a given set of data and a bin descriptor
% file containing specification defining the conditions & contigencies
% an event should satisfy to be included in a particular average ... |
101b9d0ebbceb4f1b22f17e91501a03da4715f5cedfc4abcabe810929e42d029 | MATLAB | 74,122 | 1,522 | %% %%%%%% PREAMBLE %%%%%%
clear
Delays_ = {'Short','Medium','Long'};
Delays__ = {'4s','8s','16s'};
Target = 'LONG';
AssemblyChoice = 2;
% 1 - lever press cutouts
% 2 - trial cutouts (cue to reward inclusive)
% 3 - continuous time
tlimsAll = [-5 5];
tlimsShort=[-4 10];
tlimsMedium=[-8 10];
tlimsLong=[-1... |
38fadefc307627daa61af5ccc603e027ac66643edf67caaead488cc580bfde09 | MATLAB | 74,180 | 2,062 | %PURPOSE : Plot EPR waves within one axes
% Author: Guanghui Zhang & Steve J. Luck
% Center for Mind and Brain
% University of California, Davis
% Davis, CA
% 2022 & 2023
function f_redrawERP_viewer_test()
global viewer_ERPDAT;
global gui_erp_waviewer;
addlistener(viewer_ERPDAT,'v_messg_change',@V_messg_change);
Fo... |
f78b93db1a211f0cfd41aceb175101524b149271d634c2e7f93946e1a3c605f7 | MATLAB | 74,819 | 1,664 | %%% ERPLAB Studio: ERO meansurement panel
%Author: Guanghui ZHANG
%Center for Mind and Brain
% University of California, Davis
%Davis, CA
% 2022 & Nov. 2023
function varargout = f_ERP_measurement_GUI(varargin)
global observe_ERPDAT;
addlistener(observe_ERPDAT,'Count_currentERP_change',@Count_currentERP_change);
ad... |
c8d3a2b028a29c406f3a992ef4f49123b954a6be7c6663a5eaa844d1540ec82b | MATLAB | 75,384 | 1,527 | %% %%%%%% PREAMBLE %%%%%%
clear
Delays_ = {'Delay_0'};
Delays__ = {'0s'};
Target = 'SHORT';
tlimsAll = [-5 5];
tlimsDelay_0=[-2 2];
tlimsShort=[-4 10];
tlimsANOVA = [-2 2];
shift = 0;
plotOnline = false;
runCVEdecoder = false;
bw=0.05;
Nbs = 100;
tbDelay_0=tlimsDelay_0(1):bw:tlimsDelay_0(2);
... |
9cf7f1c6f79692cb872a464c8eecb28ad904a405fa7f26b70ec10644ddac2e6a | MATLAB | 76,793 | 1,566 | %% %%%%%% PREAMBLE %%%%%%
clear
Delays_ = {'Delay_2','Delay_4','Delay_6','Delay_8',};
Delays__ = {'2s','4s','6s','8s'};
Target = 'MEDIUM';
AssemblyChoice = 2;
% 1 - lever press cutouts
% 2 - trial cutouts (cue to reward inclusive)
% 3 - continuous time
tlimsAll = [-5 5];
tlimsDelay_2=[-2 10];
tlimsDelay... |
e5b06b64a561d48f30c98563dffdfbd707652c8e862993e64711d35abdc1fa7f | MATLAB | 77,052 | 1,568 | function analyzetpstack(command, thestackname, thefig)
% ANALYZETPSTACK - Analyze two-photon stack
%
% ANALYZETPSTACK(EXPDIRNAME, STACKNAME)
%
% Opens a window for analyzing a stack of two-photon
% time series.
%
% EXPDIRNAME is the name of the day's directory.
%
% STACKNAME is a string containing the name of... |
e3b90d04d1065a4e02f48833143ae32603d81492ae276a2b938443b81198f9d7 | MATLAB | 77,654 | 1,536 | %% %%%%%% 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;
bw=0.05;
Nbs = 100;
tbSh... |
5adffa9cd348a6917c40747c6a42075abc01b1c8f81cdaefa8177c50fadb594f | MATLAB | 79,466 | 2,195 | %
% Author: Javier Lopez-Calderon
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2012
%b8d3721ed219e65100184c6b95db209bb8d3721ed219e65100184c6b95db209b
%
% ERPLAB Toolbox
% Copyright © 2007 The Regents of the University of California
% Created by Javier Lopez-Calderon and Steven Luck
% Ce... |
aa90a69a0d33c73733a6ab4786f12ed1e8caaaa15aa4f6f98b7f6cae4fe66b19 | MATLAB | 80,558 | 1,476 | %%This function is used to setting the parameters for plotting the waveform for the selected MVPCsets
% *** This function is part of MVPCLAB Studio Toolbox ***
% Author: Guanghui Zhang
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2024
function varargout = f_MVPCset_plot_setting_GUI(va... |
2a1093a671183797bbfda59dd6c698d4dc00a3c01971e49124a2b2d31f8f8ac1 | MATLAB | 81,203 | 1,895 | % 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
tic
clear all
close all
P.target = 'Task';
% P.rat = 'JaroslawLONG1'; ... |
dc176298704dfb77e268eb1e46f2e8177e16550addd8fea61a45b89d549129ed | MATLAB | 81,423 | 2,239 | %
% Author: Javier Lopez-Calderon
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2012
%b8d3721ed219e65100184c6b95db209bb8d3721ed219e65100184c6b95db209b
%
% ERPLAB Toolbox
% Copyright � 2007 The Regents of the University of California
% Created by Javier Lopez-Calderon and Steven Luck
% Ce... |
7bb7c3d05dda1684f088808485585379777317e995d01771d9dcd61a2dec23d1 | MATLAB | 82,678 | 924 | % To plot the data, first load all the .mat data files in this folder.
%% Distribution of all peristimulus EPSCs
binInterval = 1; % in ms
eventBinEdges = -tBefore*1000:binInterval:tAfter*1000;
fHist = figure; subplot(2,1,1); hold on
histogram(eventTimesAll,eventBinEdges)
xlabel('Time (ms) relative to pulse onset'); ... |
7f4d145b51ff8cce04f4c6cf728020eece925fc821f85d88899ce7ee15b8a60f | MATLAB | 85,042 | 2,607 | function varargout = f_ERP_simulation_GUI(varargin)
% F_ERP_SIMULATION_GUI MATLAB code for f_ERP_simulation_GUI.fig
% F_ERP_SIMULATION_GUI, by itself, creates a new F_ERP_SIMULATION_GUI or raises the existing
% singleton*.
%
% H = F_ERP_SIMULATION_GUI returns the handle to a new F_ERP_SIMULATION_GUI or t... |
c634ab6c21366f428ea2d40946d632a735452b08a8b943912bc05bc5a49bca85 | MATLAB | 88,032 | 2,071 | %ve_eegplot() - Scroll (horizontally and/or vertically) through multichannel data.
% Allows vertical scrolling through channels and manual marking
% and unmarking of data stretches or epochs for rejection.
% Usage:
% >> ve_eegplot(data, 'key1', value1 ...); % use interface buttons, e... |
cce6661c7a90e0f255638c3ea250e566fbfa55f323536802040367689138de46 | MATLAB | 88,406 | 2,230 | % %%%%%% 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 c... |
f06981b9a191ea95a605fba6804e4ecdc036b7476e79f4a724e02b9231956a93 | MATLAB | 89,109 | 1,583 | %%This function is to interpolate channels for 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_interpolate_chan_epoch_GUI(varargin)
global obse... |
233005a5254809077b5c62fbe19bcd13180a695cb6cb2a8ab855e7b6ecd251f1 | MATLAB | 90,743 | 1,818 | function [all_TPs_str,indices_TP] = TSL_analyze_EEG(varargin)
% Analyze EEG data of the experiments and fit learning models.
% Data are saved and can be relaoded and plotted in other functions (such
% as TSL_plot_avg_EEG.m, TSL_plot_IO_fit.m, etc).
%close all ;
% ============================================... |
94f4280868d7180419998cd412dc77931180432a6fe970582c0b01168f1984ae | MATLAB | 91,062 | 1,815 | %Author: Guanghui ZHANG--zhang.guanghui@foxmail.com
%Center for Mind and Brain
%University of California, Davis
%Davis, CA, USA
%Feb. 2022 && 2023 Oct.
% ERPLAB Studio
function varargout = f_ERP_plot_scalp_GUI(varargin)
global observe_ERPDAT;
addlistener(observe_ERPDAT,'Count_currentERP_change',@Count_currentERPChang... |
2dee38f2a28aa56f86b092b8e70225837b202fdeb766c56732c64978ca621336 | MATLAB | 92,997 | 2,247 | %% %%%%%% 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 = [-5 5];
tbAll = tlimsAll(1):bw:tlimsAll(2);%0:bw:2*sum(ab... |
011133574d91e69cb573ad62a9dc67cd6e3bd8aa6de8b124f284fbda6aae0334 | MATLAB | 93,560 | 2,807 | function dragzoom(varargin)
%DRAGZOOM Drag and zoom tool
%
% Description:
% DRAGZOOM allows you to interactively manage the axes in figure.
% This simple function for usable draging and zooming of axes, using the
% mouse and the keyboard shortcuts.
%
% - Supported 2D-Plots, 3D-plots, semilogx-plots, semilogy-p... |
dd78c8930d5d300243d3c75bc9266e92192b50ab505b28c59b66f2141349593d | MATLAB | 94,640 | 2,476 | % - This function is part of ERPLAB Toolbox -
%
% 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 Universit... |
4f8d1f81666a34d0b2a4b09437bf079ab773be639f8e15825f65f33ecd18567e | MATLAB | 96,226 | 2,305 | classdef StructureObj < handle
%LOCATIONOBJ - Manages 3D information for one structurse
properties
%Locations used to draw this object
Structure = []
Verts = [];
Normals = [];
Faces = [];
FaceNormals = [];
MapIDToIndex = [];
%N... |
f22bbe62535a2252f90bdc44a89d168a785af97552f206ca999f274c639d9f6a | MATLAB | 98,708 | 1,481 | function [lambda, xFcn, yFcn, zFcn] = colorMatchFcn(formulary)
%colorMatchFcn Popular color matching functions.
%
% [LAMBDA, XFCN, YFCN, ZFCN] = colorMatchFcn(FORMULARY) returns the
% color matching functions XFCN, YFCN, and ZFCN at each wavelength in
% the vector LAMBDA. FORMULARY is a string specifyin... |
0e1305e1eccbccc1a74edc40505c9a80fa5f41296bb659387f1e07223ac14ef8 | MATLAB | 99,431 | 2,515 | 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 vs flanking periods - epoch s... |
7e6057b937b5cf14a35f8f359d1f5b93ab78118d32d7ac3c567d6f660714e765 | MATLAB | 100,148 | 2,293 | %% %%%%%% PREAMBLE %%%%%%
clear
TaskOnly = true;
plotOnline = false;
useDiscreteActTimes = true;
Epochs = {'PreSleep','Task','PostSleep'};
Epoch_ = 'Task';
Target = 'LONG';
warning ('off')
if ispc
pat = 'C:\Analysis\AssemblyAnalysis\raw\';
addpath(genpath('C:\Users\ad15419\Dropbox\MATLAB\PC MAT... |
c6897206c79369fd9fcc8f5fd21f75e1b5974916694c0f9d74d1f86a8080a312 | MATLAB | 106,295 | 2,975 | %
% 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... |
81ef79c642d1cf7e1f0a168dcd230b66c79d715cd86b25372acd592b4a01e993 | MATLAB | 108,868 | 3,042 | %
% Author: Javier Lopez-Calderon & Steven Luck & Guanghui ZHANG
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2009 %2022
%b8d3721ed219e65100184c6b95db209bb8d3721ed219e65100184c6b95db209b
%
% ERPLAB Toolbox
% Copyright © 2007 The Regents of the University of California
% Created by Javi... |
9d1fe8a54d89d412c036909b94f93891df6d21ebbf228c773e74b5d62270813b | MATLAB | 109,359 | 1,954 | %%This function is to detect artifacts 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_conus_GUI(varargin)
global observe_EEG... |
8d6d90fd74c80df0200c07a796e151d2dfb51d652a6744ca5d8a97eb6a30709f | MATLAB | 113,423 | 2,329 | %% CLASS GMLM
% Generalized multilinear modeling for spike trains of a population of neurons.
% The log rate depends on a sum tensor groups of regressors (plus a pure linear term and a constrant for each neuron)
% Each tensor group is a multilinear function. The coefficients and regressors both have a CP decompositi... |
22051d7d737cbe2e3985bd3f8cfe0e60b14da2ba3332da0eeb937aed9949ec2f | MATLAB | 114,439 | 2,670 | %
% 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... |
c72f54dc23104464f161505c4587be7cd876417ebec824c38f55f39f684273de | MATLAB | 115,633 | 2,376 | %%This function is used to setting the parameters for plotting the waveform for the selected ERPsets
% *** This function is part of ERPLAB Studio Toolbox ***
% Author: Guanghui Zhang
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2022 & Nov 2023
function varargout = f_ERP_plot_setting_G... |
3f6b91a5cd3fa17d63e5706b1f466df5c28f3f293b8769c0155820ed9ffdaf97 | MATLAB | 116,799 | 3,070 | function varargout = f_erp_viewerGUI(varargin)
% F_ERP_VIEWERGUI MATLAB code for f_erp_viewerGUI.fig
% F_ERP_VIEWERGUI, by itself, creates a new F_ERP_VIEWERGUI or raises the existing
% singleton*.
%
% H = F_ERP_VIEWERGUI returns the handle to a new F_ERP_VIEWERGUI or the handle to
% the existing si... |
ec0265350475fba3ef54a651666ac4b8e18ba5ee1ee16698930c3dc8ad401ad2 | MATLAB | 124,323 | 2,168 | %%This function is to detect artifacts for 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 && Jan. 2024
function varargout = f_EEG_arf_det_epoch_GUI(varargin)
global o... |
0beabc54790e4d9080d47a1aca2b69713ebf012ff4eedd3b79f4d88c747591ab | MATLAB | 131,569 | 3,338 |
%%
MAX_COMMUNITY_ATTEMPTS = 10;
USE_PHASE_VELOCITY = 2*pi/100;
SMOOTH_PHASE = 2*pi/20;
END_SEGMENTS = 0;%round(SMOOTH_PHASE/USE_PHASE_VELOCITY);
[eigenVectors, eigenValues] = eigs(asymmetricProbabilities, 10);
eigenValues = diag(eigenValues);
[~, bestComplexEigenVector] = max((abs(imag(eigenValues)) > 0) .* abs(eig... |
ed2459439824d7a8d87bd31d9eb7cdbc3563dbf29056b1f47acd4d48e3634476 | MATLAB | 140,379 | 2,668 | % MVPA panel for EStudio
%
% Author: Guanghui ZHANG && Steven Luck
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2024 & 2025
% ERPLAB Studio Toolbox
%
function varargout = f_decode_MVPA_GUI(varargin)
global observe_DECODE;
addlistener(observe_DECODE,'Count_currentbest_change',@Count_c... |
e62d9f8ab33a71d229912361dc40631ca2e0f81402556b71e364e32af154036c | MATLAB | 144,708 | 2,750 | %Author: Guanghui ZHANG--zhang.guanghui@foxmail.com
%Center for Mind and Brain
%University of California, Davis
%Davis, CA, USA
%Mar. 2023
% ERPLAB Studio
function varargout = f_ERP_simulation_panel(varargin)
% global gui_erp_simulation;
global observe_ERPDAT;
global EStudio_gui_erp_totl;
addlistener(observe_ERPDAT,... |
b8d2b38aa9c8b28bf05848a920541c7a070e6437b70ea32bd06d428dc78b3207 | MATLAB | 165,906 | 3,885 | % decodingGUI
% Decoding options dialog for ERPLAB Classic, launched from pop_decoding.
%
% NOTE: This file was migrated from MATLAB App Designer (.mlapp) format to a
% plain .m classdef file to allow version control and code editing. The
% original decodingGUI.mlapp has been archived outside the ERPLAB directory.
% An... |
cbbcf231e7ce1dd77bc0f0bc1d1b1732142893dd159860e94ce542d244ec1bcb | MATLAB | 170,254 | 3,880 | %% %%%%%% PREAMBLE %%%%%%
clear
Delays_ = {'Short','Medium','Long'};
Delays__ = {'4s','8s','16s'};
Areas = {'PFC','HP','Joint'};
color_={'b','r','g'};
Target = 'LONG';
AssemblyChoice = 2;
% 1 - lever press cutouts
% 2 - trial cutouts (cue to reward inclusive)
% 3 - continuous time
tlimsAll = [-5 5];
tl... |
1f2c5e4f71af1ecbafb7fc4a82547390414c6bf3f33cc0d8b0b06e7cf294dad2 | MATLAB | 172,644 | 3,320 | %%This function is to plot the panel for "Viewer properties".
% *** This function is part of ERPLAB Studio Toolbox ***
% Author: Guanghui Zhang & Steven Luck
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2022
function varargout = f_ERP_timeampscal_waveviewer_GUI(varargin)
global viewer... |
3170126c34d636c04c860e3e4fa249287f16a6171c069ea095b4b7bc7fad09e4 | MATLAB | 175,126 | 3,318 | %%This function is to plot the panel for "plot organization".
% *** This function is part of ERPLAB Studio Toolbox ***
% Author: Guanghui Zhang & Steven Luck
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2022 && Nov. 2023
function varargout = f_ERP_plotorg_waveviewer_GUI(varargin)
glo... |
42d8c8d13dffdca7d0d9b4291dfb687396dfea644a540015898aae5231e84bbb | MATLAB | 200,000 | 44 | function [trainedModel, validationRMSE, validationPredictions] = trainRegressionModel(trainingData)
% [trainedModel, validationRMSE] = trainRegressionModel(trainingData)
% Returns a trained regression model and its RMSE. This code recreates the
% model trained in Regression Learner app. Use the generated code to
% auto... |
a99bd7da6b310af993410c4aaf2411bdfacf9649e80c08749f153bd66ee66f35 | MATLAB | 200,000 | 4,744 | %% %%%%%% 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 = [-5 5];
tbAll = tlimsAll(1):bw:tlimsAll(2);%0:bw:2*sum(abs(... |
f5e0f787fbef8ef2ac6f265292025dc45a76a726c56a0f42cd00054b05ff3ece | MATLAB | 200,000 | 3,805 | %
% View and editing tools for GIfTI objects. Provides several tools, including
% morping, cutting, navigation and overlays.
%
% giftiTools(input, toolConfig)
%
% input = A gifti object, surface struct or existing patch handle in which the gifti is
% plotted. If a patch handle is given then the... |
f6299ba26f3482e8884ee86849c535a836ea8487baada0281cacb129538c1fc2 | MATLAB | 200,000 | 4,534 | %% %%%%%% PREAMBLE %%%%%%
clear
Delays_ = {'Short','Medium','Long'};
Delays__ = {'4s','8s','16s'};
Target = 'LONG';
shift = 0;
minTrialCount = 3;
subsampleTrials = false;
nDrawsTrials = 50;
bw=0.05;
tlimsAll = [-5 5];
tbAll = tlimsAll(1):bw:tlimsAll(2);%0:bw:2*sum(abs(tlimsAll));
clear Av
warning (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.