sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
44f4d8d76ed2fef49a4d41018b7fe04fe14f6b6cd09c0e362e6613afd9d06c43 | MATLAB | 21,405 | 464 | % Display (gifti) surface
%
% viewgii( surf1, [surf2], ..., pointMatrix1, lineMatrix1, ...)
%
% surf# = surface(s) to display. Either a surface struct (e.g. gifti), handle or filename can be passed
%
%
% Optional arguments:
%
% <pointMatrix#> = Nx3 matrix of p... |
2950843abb1983ff64213f7dcb145ab095ff272bf52781b2a844805b8ef15d4c | MATLAB | 21,421 | 611 | % PURPOSE : Export confusion matricies from MVPC data
%
% FORMAT :
%
% >> pop_exportconfusions(ALLMVPC,MVPCindex, 'Times',tp,'Type',meas,...
%'fileNames',fileNames,'decimalNum',decimalNum,'History', 'gui');
% INPUTS (Required) :
%
%ALLMVPC - input ALLMVCP
%MVPCindex -indexes of the selecte... |
75b7dc259cd577c1fafef3476e89a0151d9a360225383c305678fb2af404675e | MATLAB | 21,519 | 449 | %% Define general file names
preprocFolder = 'D:\ephys_results\processedData\audioVis\';
transecAnatFolder = 'C:\Users\Hamish\OneDrive - University College London\Documents\GitHub\Bimbard2022\transecAnat';
% Main Figures
% Fig. 1
mainFigFile_fig1 = fullfile(preprocFolder,'Mainfig',sprintf('allMainfig_%s_ephys%s_%s.ma... |
ac2bce098513186f0224a3aef39dda7101cea597b0346c7cc005e8a9cb53ef6f | MATLAB | 21,526 | 473 | function label = artifactscantool_senslabel(type, varargin)
% FT_SENSLABEL returns a list of predefined sensor labels given the
% EEG or MEG system type which can be used to detect the type of data.
%
% Use as
% label = ft_senslabel(type)
%
% The input sensor array type can be any of the following
% 'ant128'
% 'bio... |
d41a945e94f6c4fb36249d44dff8bc2f4c6e9421b39939a22c861c71986f36db | MATLAB | 21,530 | 715 | %this is a program that reads the information about brain regions and
%creates histograms. Created by Haleh Fotowat
close all
clearvars
close all
path=uigetdir;
cd(path)
RegData=csvread('DMDLBRDLCB_celltypes_registered_v2.csv');
[NUMv,TXTv,RAWv]=xlsread('volume_mece.xlsx');
[NUM,TXT,RAW]=xlsread('DMDLBRDLCB_celltypes_... |
db6ed98feb9516a5d89cfbe36ca0af5ef957fb6d430828735bcf7718feae78b6 | MATLAB | 21,555 | 480 | 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 ... |
0718d8a8ad5a6b3014b03d8ef9b7d3a782dbc30a41719478620b189da27651cb | MATLAB | 21,583 | 442 | function DecodingDuringDelayVsBehavJobArrayGroups(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... |
6925922f7145d2ccb4b356f5f757570eec1b1f7ccc1933cf4e30d878f1b9362e | MATLAB | 21,605 | 442 | function DecodingDuringDelayVsBehavJobArrayAll(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];
... |
dc777df6ff6b135539a9568f81b66de0af3e538d80f53b9bace60c524620aba3 | MATLAB | 21,609 | 442 | function DecodingDuringDelayVsBehavJobArrayPairs(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]... |
c272171722ff7cea7b65ba17a5e4d7494c9d1a5e0924188549a45ef983397168 | MATLAB | 21,612 | 579 | % PURPOSE: pop_plotmvpcset.m
% plot ALLMVPC waves
%
%%FORMAT:
% [ALLMVPC, mvpcom] = pop_plotmvpcset(ALLMVPC,'MVPCArray',MVPCArray,'timeRange',qtimeRange,'Xticks',qXticks,'Xtickdecimal',qXtickdecimal,...
% 'Xlabelfont',qXlabelfont,'Xlabelfontsize',qXlabelfontsize,'Xlabelcolor',qXlabelcolor,'YScales'... |
18303f8246181793f1269af8f86172fa366dd2dbc929426250fe4ef18bde2b9a | MATLAB | 21,847 | 617 | %% Analysis Decorrelation Experiment (Full Movies)
addpath ../functions
plt = figureUtils;
% 1. Load perceptual data
load('../dataFiles/Exp2_results.mat')
col = columnsRawData;
% 2. Load Stimuli information
load('../dataFiles/Exp2_stimuli.mat')
stimIDs = {stimuli.id};
B = FeatureModel('trajAnaObj_ela5', false)... |
1162d68cf720f8378f525350900de8d68ea805ebac43bf2e7aeb16209747c08b | MATLAB | 21,858 | 658 | function [A,psi_maps,S,optim_struct] = ELMM_ADMM(data, A_init, psis_init, S0,lambda_s,lambda_a,lambda_psi,varargin)
%ELMM_ADMM Unmix hyperspectral data using the Extended Linear Mixing Model
%(ELMM).
%
% We find a stationary point of the following functional:
% J(S,A,PSI) = 1/2 * sum_{k=1}^{N} (||x_k - S_k*a_k||_{2... |
2afcdde4439fddb7e05cdeb03c68e140230e9a2d51c7c714e7cd9a9404b7f0a1 | MATLAB | 21,938 | 550 | % Runs the HMC algorithm for the GMLM
% Computes PSISLOO and WAIC on the samples.
%
% NOTE: uses HMC_settings.trialLLfile to store some partial results. This file can get big, but is deleted after running is complete.
%
% Inputs:
% params_init : the initial parameters for sample = 1
% HMC_settings : HMC set... |
a1e12cc894cc64762ca0530eaa13e114ab42890df46ce82d54b34b30516e7de7 | MATLAB | 21,956 | 629 | function outlier_tool( spikes, show_clusters, h, varname,target_fig)
% UltraMegaSort2000 by Hill DN, Mehta SB, & Kleinfeld D - 07/12/2010
%
% outlier_tool - tool for selection of outliers from a cluster in a sorted spikes object
%
% Usage:
% outlier_tool( spikes, show_clusters, h, varname,target_fig)
%
% Descript... |
ec969f0cca8d73850d98249dc04696eae65ccd88b2a9227ab0bbac47068c77d0 | MATLAB | 22,031 | 495 | function Model_Learning(p1,p2)
%p1: seed for random number and p1=1:1:\mu.
%There are \mu independent simulations (500)
%p2: pattern length. p2=1 is for 50 ms; p2=2 is for 100 ms; p2=3 is for 300 ms
rng(10+(p1-1)*1e6);
%There are 5 steps in this program.
%%Step 1: There is no embedded pattern in affer... |
fb31c2b00d4ec3d35801d7d3f08763a29e6c49cdca6e2512f5567b6b1df8c85d | MATLAB | 22,050 | 633 | function splitmerge_tool( spikes, show_clusters, h, varname)
% UltraMegaSort2000 by Hill DN, Mehta SB, & Kleinfeld D - 07/12/2010
%
% splitmerge_tool - tool for inspection and correction of a sorted spikes object
%
% Usage:
% splitmerge_tool( spikes, show_clusters, h, varname)
%
% Description:
% This is a fle... |
babc82fbb804176f538761ef55968bb7ac292ff451c0d742ecf4e5ebf73be4af | MATLAB | 22,145 | 686 | function [A,psi_maps,M,optim_struct] = GLMM_ADMM(data, A_init, psis_init, M0,lambda_m,lambda_a,lambda_psi,varargin)
%GLMM_ADMM Unmix hyperspectral data using the Generalized Linear Mixing Model
%(GLMM).
%
% The GLMM implementation was constructed based on the ELMM code supplied
% by Lucas Drumetz.
%
%
%
% We fi... |
a702eac31ec6f75538fd9fd04b299add3cc214794164adb2b9e9aef16e5eb93a | MATLAB | 22,164 | 498 | %% %%%%%% 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 = [-4 4];
shift = 0;
plotOnline = false;
bw=0.05;
Nbs = 10;
tbShort=tlimsShort(1):bw:tli... |
a2d17c66d734c9a9000cec719ffb33e2610eb211d8885bc8fcb7bd55dea6f3e3 | MATLAB | 22,306 | 461 | % ERP Viewer for EStudio Toolbox
%
% Author: Guanghui ZHANG
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2022 && Nov. 2023
% ERPLAB Toolbox
%
%
% Initial setup
%
function varargout = f_ERPsets_waviewer_GUI(varargin)
%
global viewer_ERPDAT
global gui_erp_waviewer;
addlistener(viewer_ERP... |
0e5464ff043abfd93173c14a8de6a45011ef59a85fed265b2feeb2323b2ed3bf | MATLAB | 22,318 | 525 | function Ass = getCutoutAssemPatterns(Name_,bw,FSC,ciHld,ciHsc,FL,TrialOutcome,plotYN)
% Analyse patterns in assembly activation for repetitive short but
% variable-length delay periods
%
% Aleksander PF Domanski PhD UoB 2016
% aleks.domanski@bristol.ac.uk
%
%
% Loads data generated by runFAassem_[epoch] code ... |
8a7ac91bb7b02a999830e2121159604da5497e622396ebadcc4290ddd13457ce | MATLAB | 22,419 | 550 | % linespecGUI
% "Line specifications GUI" - lets the user reorder/reassign the default
% line colors and line styles used for per-bin ERP waveform plotting, and
% pick a line width. Reached from ploterpGUI's "LINE SPEC" button.
%
% NOTE: Migrated from GUIDE (.fig) to a programmatic uifigure-based classdef
% app. Origin... |
d87bac2d13ed99cffdb6f1c09ffd01bd917c6ef97d7fa43d21079908a2aecf48 | MATLAB | 22,479 | 630 | %this is a program that generates trial averages and forms clusters based
%on that. Data in TimeAnalysis/XXCBDLXXDLXX
%Created by Haleh Fotowat.
close all
clearvars
path=uigetdir;
cd(path)
%read the pooled clustering data
% load('LXLXCXCX_HA.mat')
% clear IDX
%determine what was the stimulus in between
load('Peaks_EX... |
8f3146d40fa36fb05271eae11e372126255a47bea9c918e843d8275e0c66d142 | MATLAB | 22,603 | 667 | function varargout = basic_characterization(varargin)
% BASIC_CHARACTERIZATION MATLAB code for basic_characterization.fig
% BASIC_CHARACTERIZATION, by itself, creates a new BASIC_CHARACTERIZATION or raises the existing
% singleton*.
%
% H = BASIC_CHARACTERIZATION returns the handle to a new BASIC_CHARACT... |
f79dd228221cfca72c5e6269964b351fb0815b0397925e027e43d41d8de6164c | MATLAB | 22,619 | 495 | % 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
times=load([Animal,'... |
200b718857e87c6466384088c06a9f3dd3503db96f0b2f58049168782e754aac | MATLAB | 22,750 | 548 | %% %%%%%% 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 = [-4 4];
shift = 0;
plotOnline = false;
bw=0.05;
Nbs = 500;
tbShort=tlimsShort(1):bw:tl... |
eca071ff021fea389be23970356219a33c1fb2e3ae0983d9c38c546eefccf366 | MATLAB | 22,985 | 526 | function varargout = driftcorrection_graphical(varargin)
% DRIFTCORRECTION_GRAPHICAL - Evaluate or perform manual drift correction on image data
%
% DRIFTCORRECTION_GRAPHICAL('INPUTS',INPUTS)
%
% Brings up a graphical user interface for correcting drift
%
% INPUTS is the standard ANALYZETPSTACK_DRAW_DEVICE inpu... |
09db6b43dea852e3219f471703ef5a7246d0bf0f0422d5e3282c1f45cdd87e80 | MATLAB | 23,024 | 545 | % PURPOSE : Assign events to bins
%
% FORMAT :
%
% EEG = pop_binlister( EEG , parameters);
%
% INPUTS :
%
% EEG - input dataset
%
% The available parameters are as follows:
%
% 'BDF' - name of the text file containing your bin descriptions (formulas).
% 'ImportEL' - (optional) name of ... |
3fdb41eeeb49fee33801261dc4f17d60457723252522e9f365e9b94b0bc70d9b | MATLAB | 23,152 | 609 | %
% Author: Johanna Kreither & Javier Lopez-Calderon
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2013
%b8d3721ed219e65100184c6b95db209bb8d3721ed219e65100184c6b95db209b
%
% ERPLAB Toolbox
% Copyright © 2007 The Regents of the University of California
% Created by Javier Lopez-Calderon a... |
e6596fc413eacdbd766df7540851b1b5b08f051713cbfe8410cbab988196f45c | MATLAB | 23,228 | 514 | %%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_property_waveviewer_GUI(varargin)
glo... |
5c3e4dc54fa699c479334d29b1e5263bbf14bee048fe32b51dbe1a599426a556 | MATLAB | 23,397 | 605 | %% FRONT MATTER...
% pop_VisEd() - Collect variables for visual editing.
%
% Usage:
% >> EEG = pop_VisEd( EEG, chan_index, event_type,varargin);
%
% chan_index - EEG channels to display in eegplot figure window while editing events and identifying bad channels.
% event_type - Event types to display in eegp... |
9cad59e5a48c3e93911609014ba80c23ec4bbc6f9300aa3f80a0b5e20991ac08 | MATLAB | 23,413 | 585 | % Runs the HMC algorithm for the GMLM
% Computes PSISLOO and WAIC on the samples.
%
% NOTE: uses HMC_settings.trialLLfile to store some partial results. This file can get big, but is deleted after running is complete.
%
% Inputs:
% params_init : the initial parameters for sample = 1
% HMC_settings : HMC set... |
f9093f78cb4d8c4ce0164b0a9a1164a48854e8704b2e84a76610ff672c87fc07 | MATLAB | 23,429 | 876 | %% LR reinforced with two action states
clear all
tic
%Number of trials
Ntrials = 3000;
%Number of rats
Nrats = 100;
%Learning paramaters
alpha = 0.1; % alpha; learn rate for state value estimation
beta = 0.1; % beta; learn rate for action probability update
gamma = 0.9; % discount fa... |
e9402f421ec96ecccd4a377461bf6961a7661f1168942db45aa7f9d7517f9c40 | MATLAB | 23,516 | 564 | % Runs the HMC algorithm for the GMLM
% Computes PSISLOO and WAIC on the samples.
%
% NOTE: uses HMC_settings.samplesFile to store results on the fly.
% uses HMC_settings.trialLLfile to This file can get big, but is deleted after running is complete.
%
% Inputs:
% params_init : the initial parameters for s... |
e43e73fdb8d504ec920b4f5f5454505917a1d605b67030da9ea6c23ffb6b4d37 | MATLAB | 23,614 | 671 | function varargout = acq2mat(acqfile, acqpath, chans, plotOK, saveOK)
% ACQ2MAT Convert Acknowledge (.acq) to Matlab (.mat) file format.
% ACQ2MAT(acqfile, acqpath)
%
% Optional input arguments:
% acqfile - ACQ file name
% acqpath - ACQ path name
% chans - vector channels to read (e.g., [1:2 4];
% ... |
0c6ef42753e63af79c11d8f0ee7239f9df276ccdc7d60daac9c20df4e9a27997 | MATLAB | 23,684 | 522 | function [channel] = artifactscantool_channelselection(desired, datachannel, senstype)
% FT_CHANNELSELECTION makes a selection of EEG and/or MEG channel labels.
% This function translates the user-specified list of channels into channel
% labels as they occur in the data. This channel selection procedure can be
% used... |
e0f8e3051fef15f78c607df94ae2c24bbc4b673b1ac3a76a6214ae3ea93a30e0 | MATLAB | 23,772 | 618 | %This is a code to generate response amplitude changes with trial and side
%plots. Created by Haleh Fotowat.
close all
clearvars
s=what;
size(s.mat)
cnt=1;
for i=1:length(s.mat)
filename=s.mat{i}
L=length(filename);
X=filename(L-9:L-8);
if strmatch(X,'03')
ISI_fish(cnt:cnt+9)=180
cn... |
f2ff61f104ae0485e9451e36b268fbc9a080a2f61229a55124f8a2cee317cc3a | MATLAB | 23,841 | 466 | clear
cd('C:\Analysis\AssemblyAnalysis\LFPanalysis\Aleks chosen LFP segments\CellsOnTetrodes')
load('cellsonTetrodes.mat')
pat = 'C:\Analysis\AssemblyAnalysis\raw';
cd(pat);
useWholeTaskPeriod = true;
Targets= {'SHORT','MEDIUM','LONG'};
iTarget = 3;
UseResampledResults = true;
f.bandNames = {'4-6Hz','t... |
5ba5ef0b563fad4a5fd1ccbde2c9450dbb7a83f80333025852e36f42762df67e | MATLAB | 23,853 | 698 | % Author: Javier Lopez-Calderon
% 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 Steven Luck
% Cent... |
b6377c32f030c88ae52987c11b4a8a32c7e67eb09cc7b35b08dd4ae8c6f0a2ec | MATLAB | 23,865 | 565 | function varargout = bdfVisualizer(varargin)
% BDFVISUALIZER MATLAB code for bdfVisualizer.fig
% BDFVISUALIZER, by itself, creates a new BDFVISUALIZER or raises the existing
% singleton*.
%
% H = BDFVISUALIZER returns the handle to a new BDFVISUALIZER or the handle to
% the existing singleton*.
%
% ... |
ccaf9ff6f86d82349140acb4cc33cb987def1126272efa5741098a861097bfeb | MATLAB | 23,943 | 519 | % Copyright (c) 2014, Jeffrey Chiou
% All rights reserved.
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provided that the following conditions are met:
%
% * Redistributions of source code must retain the above copyright notice, this
% list of condition... |
45599e5bed1cd47d56aa9d7ad53c86a2e6339f2f3f1e6a902d31cc792c3af878 | MATLAB | 23,952 | 1,018 | function varargout = ep_EPhys(varargin)
% ep_EPhys
%
% Daniel.Stolzberg@gmail.com 2014
% Copyright (C) 2016 Daniel Stolzberg, PhD
% Last Modified by GUIDE v2.5 02-Sep-2014 14:11:54
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'g... |
505b28394b156c35d0b7ae27c835e469b6882cebbf3a582ec1d494e5b14365eb | MATLAB | 23,962 | 552 | % PURPOSE : Assign events to bins
%
% FORMAT :
%
% EEG = pop_binlister( EEG , parameters);
%
% INPUTS :
%
% EEG - input dataset
%
% The available parameters are as follows:
%
% 'BDF' - name of the text file containing your bin descriptions (formulas).
% 'ImportEL' - (optional) name of ... |
dc757a51a00070d3cff3322b66ec39b22e28b51df0cd7da7b3409c83b18f2fb5 | MATLAB | 24,009 | 798 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright for this implementation:
% 2015 - Simona Cocco
% cocco@lps.ens.fr
%
% Permission is granted for anyone to copy, use, or modify this
% software and accompanying documents for any uncommercial
% purposes, provided this copyright notice... |
1842fdcf46383a3822ed143fef4535e9741ea5b7852d4b51291aebd6d52b09c8 | MATLAB | 24,025 | 864 | function varargout = spm_prf_analyse(mode,varargin)
% Runs a PRF analysis
%
% Examples and default settings
%
% -------------------------------------------------------------------------
% Specify an analysis:
%
% PRF = spm_prf_analysis('specify', SPM, xY, U, options);
%
% Where:
%
% SPM - filename of the subject's SPM.... |
e1675f6ab057bb6763ed92c68f44534ccb0a6941653994300f76a713a1b65338 | MATLAB | 24,077 | 987 | function [rejected_indices] = get_rejected_epochs(subj_idx, cond_idx)
% Gives the epoch indices to reject, for the subject subj_name and the
% condition cond_idx.
% TSL-EEG.
rejected_indices = [] ;
switch subj_idx
case 1
% ===*=== Subject 1
switch cond_idx
case 1
... |
96481f0367150987cea6fac4ad104f34564adaa20346dc7714bde6e53ece2d12 | MATLAB | 24,320 | 598 | %% MAIN
SomatotopicForm = [];
TENS = [];
% first 3 numbers = current, PWmin, PW max RED
% second 3 numbers = current, PWmin, PW max BLUE
% third 3 numbers = current, PWmin, PW max BLACK
% fourth 3 numbers = current, PWmin, PW max WHITE
TENS(1, :) = [11 110 160 9 120 150 8 80 120 8 110 170];
TENS(2, :) = [5 120 310 7 1... |
6cff001c6a2d1f7bfb270c1f57eff3e7b3e543cb7c8c2791e0f310b78326b0a6 | MATLAB | 24,364 | 673 | function A = set_up_phi_matrix(G, mesh)
%set_up_matrix Set up matrix for the finite difference equations for phi
% Load parameters
N = G.N;
Nx = G.Nx;
Ny = G.Ny;
eps_func = G.eps_func;
% Load grid point mesh
e_lsw = mesh.e_lsw;
e_lse = mesh.e_lse;
e_lnw = mesh.e_lnw;
e_lne = mesh.e_lne;
e_hsw = mesh.e_hsw;
e_hse = m... |
d5cc68a682d8b4d6626679ef11a4822c07d15046fe1a9c8016486bd5c4baebe3 | MATLAB | 24,394 | 925 | function varargout = RF_analysis(varargin)
% RF_analysis
% RF_analysis(unit_id)
%
% Two-dimensional receptive field analysis using features of single or
% multiple contours.
%
% See also, RIF_analysis
%
% Daniel.Stolzberg@gmail.com 2013
% Last Modified by GUIDE v2.5 06-Sep-2013 10:00:08
% Begin initialization code ... |
09524b7d14b0ff8c2a074540f42b2a2060abbff7eb794d6610038c1be44f4c30 | MATLAB | 24,417 | 592 | % function DecodingDuringDelayIndividualUnits(iFile)
% if isstr(iFile)
% iFile = str2num(iFile);
% end
%% %%%%%% PREAMBLE %%%%%%
clear
Delays_ = {'Short','Medium','Long'};
Delays__ = {'4s','8s','16s'};
Target = 'LONG';
RunErrors = false;
tlimsShort=[0 4];
tlimsMedium=[0 8];
tlimsLong=[0 16];
tlims... |
4fd41b6bd28330368864a0e41671175a68003ee06987cfee78f95cfea1b9b19a | MATLAB | 24,445 | 937 | function varargout = ep_CalibrationUtil(varargin)
% varargout = ep_CalibrationUtil(varargin)
%
% Daniel.Stolzberg@gmail.com 2014
% Copyright (C) 2016 Daniel Stolzberg, PhD
% Edit the above text to modify the response to help ep_CalibrationUtil
% Last Modified by GUIDE v2.5 02-Aug-2014 18:38:07
% Begin initializati... |
1def9df91195f8feb1e9cf776d41fcc64d1296bd4d95c5a9b982252486448b2f | MATLAB | 24,476 | 727 | % PURPOSE : Plot confusion matricies from MVPC data
%
% FORMAT :
%
% >> pop_plotconfusions(MVPC);
%
% INPUTS (Required) :
%
% MVPC or ALLMVPC - input dataset (MVPCset) or input ALLMVCP
%
% Times - array of times (in milliseconds) to plot
% depending on the ... |
f786ac5f79507082fe9eeb262ad5494b3b23cf13fa034427621af334429f6bd1 | MATLAB | 24,555 | 756 |
% *** This function is part of EStudio Toolbox ***
% Author: Guanghui Zhang & Steven Luck
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2022
function OutputViewerpar = f_preparms_erpwaviewer(FigureName,History)
OutputViewerpar = '';
if nargin<1
help f_preparms_erpwaviewer();
... |
910bcc1bc22f355d2f0d78cc94b6723822d6032b95c031cda11771e7392f8068 | MATLAB | 24,695 | 686 | function varargout = DQ_preavg(varargin)
% DQ_PREAVG MATLAB code for DQ_preavg.fig
% DQ_PREAVG, by itself, creates a new DQ_PREAVG or raises the existing
% singleton*.
%
% H = DQ_PREAVG returns the handle to a new DQ_PREAVG or the handle to
% the existing singleton*.
%
% DQ_PREAVG('CALLBACK',hO... |
b4989c89fbb68f37a6ba62754a0c36f1494f42f05c8765d8a1bff5c60cd3a5eb | MATLAB | 24,782 | 718 | % Function for calculating smoothed estimates of firing rate by optimised kernel density smoothing.
%
% (c) 2014 Daniel Durstewitz, Bernstein Center for Computational Neuroscience, CIMH/ Heidelberg University
% Edited by Aleksander PF Domanski PhD UoB 2015
% aleks.domanski@bristol.ac.uk
%
% A variant of ConvertSTdata_... |
120d097faefc083a66e5824305d0b6f8666ba5b3ed05540d2571d9b0bf32d86f | MATLAB | 24,783 | 596 | % function DecodingDuringDelayIndividualUnits(iFile)
% if isstr(iFile)
% iFile = str2num(iFile);
% end
%% %%%%%% PREAMBLE %%%%%%
clear
Delays_ = {'Short','Medium','Long'};
Delays__ = {'4s','8s','16s'};
Target = 'LONG';
RunErrors = false;
tlimsShort=[0 4];
tlimsMedium=[0 8];
tlimsLong=[0 16];
tlims... |
cdf914936db84c1c79912e82441cc569856bd8e8cccfc8a9e50f8d46e2e06ee5 | MATLAB | 24,808 | 578 | %% Preamble, load
clear all
close all
P.target = 'Task';
P.rat = 'JaroslawLONG1'; % Post sleep import error
% P.rat = 'JaroslawLONG2'; %*
% P.rat = 'KrzesimirLONG1'; %*
% P.rat = 'KrzesimirLONG2'; %*
% P.rat = 'KrzysztofLONG1'; %*
% P.rat = 'KrzysztofLONG2'; %*
% P.rat = 'MiroslawLO... |
7745a1236f48759960596a643b0ce9c6dbf3d2762d494c3f6129c64af6143498 | MATLAB | 24,834 | 659 | function varargout = calibrateGUI(varargin)
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @calibrateGUI_OpeningFcn, ...
'gui_OutputFcn', @calibrateGUI_OutputFcn, ...
... |
ea349375dbaf2363846b13ab7f0d645eda4cfd718f6336e31855749ab1c3071d | MATLAB | 24,869 | 661 | function plot_features(spikes, show, colormode, show_outliers, alt_assigns )
% UltraMegaSort2000 by Hill DN, Mehta SB, & Kleinfeld D - 07/12/2010
%
% plot_features - interactive 2D scatter plot of spike features
%
% Usage:
% plot_features(spikes, show, colormode, show_outliers, alt_assigns )
%
% Description:
% ... |
e719002a3cbf5b36e2f291eda371d685c08e5afc06c9cd0f5146ef209487ce21 | MATLAB | 24,883 | 659 | %% %%%%%% PREAMBLE %%%%%%
clear
warning ('off')
Target = 'LONG';
bw=0.05;
minFR = 0.5;
clear Av
if ispc
pat = 'C:\Analysis\AssemblyAnalysis\raw\';
elseif ismac
pat = '/Volumes/HDD2/DNMTP/raw/';
home = getenv('HOME');
else
path(path,'/panfs/panasas01/phph/ad15419/MATLAB')
addpath(genpath('/panf... |
72763d16fdf4f6cde15b833c6ba00956c6ff5d8e5690b00c3066bf372395fe18 | MATLAB | 24,948 | 554 | %% MAIN
clear all
close all
clc
% Vectors
Drift = [];
QuestionnaireEmb = []; QuestionnaireViv = []; QuestionnairePci = [];
pps = []; ppsBaseline = [];
SomatotopicForm = [];
% LEGEND
% Each condition is assigned to a number:
% 1 = BACKsync, 2 = BACKasync, 3 = MIXEDsync, 4 = MIXEDasync
conditions = {"BACKs", "BACKa",... |
343d8169369195827a02167ee8240374b396284e1cda4c5f8ddb2fce3858f686 | MATLAB | 24,955 | 660 | % PURPOSE: subroutine for pop_ploterps.m
% plot ERP waveforms
%
% FORMAT:
%
% ploterps(ERP, binArray, chanArray, pstyle, chMGFP, blcorr, xaxlim, yaxlim, linew, isinvertedY, fschan, fslege, errorstd,...
% box, holdch, yauto, binleg, legepos, ismaxim, posfig, axsize, chanleg, minorticks, linespec)
%
... |
04686c0bdad0b86ae2b957fcecd746c5907ddcac8138b1e05871f0e283e0a5b0 | MATLAB | 25,010 | 528 | %%This function is used to get the ' Channel and IC Selection' Panel and
%%record the change of th selected channels and selected ICs
% *** 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
func... |
6d4da316ae1dd15a2f5ef2fd383a59f5aa68c586cdf510981d4e988798fb8494 | MATLAB | 25,079 | 777 | function varargout = importerpGUI(varargin)
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @importerpGUI_OpeningFcn, ...
'gui_OutputFcn', @importerpGUI_OutputFcn, ...
'gui_LayoutFcn... |
628b33e7cd30550c1736187fee637d6e1724857832468b688aa4fc83c7b2df06 | MATLAB | 25,281 | 652 | function [ ] = test_psych_one_cond()
% Test the interface generated with the Psychtoolbox for the learning of TP
% during sequences of painful stimuli.
%
% Reproduce the interface used in exp_one_condition (without commanding the
% stimulation device).
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
96e9fadbb0b386b72f5b0388dda98e6cf49648ed86d4de0c1853b82801f5464e | MATLAB | 25,375 | 776 |
function PPlot2(Structs, Locs, LocLinks, scale_struct, VolumeName, varargin)
dbstop if error
if isempty(Structs)
disp('Cannot render, no structures found')
return
end
if isempty(Locs)
disp('Cannot render, no locations found')
return
end
SaveFrames = 0;
... |
8f2ebf1fd1cc67c7eb249ece32907e6386c56eaf85f36390091a94580b90c3bb | MATLAB | 25,452 | 986 | function varargout = ep_PostCalibrationUtil(varargin)
% varargout = ep_CalibrationUtil(varargin)
%
% Daniel.Stolzberg@gmail.com 2014
% Copyright (C) 2016 Daniel Stolzberg, PhD
% Edit the above text to modify the response to help ep_CalibrationUtil
% Last Modified by GUIDE v2.5 02-Aug-2014 18:38:07
% Begin initiali... |
8d04721c0f4f7584fdc9041a130e4f30b7674130613065fac96bccc6819f0829 | MATLAB | 25,585 | 737 | %% Feature Model
clearvars; close all
addpath ../functions
plt = figureUtils;
%% Calculate features for all simulations
% THIS TAKES TIME, SKIP THIS STEP TO USE PRECALCULATED FEATURES
% All 100,000 simulations of 10 elasticities
FeatureModel.calculateFeatures(0:0.1:0.9, 1:10000, 1:121, 'elaAll')
% All 100,000 s... |
fdd0a894f0e3e1025a4e02f04ae1825678b21852cd6e49bb80bea5628bec9ea3 | MATLAB | 25,788 | 679 | % PURPOSE: subroutine for pop_binoperator
% Bin Operations functions allow you to compute new bins through algebraic expressions
% running over bins in the current ERP structure.
%
% FORMAT:
%
% [ERPout conti cancelop]= binoperator(ERPin, ERPout, expression)
%
%
% Inputs:
%
% ERPin - current ... |
3605742d2d6ad123544446ea967f2b8f9d2a5e180321c7e2bb321f2254bfb0f0 | MATLAB | 25,868 | 738 | % Author: Javier Lopez-Calderon % Sam London
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2009
%b8d3721ed219e65100184c6b95db209bb8d3721ed219e65100184c6b95db209b
%
% EStudio Toolbox
% Copyright © 2007 The Regents of the University of California
% Created by Javier Lopez-Calderon and Stev... |
46422517377c2a0408827aed55f382834b57737295f0c1b136603f4522bc6647 | MATLAB | 26,067 | 703 | function [ Verts, iAddedVerts, iTriangleVerts, FacesOne, FacesTwo, ...
V1O, V1A, V1B, V2O,V2A,V2B] = TriangleIntersection( TriOne, TriTwo, Epsilon, varargin)
%TRIANGLEINTERSECTION Returns intersecting points for two triangles
% Arguments (TriOne, TriTwo, [TriOneInternalVerts], [TriTwoInternalVerts]):
% T... |
fc7a12888021dcd36bf844bab40ea3b691dc5d3263fa045b6c1025705849fa0e | MATLAB | 26,107 | 1,017 | function varargout = ep_RunExpt(varargin)
% ep_RunExpt
%
% Run Psychophysics experiment with/without electrophysiology using OpenEx
%
% Daniel.Stolzberg@gmail.com 2014
% Copyright (C) 2016 Daniel Stolzberg, PhD
% Edit the above text to modify the response to help ep_RunExpt
% Last Modified by GUIDE v2.5 05-Aug-20... |
663c732a537e1aba01de8c32d8f0cd89b0ff2f8ff056f3a320a1ffcda863adca | MATLAB | 26,124 | 598 | % ERPset selector panel
%
% Author: Guanghui ZHANG & Steven Luck
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2022 & 2023
% ERPLAB Toolbox
%
%
% Initial setup
%
function varargout = f_ERP_Binchan_waviewer_GUI(varargin)
global viewer_ERPDAT
global gui_erp_waviewer;
addlistener(viewer_ER... |
6f48b0c5b43a0548fc954b6ba2689d337d75a46399b8679eaa1523f11858d94d | MATLAB | 26,155 | 588 | clear
Targets = {'SHORT','MEDIUM','LONG'};
Delays_ = {'Short','Medium','Long'};
Delays__ = {'4s','8s','16s'};
Dirs = {'Left','Right'};
Target = Targets{3};
bw=0.05;
bw_hist = 0.2;
minFR = 0.1;
DataType = 'SpikeCounts';%'KDE'
if ispc
pat = 'C:\Analysis\AssemblyAnalysis\raw';
else
pat = '/Volumes/HDD... |
d389015d14238d7e338b982505867e3abfb802e8aebc0ba807b40e71dbfe452e | MATLAB | 26,299 | 780 | %% Noise-Flash temporal slewing analysis
plotwin = [-0.15 0.4];
baselinewin = [-0.15 0];
binsize = 0.001;
smdur = 0.01; % Moving average filter duration (s)
gwdur = 0.01; % Gaussian window APSTH duration (s)
% Uses the Holm-Bonferroni method to correct for multiple comparisons
alpha = 0.025;
DB = 'ds_a1_aaf_... |
5461d73b25d823f6f3ae80622d16f498aac6bab1bc4bddf181c4b616872162c2 | MATLAB | 26,378 | 862 | % MAKEGRAPHS - load the graphs from the previous study, and add the results
% from this study
function makeGraphs
global m;
if ~exist('figures','dir')
mkdir('figures');
end
if ~exist('csv','dir')
mkdir('csv');
end
pp = [0 0 20 15];
markers = {'ro','ro','bs','bs'};
fillcolors = {'r','w','b','w'};
legenden... |
99f174133cb4dfd56c52139cbffa4cb38897cd7706e9d9086bcaedd57eb43d98 | MATLAB | 26,473 | 553 | %%This function is to detect and summarize artifact 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
% Sep. 2023
function varargout = f_EEG_arf_sumop_GUI(varargin)
global obser... |
dc7fbeeed33d455794285946e6aaa298dd9b3f685fe83551b370b285d0a78881 | MATLAB | 26,572 | 756 | %this is a program to plot the ROIs on the reference brain
%read the reference brain.Created by Haleh Fotowat.
close all
clearvars
path=uigetdir;
cd(path)
filenames=dir('2*AllBrains_procdata_ha.mat');
for i=1:length(filenames)
load(filenames(i).name,'Exp_seq')
Eye{i}=Exp_seq(2);
end
[X,meta]=nrrdread('Elavl3-H... |
216e61abdd714bc69177422aa03fd9ecac1832e9cfcb09ed9f12fb9ced2bb064 | MATLAB | 26,645 | 603 | %This is a function that takes as input the tail direction information and
%plots a point for each trial in the three dimensional space with max+,
%max- and response duration and the color depicting response time with
%lighter earlier in the trial. Created by Haleh Fotowat
close all
% clearvars
rep=1;
s=what;
fb_e=[];%... |
311147ef531679d82aeca5a841faaf4f55b5e18a77bf286317d4d81e31623f0d | MATLAB | 26,656 | 525 | %% %%%%%% PREAMBLE %%%%%%
clear
Delays_ = {'Short','Medium','Long'};
Target = 'LONG';
Areas = {'PFC','HP','Joint'};
TimeSpan = 4;
bw=0.05;
tlimsAll = [-5 5];
tbAll = tlimsAll(1):bw:tlimsAll(2);%0:bw:2*sum(abs(tlimsAll));
maxRange=20; % Upper limit of assembly size to explore
noTrials = 10; % How many... |
b12128bc0161c2ba523a1d944a0536c598c2c154338fe6d66f9b807e5123651f | MATLAB | 26,700 | 705 |
function varargout = process_ft_sourceanalysis_tvDICS_BF(varargin )
% PROCESS_FT_SOURCEANALYSIS Call FieldTrip function ft_sourceanalysis
% @=============================================================================
% This function is part of the Brainstorm software:
% https://neuroimage.usc.edu/brainstorm
%
% Cop... |
bb9cbf4a892472a96c2532ffc1e4942bc1ec9820a049901f39d56e6940d67839 | MATLAB | 27,029 | 659 | %% MAIN
clc
close all
clear all
% Vectors for group without Movement
Drift = [];
QuestionnaireEmb = []; QuestionnaireViv = []; QuestionnairePci = [];
pps = []; ppsBaseline = [];
SomatotopicForm = [];
% LEGEND
% Each condition is assigned to a number:
% 1 = VO, 2 = TS1L, 3 = TS4L, 4 = TA1L, 5 = TA4L, 6 = CS, 7 = CA
... |
9f88bab85d1593a46524b55198fa7311498697606985d54c479f1401d205c39a | MATLAB | 27,104 | 653 | % ERP_layoutstringGUI
% "Plot Organization > Customize Grid Locations" dialog for the ERP Wave Viewer.
%
% NOTE: Migrated from GUIDE (.fig) to a programmatic uifigure-based classdef
% app. Original .fig archived outside ERPLAB.
% Migrated to .m: July 2026 by Kurt Winsler
%
% Calling convention unchanged from the origin... |
20cbafba790f8d9adb8937fe43e9af5eb928c95d02d52abf8686e6c22bcd8b77 | MATLAB | 27,226 | 766 | %
% Author: Aaron Matthew Simmons & 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... |
738bd303ab673a611f507c08b2e8205fd2e3a15f2b41052c7d3f032e07b4f2dd | MATLAB | 27,239 | 998 | %% LR reinforced with two action states
clear all
%Number of trials
Ntrials = 3000;
%Number of rats
Nrats = 100;
%Learning paramaters
alpha = 0.1; % alpha; learn rate for state value estimation
beta = 0.1; % beta; learn rate for action probability update
gamma = 0.9; % discount factor ... |
fe77c79fc2d68bc9b9d85d3b8021d852d697b0c13d57926dca653a26159242d4 | MATLAB | 27,282 | 696 | function mfcsc(FC_SC_LIST,FC_INPUT_DIR,SC_INPUT_DIR,OUTPUT_DIR,not_in_mask_value,is_contra,is_keep_neg_fc,is_symmetrical,is_figures,bct_dir)
%%%
%%%
%%% mfcsc -- Mismatch between Functional Connectivity and Structural Connectivity
%%% ==========================================================================... |
d83c13ac5aaa6cd5145bc1645a3cab22f5c4052a444c7383afd51576feb2b531 | MATLAB | 27,372 | 1,003 | %% LR reinforced with two action states
clear all
%Number of trials
Ntrials = 3000;
%Number of rats
Nrats = 100;
%Learning paramaters
alpha = 0.1; % alpha; learn rate for state value estimation
beta = 0.1; % beta; learn rate for action probability update
gamma = 0.9; % discount factor ... |
6ed7e46e51f5b798d91d62125ff29d349f7adb90dbc9f08844970a2e89231061 | MATLAB | 27,382 | 339 | %-----------------------------------------------------------------------
% Job saved on 15-Dec-2021 14:25:22 by cfg_util (rev $Rev: 7345 $)
% spm SPM - SPM12 (7771)
% cfg_basicio BasicIO - Unknown
%-----------------------------------------------------------------------
matlabbatch{1}.spm.stats.factorial_design.dir = {'... |
bb31b936f47e214eead01e43d069324fb45405d48a2c827f8e72d8baa8907557 | MATLAB | 27,436 | 523 | %
% This script produces the plots for Figure 2 and 3 (B/C) of the article
%
%%
% Load the n1Latencies from the derivatives
clear
close all
warning('on');
warning('backtrace', 'off')
myDataPath = setLocalDataPath(1);
if exist(fullfile(myDataPath.output, 'derivatives', 'av_ccep', 'ccepData_V2.mat'), 'file')
lo... |
dc91882f2030464ba9a616dd036f7dc79b99efaf3d91614be8781281bef9e82e | MATLAB | 27,675 | 712 | %
%
% Modified headplot.m from Arnaud Delorme, Colin Humphries, Scott Makeig, SCCN/INC/UCSD, La Jolla, 1998, to be used by ERPLAB
%
%
function [HeadAxes, ColorbarHandle] = headplot_erp(values, arg1, varargin)
if nargin < 1
help headplot_erp
return
end
%%%%%%%%%%%%%%%%%%%%%%%%%% Set Defaults %%%%%%%%%%%%%%%%%... |
4acdb429aca2e46298601f89375e718bf5ad93b5f6ab3d38aa55006146ec0c70 | MATLAB | 27,743 | 643 | %% %%%%%% PREAMBLE %%%%%%
clear
Delays_ = {'Short','Medium','Long'};
Target = 'LONG';
Areas = {'PFC','HP','Joint'};
bw=0.05;
tlimsAll = [-5 5];
tbAll = tlimsAll(1):bw:tlimsAll(2);%0:bw:2*sum(abs(tlimsAll));
maxRange=20; % Upper limit of assembly size to explore
noTrials = 5; % How many trials to consi... |
d2bbf6308549d615d7dcae59c7c39de6e473b912ea5cf9ce735abac284851681 | MATLAB | 28,026 | 763 | %% %%%%%% PREAMBLE %%%%%%
clear
Delays_ = {'Short','Medium','Long'};
Delays__ = {'4s','8s','16s'};
Target = 'LONG';
shift = 0;
plotOnline = false;
bw=0.05;
Nbs = 500;
warning ('off')
if ispc
pat = 'C:\Analysis\AssemblyAnalysis\raw\';
else
pat = '/Volumes/HDD2/DNMTP/raw/';
end
cd(pat)
fileList=dir(sprintf('Mix... |
5173c19abcd2e0e04b48c440a922769fb67845bdeed9c935ff7876e8b622bd39 | MATLAB | 28,088 | 563 | %%This function is to compute Spectral Data Quality (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_dq_fre_conus_GUI(varargin)
global o... |
9a348945a5c79f9711fa8d915bb751f6dee566a9b829060457e347d28386779d | MATLAB | 28,135 | 625 | function data = TDT2mat(tank, block, varargin)
%TDT2MAT TDT tank data extraction.
% data = TDT2mat(TANK, BLOCK), where TANK and BLOCK are strings, retrieve
% all data from specified block in struct format.
%
% blocks = TDT2mat(TANK); Returns all block names in TANKS. DJS 12/2015
%
% data.epocs cont... |
9559eef4e9fa7809dbeb4de33b0e163cc9b3273898bc5a42fe2a743689c8027b | MATLAB | 28,296 | 728 | clear
Targets = {'SHORT','MEDIUM','LONG'};
Delays_ = {'Short','Medium','Long'};
Delays__ = {'4s','8s','16s'};
Dirs = {'Left','Right'};
Target = Targets{3};
bw=0.05;
bw_hist = 1;
minFR = 0.5;
DataType = 'SpikeCounts';%'KDE' 'SpikeCounts'
if ispc
pat = 'C:\Analysis\AssemblyAnalysis\raw';
else
pat = '/Volumes/HDD2... |
635b22ac115c3981237d58880e02a7ed05d4ed0f66415d0436b547d0da1a023f | MATLAB | 28,406 | 531 | %% %%%%%% PREAMBLE %%%%%%
clear
Delays_ = {'Short','Medium','Long'};
Target = 'LONG';
Areas = {'PFC','HP','Joint'};
TimeSpan = 4;
bw=0.05;
tlimsAll = [-5 5];
tbAll = tlimsAll(1):bw:tlimsAll(2);%0:bw:2*sum(abs(tlimsAll));
maxRange = 20; % Upper limit of assembly size to explore
noTrials = 10; % How many... |
f6116b957e309e8f481853b0cf1935e07529370a83568dd57341980f4d2e2a65 | MATLAB | 28,478 | 533 | %% %%%%%% PREAMBLE %%%%%%
clear
Delays_ = {'Short','Medium','Long'};
Target = 'LONG';
Areas = {'PFC','HP','Joint'};
TimeSpan = 4;
bw=0.05;
tlimsAll = [-5 5];
tbAll = tlimsAll(1):bw:tlimsAll(2);%0:bw:2*sum(abs(tlimsAll));
maxRange = 20; % Upper limit of assembly size to explore
noTrials = 5; % How many ... |
ce8aa6b6a1bc470da1e30188b8d44c6de84b9567b00ee7b2e1f8dbb217144a02 | MATLAB | 28,592 | 701 |
%% get variables
% usePoints = [1000:6000];%; 10000:15000; 20000:25000];%; 30000:35000; 40000:45000];
% useTrialIDs = 1;%[1,4; 2,5; 3,6];%; 4,7; 5,8];
% savePrefixs = {};
% for dataSetIndex = 1:size(usePoints,1)
% savePrefixs{dataSetIndex} = ['systemCTRNN_NewSigma' num2str(dataSetIndex)];
% end
% % usePoints = ... |
ba04cb91e864de8edc0c881ece89323042b2bc79c135eb408c805a4adcf2a232 | MATLAB | 28,683 | 643 | %% %%%%%% PREAMBLE %%%%%%
clear
Delays_ = {'Delay_0'};
Delays__ = {'0s'};
Target = 'SHORT';
tlimsAll = [-5 5];
tlimsDelay_0=[-2 2];
tlimsANOVA = [-2 2];
shift = 0;
plotOnline = false;
runCVEdecoder = true;
bw=0.05;
Nbs = 100;
tbDelay_0=tlimsDelay_0(1):bw:tlimsDelay_0(2);
tbAll = tlimsAll(1):bw:tlim... |
8267828df8bda825c485f38513c0354d057c31d3c678b5a2dd41b9baab5031dc | MATLAB | 28,741 | 706 |
%% get variables
% usePoints = [1000:6000];%; 10000:15000; 20000:25000];%; 30000:35000; 40000:45000];
% useTrialIDs = 1;%[1,4; 2,5; 3,6];%; 4,7; 5,8];
% savePrefixs = {};
% for dataSetIndex = 1:size(usePoints,1)
% savePrefixs{dataSetIndex} = ['systemCTRNN_NewSigma' num2str(dataSetIndex)];
% end
% % usePoints = ... |
7b6f685b7156408d7f03609cbfe19bd2ba86b19e75fba9589415c5576fe8f2a6 | MATLAB | 28,817 | 609 | % Type information on a property.
% This class encapsulates type, shape and domain constraints on property
% values.
%
% Examples:
% PropertyType('denserealsingle', 'scalar')
% creates a non-sparse single real scalar with unrestricted value
% PropertyType('denserealdouble', 'scalar', [-1,1])
% creates a n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.