sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
80dc876bca51c0aa41d77e81308b63cac843ea9324f068296e01cb39a42cf08e | MATLAB | 4,727 | 129 | function vr_pos = load_godot(basepath,varargin)
% load_gadot
%
% Input:
% basepath: A string representing the path to the directory containing
%the GADOT experiment files. This directory should contain at least one .txt
%file with the experiment data.
%
% Output:
% A Matlab table containing the following columns:
... |
82a3993d436151ea579386f3e1cdebfd0d0c2aa3101d10ef8734513c07389e07 | MATLAB | 4,728 | 156 | function [stats,st] = ccs_lme_fit_FS(X,Zcols,y,ni,e,D,phisq)
% [stats,st] = lme_fit_FS(X,Zcols,y,ni,e)
%
% Linear mixed-effects estimation by the Fisher scoring algorithm.
%
% Input
% X: Ordered design Matrix (according to time for each subject).
% Zcols: Vector with the indices of the colums of X that will be consider... |
0a102d6beddbdd85e47043977c93324821ab5942f5452df82bea2a3dd4d38b2d | MATLAB | 4,729 | 173 | % Demo for DCM for fMRI (without Balloon observer)
% This demo inverts the DCM for fMRI model, without the ballon model, which
% is replaced by a nonlinear sigmoid observation function.
% close all
clear variables
%% First get neural level dynamics
n_t = 1.5e2;
TR = 2e0;
microDT = 1e-1;
nreg = 3;
nu = 2;
u =... |
731c489adb3631a6638de0471da77a9fcba1f3a2b4b5d54868c788464b142dc0 | MATLAB | 4,729 | 156 |
load('D:\InVivo\Imaging\2022-09-22_Grids-Imaging\FOV1-225um\ephys\Grid-LFP-DS.mat')
load('D:\InVivo\Imaging\2022-09-22_Grids-Imaging\FOV1-225um\ephys\badChannels.mat')
addpath('U:\Personal\MATLAB\Inpaint_nans\')
addpath(genpath('U:\Personal\MATLAB\TravelinWave\'))
gridMapping = [15 0 16 31 ...
... |
ce31f2dd5d41cf5c0ab789cd1699c9f7c7b261e4a3ffc47bb24782688f688571 | MATLAB | 4,729 | 147 | function [Xzetai,Xi,Ai,Ri,ni,zzi,SXnorm,xbar,Ybar,Yi] = ManteData_AllData(Data,cntxt,includeTerms,variable_name,ssm,TrainTrials)
% function [Xzetai,Xi,Ai,Ri,ni,zzi,SXnorm] = ManteData_AllData(Data,cntxt,includeTerms,variable_name,ssm,TrainTrials)
% Make sufficient statistics for Mante data using all units
% Motion cont... |
bc18bea36b647d2036dee87c844b5cbe838889d52bd6960e6dfc6b400e69c886 | MATLAB | 4,732 | 150 | function M = stiefelfactory(n, p, k)
% Returns a manifold structure to optimize over orthonormal matrices.
%
% function M = stiefelfactory(n, p)
% function M = stiefelfactory(n, p, k)
%
% The Stiefel manifold is the set of orthonormal nxp matrices. If k
% is larger than 1, this is the Cartesian product of the St... |
bda53bbe09d2c19739143939c61308b6557db20dea1c650e3181292e0be568f2 | MATLAB | 4,732 | 172 | function [pX,gX,pY,gY,X,Y] = VBA_MCMC_predictiveDensity(f_fname,g_fname,u,n_t,options,dim,N,np,lx,ly)
% prior predictive density under sDCM generative model (MCMC)
% function [pX,gX,pY,gY,X,Y] =
% VBA_MCMC_predictiveDensity(f_fname,g_fname,u,n_t,options,dim,N,np)
% IN:
% - f_fname: name/handle of the evolution funct... |
e3f4f7f9a97868431d55c82138ad6923561bf21e2506d6deb5c59b68dfd2175c | MATLAB | 4,732 | 132 | % Author: Birgit Nierula
% nierula@cbs.mpg.de
function esg_prepro_loop1(subject, condition, srmr_nr, sampling_rate)
%% loop 1: downsample for ica and channel inspection (make plots for all subjects and conditions)
% set variables
subject_id = sprintf('sub-%03i', subject);
raw_path = [getenv('RAWDIR') subject_id '/ee... |
620439eb096da7e506c6262843e71d646e4b782b539cba1452aafc620f3fa7d5 | MATLAB | 4,733 | 157 | function demo_MFX
% this demo exemplifies the use of mixed-effects analysis in VBA
ns = 8; % #subjects
dim.n_phi = 2;
dim.n = 1;
dim.n_theta = 2;
dim.p = 1; % data dim (within-subject)
dim.n_t = 16; % trials (within-subject)
% simulate MFX
y = cell(ns,1);
nu = ones(5,1); % population mean
alpha = 100; % population pr... |
1936ccb08e06cb5e2835f086560ea7fb3f5dfaf8f074711b7d41a549a6cdc566 | MATLAB | 4,736 | 132 | function [basis,gradbasis]=legs(x,dir,n,scale)
% usage: [basis,gradbasis]=legs(x,dir,n,scale)
%
% returns the values and directional derivatives of (n+1)^2-1 basis functions
% constructed from spherical harmonics at locations given in x and, for the
% gradients, for (in general non-normalized) directions given in di... |
e2514c50181b5ef1e9e46ecc3010e8be7a71a06fb918b1a4d3a10b85a0be070e | MATLAB | 4,736 | 123 | function h=subaxis(varargin)
%SUBAXIS Create axes in tiled positions. (just like subplot)
% Usage:
% h=subaxis(rows,cols,cellno[,settings])
% h=subaxis(rows,cols,cellx,celly[,settings])
% h=subaxis(rows,cols,cellx,celly,spanx,spany[,settings])
%
% SETTINGS: Spacing,SpacingHoriz,SpacingVert
% ... |
7c29ed865755423c8b2ea2e879bd0f8252a4ff9fed981394d86e5ed7afdb3baf | MATLAB | 4,737 | 137 | function [U]=lfmm3dpart(iprec,nsource,source,ifcharge,charge,ifdipole,dipstr,dipvec,ifpot,iffld,ntarg,targ,ifpottarg,iffldtarg)
%LFMM3DPART Laplace particle targ FMM in R^3.
%
% Laplace FMM in R^3: evaluate all pairwise particle
% interactions (ignoring self-interactions) and interactions with targs.
%
% [U]=LFMM3DPART... |
a9dd8e3026806e13fcb1bcbaabf3ece0ed69a2e5338d6e0c0fa3caec90c036c2 | MATLAB | 4,740 | 142 | function [new_gamma2] = DTFsigvalues(ts, low_freq, high_freq, p, fs, shufftimes, siglevel, handle)
% DTFsigvalues - compute statistical significance values for relative DTF values
%
% Input: ts - the time series where each column is the temporal data from a single trial.
% low_freq - the lowest frequency ... |
cb5872559f21743cb10e8c2378a9012288885c9f18ae87aee6b18ed8784e99c9 | MATLAB | 4,742 | 120 | %{
Copyright (c) 2025 Axion BioSystems, Inc.
Contact: support@axion-biosystems.com
All Rights Reserved
%}
classdef ChannelMapping
%CHANNELMAPPING represents the mapping of an electrode position to an
%Amplifier (Artichoke) channel by way of the plate it was recorded
%with.
%
% WellRo... |
f0f8c86cfb5e8f5a8a60d9e7117e7189aaa59534cb8701d48fdcf3af57102ce7 | MATLAB | 4,744 | 114 | function hsd_header = getHsdHeader_ver4(hsdFile)
% New hsd version 4 for saving filtered data (not generated at rig)
% 4/3/2017 M. Farries
% started by Jason, 7/26/06
% edited by Greg, 14-Nov-2006
% edited by Dan Leventhal, 9/17/2010
% % % HSD simple data format for high-speed neurophysiological
%... |
43d4f2e3fc500390c8a39e3eb3323e631ebc0329d58308a6f78e7be93b39ba0e | MATLAB | 4,745 | 200 | % [threshx,cost,classorder] = onedim2kclass(x,idx,...)
%
% finds the k-1 thresholds that best separate the input one-dimensional
% data vector x into k classes
%
% input:
%
% x: n x 1 is the n one-dimensional data points
% idx: n x 1 is the integer labels for each data point
%
% optional:
%
% 'issorted': true/false, w... |
1912fb77d681f0282ecfd19d31d22ff021f589cc940c67e78b055d6c2a0fff0a | MATLAB | 4,746 | 177 | function allplots_cortex_mina2(sa, data, colorlimits, cm, unit, smooth, varargin)
%% varargin options
% example: (...,'views', 1:8, 'save', 1, 'namesave','mysources','saveformat','epsc')
% views -----------
% 1 = left lateral, 2 = left hem medial
% 3 = rightlateral, 4 = right medial
% 5 = dorsal, 6 = dorsal horizontal... |
8d29640b9c6f1134bdb3699f006c32f4ee28eb977072694ec529355f1edd7df8 | MATLAB | 4,746 | 100 | function boney_segment_cmdline(job,out,i,stime2,rerunstr)
% boney_segment_cmdline. Just print to the command line
% _________________________________________________________________________
%
% Robert Dahnke & Polona Kalc
% Structural Brain Mapping Group (https://neuro-jena.github.io)
% Departments of Neurology and Psy... |
5c25cf5cc88d52a888c604bd2c4f44082dec2fac29602a73fc76f1b21a991975 | MATLAB | 4,748 | 188 | function hfig = DockerBackEndSettingsDialog(obj)
lObj = obj.labeler_;
nrows = 3 + 2;
h = 30;
W = 500;
ysep = 5;
H = (h+ysep)*(nrows+1);
hfig = uifigure('Name','Docker Backend Settings',...
'Units','pixels','Position',[300 300 W H]);
xborder = 20;
xsep = 5;
yseprel = .025;
wquest = (W-xborder*2-xsep)*.5;
wans = (... |
11e10f42e627b227de37ed302441638a57eb0f306a8d369e446f93ddacc39413 | MATLAB | 4,751 | 121 | % FT_PREAMBLE_PROVENANCE is a helper script that records the time and memory at the
% start of the function. At the end of the function FT_POSTAMBLE_PROVENANCE will
% record and store the time and memory in the output configuration together with
% information about the environment, such as the name of the user and comp... |
1b9f6705256c4a0fbee8a10ad52b397a9ed16f88466f6406ea8345ad2213da75 | MATLAB | 4,752 | 102 | function lan_master_gui_drip(LAN_var, mainfig, parent_)
LAN = LAN_var;
if nargin < 2
mainfig = figure;
end
figure(mainfig);
cfg_control(1) = uicontrol('style', 'text', 'units', 'norm',...
'position', [.04 .92 .6 .05], 'string', 'channel(s) : ',...
'horizontalalignment', 'right');
cfg_control(2) = uicontr... |
d78c40708fea4290c1fc3f6e89d2d4e1a168974b0a139d2b5099a125a7d23d6e | MATLAB | 4,752 | 122 | function DataStructure=LinearFit_ZN2(Xdata,Ydata)
if size(Xdata,1)<=1&&size(Xdata,2)<=1&&size(Ydata,1)<=1&&size(Ydata,2)<=1
warning('Need to provide more than one data point to fit!')
DataStructure=[];
elseif size(Xdata,1)~=size(Ydata,1)||size(Xdata,2)~=size(Ydata,2)
warning('Need to pro... |
6a5380f265fbc5beea62f52840c608f974cbeb0af03a920ad7b2981a1f69103e | MATLAB | 4,754 | 89 | % GET_FIELD_FD_CUDA Solves sparse system of linear equations using BiCGStab
% solver and FSAI preconditioning. Parallelized for multithreading with
% NVidia CUDA. Uses all available power of the strongest NVidia GPU
% installed. This function is limited to work one a single GPU only.
%
% SYNTAX:
% [PHI] = GET... |
733f482d3cf27886b14610fe88fc8f509a1b0d65927f2e5efd0b5d660574ac98 | MATLAB | 4,754 | 111 | function y_ICC_Image_LMM(Rate1Dir,Rate2Dir,OutputName,MaskFile)
% function y_ICC_Image_LMM(Rate1Dir,Rate2Dir,OutputName,MaskFile)
% Calculate the Intraclass correlation coefficient for brain images.
% Note: the ICC values were derived by linear mixed models (LMMs) as in Zuo et al. (2013): Zuo, X.N., Xu, T., Jiang, L... |
e47442c518cb71fa4bf7db8d9fa5c92e84738361fa3c06baec8ada51215ca83d | MATLAB | 4,754 | 200 | function [hhc pvalc cluster] = cl_random_2d(hh,stat,alpha,nrandom,limc)
% v.0.0.5
%
% Correcciones multiples por permutacion de clusters
% Inspitado en Maris & Oostenveld (2007), pero es solo una
% aproximacion !!!
%
%
% Pablo Billeke
%
% 15.05.2013 (PB) improve whe there are NaNs
% 03.02.2012 ... |
4c75493f8951484ec9686ad17901c9b906a1a76d4481b412b9d44493ccfd7d7d | MATLAB | 4,755 | 123 | % NONMAXSUPPTS - Non-maximal suppression for features/corners
%
% Non maxima suppression and thresholding for points generated by a feature
% or corner detector.
%
% Usage: [r,c] = nonmaxsuppts(cim, radius, thresh, im)
% /
% ... |
5dabdbe63e2a577d52237b532b83d31c8d33899097cf31e6f06fed32ebe11269 | MATLAB | 4,755 | 136 | function NdimSliderPlotRedraw(src,~,v)
h_f = src.Parent;
nSl = numel(v.h_sliders);
nNonSi = find(size(h_f.UserData) > 1,1,'last');
nNonSl = nNonSi - nSl;
if nNonSl == 0
nAx = 3;
else
nAx = nNonSl;
end
%% Set slider if source was one of the center buttons
for iSl = find(src == v.h_centerbutton... |
7c3b68c4bdcf4e3b2892354525f9f9809906b43cc6c165a049e49a0bc235d25d | MATLAB | 4,756 | 139 | function spkDat = ReloadWaves(spkDat, trodeFile, varargin)
[wL, nChan, nSpk] = size(spkDat.waves);
pk = double(spkDat.peakLoc);
wP = double(spkDat.wavePad);
wL = wL - 2*wP;
upsample = spkDat.upsample;
batchSize = 32768;
verbose = true;
whiten = false;
alignWin = spkDat.alignWin;
% convert wave parameters to ms
wL = 10... |
0c0867f5448c956fc40733d6deb6615e8c5d7c02775a0c54ae8c2db751a1d304 | MATLAB | 4,763 | 124 | function F = in_fread_manscan(sFile, sfid, iEpoch, SamplesBounds)
% IN_FREAD_MANSCAN: Read a block of recordings from a MANSCAN file
%
% USAGE: F = in_fread_manscan(sFile, sfid, iEpoch, SamplesBounds) : Read all channels
% F = in_fread_manscan(sFile, sfid) : Read all channels, all the... |
fb51f3b1baba3c67f9c2dbfa100cb2d6709f9e97419ae9cec95b0c4a7c014ccc | MATLAB | 4,763 | 168 | % take fluoro data, finds the max, finds the baseline region as x
% images before the max, calculates the average fluorescence over that
% region, calculates max deltaF/F
% TODO: should change this figure to display time and not images
function [bf, maxF, df, sds, maxFSmooth, dfSmooth, sdsSmooth, bdps, window, imgs_F... |
f7308b76f061c583588e3512c0d68fd6e3ead3e97794ffa357bb8013998544e2 | MATLAB | 4,764 | 150 | function cleanDat = CleanTest(spkDat, varargin)
minIsi = 1; % in milliseconds
Fs = spkDat.Fs;
wvFs = Fs * spkDat.upsample;
winIn = 'auto';
clustList = setdiff(unique(spkDat.id), 0);
clustListIn = clustList;
verbose = true;
spkDat.waves = double(spkDat.waves);
[wL, nChan, ~] = size(spkDat.waves);
pk = spkDat.peakLoc;
w... |
566dba90eefa1f2644271ccaf7162110d6c51250cca51637975b8c37d8dad55b | MATLAB | 4,765 | 186 | function [cs,coh,nave]=data2cs_event(data,segleng,segshift,epleng,maxfreqbin,para);
% usage: [cs,coh,nave]=data2cs_event(data,segleng,segshift,epleng,maxfreqbin,para)
%
% calculates cross-spectra from data for event-related measurement
% input:
% data: ndat times nchan matrix each colum is the time-series in one
% ... |
0b236762d01a80cf903214a33a540101af2f4f5d0102d00eab66927d47ea3774 | MATLAB | 4,766 | 130 | function sub_fold = CBIG_cross_validation_data_split( subject_list, family_csv, ...
subject_header, family_header, num_folds, seed, outdir, delimiter )
% sub_fold = CBIG_cross_validation_data_split( subject_list, family_csv, ...
% subject_header, family_header, num_folds, seed, outdir, delimiter )
%
% This fu... |
eb342e01d48a2c350294bbe1eaddff7faea21ca527c61f4037070618dd98900f | MATLAB | 4,767 | 114 | function varargout = DPABINet_Utilities(varargin)
% DPABINET_UTILITIES MATLAB code for DPABINet_Utilities.fig
% DPABINET_UTILITIES, by itself, creates a new DPABINET_UTILITIES or raises the existing
% singleton*.
%
% H = DPABINET_UTILITIES returns the handle to a new DPABINET_UTILITIES or the handle to
%... |
7da39f1cd93ccb030f7c91a4b359be7f2c428d7615813b76e8c380d5d881aad1 | MATLAB | 4,768 | 157 | % This script produce most panel of figure 1 (except last two panels require large-files)
%% Initialization
clear all
ignit
% ignit_cribay % Initialize the environment and dependencies
% papignit_effcc
vc = get_vizConventions(); % Load visualization conventions
% Figure dimensions
vc.f2.nR = 5; % Number of rows in fi... |
8e5c19eef16888f4dfe205c846183d1f81ea6160884eb3468d0813e2db054460 | MATLAB | 4,768 | 145 | function [assignment, cost] = assignmentsuboptimal1(distMatrix)
%ASSIGNMENTSUBOPTIMAL1 Compute suboptimal assignment
% ASSIGNMENTSUBOPTIMAL1(DISTMATRIX) computes a suboptimal assignment for the
% given rectangular distance (or weight) matrix, for example the assignment
% of tracks (in rows) to observations (in ... |
53c28d5b7566e6d9c4c3e2adf3f02f69a7272b14dee59927f6ad980a3e0a953d | MATLAB | 4,771 | 142 | function pairsOut=View_Clear_Brain_ROI_Corr_fc2(Anat,IM,M,dataOut,fc,Pmax,params)
%
% This function draws ROIs on the brain and connecting rods colored by sign
% of correlation values in C. This can be the fc correlation itself if that
% is passed, or it can be the correlation of brain fc with behavior if that
%... |
a849542994613bbedbef8b0b953bfdfb8890701c9a1fcd50f81c2e0865f0c4a1 | MATLAB | 4,772 | 134 | function [stat, cfg] = ft_statistics_crossvalidate(cfg, dat, design)
% FT_STATISTICS_CROSSVALIDATE performs cross-validation using a prespecified
% multivariate analysis given by cfg.mva
%
% Use as
% stat = ft_timelockstatistics(cfg, data1, data2, data3, ...)
% stat = ft_freqstatistics (cfg, data1, data2, data3... |
b9ddf4e73e9ef27179165f41364fc94243e5c34fad82ff27e0488e3352c6d8ca | MATLAB | 4,772 | 110 | % Get period based wheel slope data
% Edited by Jerry. 11/14/2022
function [wheelSopeData,szInclude,szExclude,wheelSopeInclude] = ...
GetWheelInfo_221114(params,szCell,szDir,szTiming,BLthd,SaveDir)
sps = params.SampleRate; % 1000
PreIctalOffset = params.PreIctalOffset*sps; % baseline 60s*1000
IctalCutof... |
f8a3d62cbbd3d1550b60b01d394c1098ab56b20610cebf7ffc6a9c5065fce2db | MATLAB | 4,774 | 148 | function [bels, converged] = belPropResidual(cg, varargin)
%% Belief propagation using the dynamic update schedule of Sutton & McCallum
% Messages are passed according to a dynamcially updated priority queue,
% ordered by *estimates* of the message residuals. Sutton &
% McCullum call this RBP0L, (residual belief propag... |
c0175bd32cfff5108a016acef1a0fbce4911ab9aa067d14b788bb61aa691d9d8 | MATLAB | 4,775 | 133 | function [err,F,DCMnames] = VBA_spm_dcm_batch(DCM0dir,newVOIdir,newSPMdir,Unames,Ynames,est)
% replicates one single subject DCM analysis over a set of subjects
% function [err,F] = spm_dcm_batch(DCM0dir,newVOIdir,newSPMdir,Unames,Ynames)
% IN:
% - DCM0dir: directory where the original DCM files to be cloned are
% ... |
224aad64dc264bf53b54e6f5a3b3625fbae619494a8cdeedc1ef37bb3f5750fe | MATLAB | 4,776 | 132 | % Second-kind integral equation on an ellipse, Laplace double-layer.
%
% This is a slight generalization of IE_CIRCLE, where now the problem geometry
% is an ellipse with user-specified aspect ratio. Note that the matrix is no
% longer Toeplitz.
%
% Inputs (defaults are used if not provided or set empty):
%
% - N: nu... |
f0d597ca46ba62b99f10b3810323c9262317c26cbcf6eab4f25a7fa474a68adf | MATLAB | 4,776 | 169 | function [selected] = ft_select_point3d(bnd, varargin)
% FT_SELECT_POINT3D helper function for selecting one or multiple points on a 3D mesh
% using the mouse. It returns a list of the [x y z] coordinates of the selected
% points.
%
% Use as
% [selected] = ft_select_point3d(bnd, ...)
%
% Optional input arguments sho... |
307ec84e9a194e0aefdf2985ed3470bf72b121d2b0275b9de5219d8a57b577c4 | MATLAB | 4,779 | 162 | function [] = hintonScaleMulti(varargin)
% Like hintonScaleSingle but plots multiple images
% using same color scale
% Usage: hintonScaleMulti({X1,W1}, {args1}, {X2,W2}, {args2} ...)
%PMTKauthor Cody Severinski
% This file is from pmtk3.googlecode.com
if nargin <= 2
X = varargin{1}{1};
if(numel(varargin{1}) >... |
a44fb116a5a983799175b59ba270054c386db645d5fd4200b7664602209b18a5 | MATLAB | 4,779 | 121 | %-----------------------------------------------------------------------------------------
% Compare firing rates of odor-modulated neurons in response to actual odor
% vs. odorless control
%
% Kehl et al. 2024 (DOI:XX)
% Single-Neuron Representations of Odors in the Human Brain
% Figure 1i
% Author: Marcel Kehl
% L... |
df65d6e397dd7ded12c83528a1bce44fbdf6884000be9a14500da67cb0065c43 | MATLAB | 4,779 | 131 | function [] = plot_ground_truth(log_odd,option,method)
% Get index for PRE, RUN, POST
% states = [-1 0 1 2 3 4 5]; % sleepPRE, awakePRE, RUN T1, RUN T2, sleepPOST and awakePOST and multi-track
% states = [-1 0 1 2 3 4]; % sleepPRE, awakePRE, RUN T1, RUN T2, sleepPOST and awakePOST
states = [-1 0 1 2];
epoch_index =... |
e3b7d329e75d4e5a731f34f51fee446c3cd4622bc6d845800900f23de8912024 | MATLAB | 4,779 | 136 | function [FigureHandle] = ImageSCMapBeautifier(FigureHandle,ImageData,ColorLimits,ImageTitle,AllBoutonsRegion,ScaleBar,UseColorBar,SaveDir,StackSaveName)
% use [] for no region or scale bar and 0 for no colorbar
% ImageSCMapBeautifier(OneImage_DeltaGFP_norm_Mean,[],'Mean Response',AllBoutonsRegion,ScaleBar,1,SaveDir,S... |
6fe64d2e329551f9251656a7bb112a328c812860308ad37ece392bbe801a6969 | MATLAB | 4,782 | 163 | function varargout = VBA_spm_print(varargin)
% Print figure
% FORMAT spm_print(fname,F,opts)
% fname - output filename [Default: 'spm_<date>']
% F - figure handle or tag [Default: 'Graphics']
% opts - structure containing printing options
% [Default: defaults.ui.print from spm_defaults.m]
%
% FORMAT s... |
008f6fb48672fe913bd1cb13c7d113d5fd835c4e4eb871059f283b7367cc575b | MATLAB | 4,783 | 115 | function validInds = FindTriggersBetweenTriggers(trigs, dim, trigsToFind, windowTrigs, indsToReturn, strict, emptyVals)
% function validInds = FindTriggersBetweenTriggers(trigs, trigsToFind, windowTrigs, dim, indsToReturn, [strict], [emptyVals])
%
% find triggers between two other triggers. if before/after not given,
... |
28cfe17b597d872f6a41fcb7a9b8677c8b31e42a255ac5010b6b60513235d4f6 | MATLAB | 4,783 | 141 | function [pnt, tri] = triangulate_seg(seg, npnt, origin)
% TRIANGULATE_SEG constructs a triangulation of the outer surface of a
% segmented volume. It starts at the center of the volume and projects the
% vertices of an evenly triangulated sphere onto the outer surface. The
% resulting surface is star-shaped from the ... |
a047ac3be1485fb1e863e5e02eb9487a7a345289ae2650966b42a1268f53d55c | MATLAB | 4,785 | 126 | function mlcompCompiler(fitFn, predictFn, outputDir, fitOpts, predictOpts)
% Encapsulate fit and predict functions into an mlcomp compatible run
% script, which includes all dependent files. You must ensure that all
% functions are terminated with the syntactically optional 'end' keyword.
% This function does not supp... |
6e262104fa3421f74f454643bf2924df01cf7d235215066de1437e09b705c71a | MATLAB | 4,786 | 158 | function [stats,st] = lme_fit_NR(X,Zcols,y,ni,e)
% [stats,st] = lme_fit_NR(X,Zcols,y,ni,e)
%
% Linear mixed-effects estimation by the Fisher scoring algorithm.
%
% Input
% X: Ordered design Matrix (according to time for each subject).
% Zcols: Vector with the indices of the colums of X that will be considered
% as rand... |
865e134557482f02b1fcc5ce86f1cabbd59269585726241b6e7463d5524536f8 | MATLAB | 4,786 | 129 | % Author: Birgit Nierula
% nierula@cbs.mpg.de
function esg_prepro_loop4_check(subject, condition, iblock, srmr_nr)
subject_id = sprintf('sub-%03i', subject);
analysis_path = [getenv('ANADIR') subject_id '/esg/prepro/'];
save_path = [getenv('ESGDIR') subject_id '/'];
load([save_path 'artifacts.mat'], 'bad_channels')
... |
067d58178afda86e8f0204039da4a22ba51d2df450ce06a53b49b35055cf654f | MATLAB | 4,787 | 153 | function [] = hintonScale(varargin)
% A modified version of hintonDiagram that allows the user to specify two matrices
% X, W; where X determines the color and W determines the size
% The user can specify two optional arguments
% 'map' which colormap to use
% This file is from pmtk3.googlecode.com
if nargin <= 2... |
cc1348633ecf26be9cd3a9491a429793d41e13893b407d5536e3bc9e0cc4f7ff | MATLAB | 4,787 | 151 | function S=scale(X,a,fmin,fmax,N,trace);
%SCALE Scale a signal using the Mellin transform.
% S=SCALE(X,A,FMIN,FMAX,N,TRACE) computes the A-scaled version
% of signal X : A^(-1/2) X(T/A) using its Mellin transform.
%
% X : signal in time to be scaled (Nx=length(X)).
% A : scale factor. A < 1 corresponds to a compression... |
5ddd013d147ee1fdc580bc670ffeffde1c0482ec3a3b94dd8d7d45d2bcc735b8 | MATLAB | 4,788 | 97 | function setLabelerFigureTooltipsBang(mainFigure)
% Add tooltips to widgets and menu items in the labeler main figure.
handles = guihandles(mainFigure) ;
set(handles.pbClear, 'TooltipString', 'Clear labels in current frame') ;
set(handles.pbTrain, 'TooltipString', 'Train the part tracker') ;
set(handles.pbTrack, 'Too... |
0b543c04da6b20372fcc1ce15b2d092de3c7b4f99ca5af0ccc48cc6f5d2abbff | MATLAB | 4,789 | 140 | function [pnt, tri] = triangulate_seg(seg, npnt, origin)
% TRIANGULATE_SEG constructs a triangulation of the outer surface of a
% segmented volume. It starts at the center of the volume and projects the
% vertices of an evenly triangulated sphere onto the outer surface. The
% resulting surface is star-shaped from the ... |
5ba9fa4608a6324d45d30078a517196d61c349aac3cb96d060358ab7eb7967ab | MATLAB | 4,789 | 118 | % Get the -3dB cutoff frequency value using filtfilt.m
%
% b,a = filter coefficients.
% fs = data sample rate
% fc_user = user's frequency cutoff
%
% WARNING: For working with filtfilt.m function!
%
% filtfilt result has the following characteristics:
% a) Zero-phase distortion
% b) A filter transfer func... |
9c4af3727db1312833f2282409484993ad825a8ece5dacec002652d2e400a84e | MATLAB | 4,791 | 148 | function generateModelsVsMethodsTables()
%% Make the models vs methods tables
%
%PMTKneedsMatlab
% This file is from pmtk3.googlecode.com
[basic, supervised, latent, graphical] = classNameMappings();
titles = {
'Basic Models'
'Supervised Models'
'Latent Variable Models'
'Graphical Models'
};... |
143f5019dd042aa569015f8275578c8aba99184c9aa8d143b0a83b7691824b21 | MATLAB | 4,793 | 113 | function [J,Vxs,Vys] = imagesAlignSeq( I, pFlow, type, bndThr )
% Stabilize image sequence using coarse optical flow estimation.
%
% Perform weak image sequence stabilization as described in:
% D. Park, C. Zitnick, D. Ramanan and P. Dollár
% "Exploring Weak Stabilization for Motion Feature Extraction", CVPR 2013.
% T... |
39ccbf780a9043c158c3aeba0b9b53206005e0b6921497411a36421709360f95 | MATLAB | 4,793 | 102 | % Edited by Jerry. 07/24/2022
%
% This function classifies click events as hits (spared seizures) or
% misses(impaired seizures) based on the classification method of choice.
% also returns the total number of licks associated with each click.
%
function [clickClasses,featureArray,numLicks,timeCourses]=...
Analyze... |
0e2ecb8410bd81d43995793ebf3e62b6f2952a6ca43c1257580c7cc9b371e52e | MATLAB | 4,797 | 119 | %-----------------------------------------------------------------------------------------
% Repetition suppression of neuronal responses to repeated odor presentations
%
% Kehl et al. 2024 (DOI:XX)
% Single-Neuron Representations of Odors in the Human Brain
% Figure 3b
% Author: Marcel Kehl
% License: MIT License
%... |
27566fd4d39199773fc52ae5fe8d94f367fe902b1acd607551570fe85c605aae | MATLAB | 4,797 | 108 | function CaptureFigVid(ViewZ, FileName,OptionZ)
% CaptureFigVid(ViewZ, FileName,OptionZ)
% Captures a video of the 3D plot in the current axis as it rotates based
% on ViewZ and saves it as 'FileName.mpg'. Option can be specified.
%
% ViewZ: N-rows with 2 columns, each row are the view angles in
% ... |
673a5573665222f350377f346281594a1ecccb7cbb297c9db8cf878ce230858a | MATLAB | 4,797 | 114 | function problem_critpt = criticalpointfinder(problem)
% Creates a Manopt problem whose optima are the critical points of another.
%
% problem_critpt = criticalpointfinder(problem)
%
% Given a Manopt problem structure 'problem', this tool returns a new
% problem structure, 'problem_critpt', such that the global o... |
ecc023fcb5d92c7348643a8a16722af0a4b95bce96244faa0d1c971d8affd654 | MATLAB | 4,797 | 128 | function varargout = w_QCScore(varargin)
% W_QCSCORE MATLAB code for w_QCScore.fig
% W_QCSCORE, by itself, creates a new W_QCSCORE or raises the existing
% singleton*.
%
% H = W_QCSCORE returns the handle to a new W_QCSCORE or the handle to
% the existing singleton*.
%
% W_QCSCORE('CALLBACK',hO... |
9b5abd49fa3ec78a6702117859c8d17c83139bb7bef08dd0a2718d6ad6afb64c | MATLAB | 4,802 | 134 | classdef ExperimentCoordinator < handle
%ExperimentCoordinator Coordinate experiment selection across objects/plots.
% An ExperimentCoordinator is a hub for two-way sending/receiving of
% signals. Objects and/or plots may register with the coordinator to
% listen to the signals. They may call a method on ... |
29b18e9c7e79a3363907cc87b38180190b4b88b5165fb1977bf3c975f154f174 | MATLAB | 4,804 | 106 | clearvars
close all
set(0, 'defaulttextfontname', 'Arial')
set(0, 'defaultaxesfontname', 'Arial')
mouse_dir_ft = '../step_prob_matrices/fixed_target';
mouse_dir_rt = '../step_prob_matrices/relative_target';
mouse_dir_t1 = '../step_prob_matrices/two_target_no_cues_tgt1';
mouse_dir_t2 = '../step_prob_matrices/two_targe... |
4461d525b9999bcd736295ce39b64d6e065a7d2c0042079a659e914c7604707b | MATLAB | 4,805 | 129 | function [vertices, label, colortable] = freesurfer_read_annotation(filename)
% [vertices, label, colortable] = Read_Brain_Annotation(annotfilename.annot)
%
% vertices expected to be simply from 0 to number of vertices - 1;
% label is the vector of annotation
%
% colortable is empty struct if not embedded in .annot. El... |
e8a83df533e6f452ad6d38db1c69719d583d1f7e8d64ce0ad6a4f250e5c8e021 | MATLAB | 4,807 | 111 | function EEG = DS_characSpindles(EEG, PARAM)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Characterize event amplitude and oscillatory frequency
%
% Part of detect_spindles toolbox:
%
% Authors: Stephane Sockeel, PhD, University of Montreal
% Stuart Fogel, PhD, University ... |
0cc42b4a35bfce17a6c05626aedf84a16e96e24dbf70a248ba7b40e458623bac | MATLAB | 4,811 | 114 | function varargout = DPABIFiber_Utilities(varargin)
% DPABIFIBER_UTILITIES MATLAB code for DPABIFiber_Utilities.fig
% DPABIFIBER_UTILITIES, by itself, creates a new DPABIFIBER_UTILITIES or raises the existing
% singleton*.
%
% H = DPABIFIBER_UTILITIES returns the handle to a new DPABIFIBER_UTILITIES or t... |
1e0821e6c637ea4cd749120272f845662e664cd9cee80390105850736285806d | MATLAB | 4,812 | 116 | function [M,Vr,Vc] = meanShiftIm( X,sigSpt,sigRng,softFlag,maxIter,minDel )
% Applies the meanShift algorithm to a joint spatial/range image.
%
% See "Mean Shift Analysis and Applications" by Comaniciu & Meer for info.
%
% Assumes X is an MxNxP array, where an X(i,j,:) represents the range data
% at locations (i,j). T... |
af48d92dc4b8979f167263015de52a1da00b2d7b56987edc9da4a3f26cd3ac29 | MATLAB | 4,813 | 121 | %% Weighted optimization for CP tensor decomposition with incomplete data
% We explain how to use |cp_wopt| with the POBLANO toolbox.
%% Create an example problem with missing data.
% Here we have 25% missing data and 10% noise.
R = 2;
info = create_problem('Size', [15 10 5], 'Num_Factors', R, ...
'M', 0.25, ... |
3ceb7efc5308fa9b624cd01ed1f42e25b5d234058acee59e5ea4dffffb329c1d | MATLAB | 4,814 | 124 | function [headmodel, sens, cfg] = prepare_headmodel(cfg, data)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% SUBFUNCTION that helps to prepare the electrodes/gradiometers and the
% volume conduction model. This is used in sourceanalysis and dipolefitting.
%
% This function will get t... |
ad4323ef9053c14497b5b3e3a6626be1fcea803c2041251c46e5c833aba9380a | MATLAB | 4,814 | 120 | load(fullfile(patient_path,'dipoles',dipole_name, ...
strcat(patno,'_',model_name,'_',dipole_name,'_charge_solution_adapt')));
load(fullfile(patient_path,'dipoles', dipole_name, ...
strcat(patno,'_',model_name,'_',dipole_name,'_potentials_adapt')));
%% load additional colormaps
addpath(fullfile("../engines/Col... |
0081820a80562719821eef6861712f53746f14afd2be145ddcc26c07cf886fec | MATLAB | 4,815 | 124 | function [varargout]=errorbarxy_ZN_Full(x, y, lerrx, uerrx, lerry, uerry, xcap, ycap, MarkerColor, XErrorLineColor, YErrorLineColor, ErrorLineStyle, MarkerStyle, MarkerSize, LineWidth)
% ERRORBARXY is a function to generate errorbars on both x and y axes
% with specified errors modif... |
042b530d70192baac52162efefd546546757be4dbdc319af86a6487c5f577224 | MATLAB | 4,815 | 166 | function out = nearestInterpInParallel(imgw, map, maxhw )
% Description:
% Fill holes using nearest neighbor (median filter of neighbors) interpolation
%
% Inputs:
% imgw - input image
% map - Map of the canvas with 0 indicating holes and 1 indicating pixel
% maxhw - Max radius for nearest neighbor interpolation... |
1718d87ef661578117d9fa316fd8c7f8d72469935940177d219903567dbf6fd6 | MATLAB | 4,821 | 169 | classdef LandmarkColorSpec < matlab.mixin.Copyable
% Color Specification
%
% * Colors may be spec'd "automatically" via either colormapname,
% or "manually" by direct spec of colors
%
% In Labeler projects and eg lObj.labelPointsPlotInfo,
% .prePointsPlotInfo, etc, colors are stored only via .ColorMapNa... |
75e345d68239f15191a5cc93e8acd2449a1ab219739e64f63b4b0b85fa9847fc | MATLAB | 4,821 | 108 | %
%
% B01_raster_psth_sceneRecog_BAligned_BSep_NWB( nwbData, timestampsOfCell, channelid, cellNr, brainAreaOfCell, bin_width_raster, bin_width_fr, plot_flag)
%
%History
%12/2/21: This file is forked from original B01_raster_psth_sceneRecog_BAligned_BSep.m by JZ.
%
function [] = B01_raster_psth_sceneRecog_SAligned_old... |
d5e50c20de3d092a8022ee107fa558be1c31696400f55e260f8c87e8657f4478 | MATLAB | 4,823 | 135 | %% bootstrap_tsdata_to_spwcgc
%
% Calculate sampling distribution for pairwise-conditional frequency-domain MVGCs
% from time series data, based on a nonparametric bootstrap
%
% <matlab:open('bootstrap_tsdata_to_spwcgc.m') code>
%
%% Syntax
%
% fB = bootstrap_tsdata_to_spwcgc(U,p,fres,nsamps,acmaxlags,acdectol)
%
%... |
d9c945641176f46f714a020b4943616583b076dc7b8803322c8fb502d6cf8a2d | MATLAB | 4,823 | 124 | function X = fevalImages( fHandle, prms, srcDir, name, ext, ...
nStr, nEnd, nDigits )
% Used to apply the same operation to all images in given directory.
%
% For each image in srcDir, loads the image, applies the function in
% fHandle and stores the result. The result x=fHandle(I,prms{:}) on the
% ith image is sto... |
b2957af4f5d7c63c584b3d46102c9a7603019a5f39bc38b84cc0ab5bcbda53f7 | MATLAB | 4,827 | 120 | % missing_body_data.m
% Sarah West
% 6/17/22
% A script that finds stacks that don't have body data & creates vectors of
% NaN for the paw velocity.
% Number of frames in recording (after the "skip" number of frames).
parameters.frames = 6000;
% Initialize list of missing stacks (cell of mouse, day, stack number as
... |
4cf590eda50720bf8dd407e7c43b11ebf7a001035e2fa2a2ab96d79f0a117ecf | MATLAB | 4,828 | 114 | function outfile = hgsave_pre2008a(figname,doreplace)
% HGSAVE_PRE2008A
% Starting with MATLAB 2008a, GUIDE saves figures with '%automatic'
% functions (e.g. Callbacks, ResizeFcn ...) as anonymous function handles,
% where previous versions used strings instead. The problem is that MATLAB
% R14SP3 crashes on loading th... |
307407d6497b4a705fea2039ae82e00275f328a5435186717e75ea49b5931578 | MATLAB | 4,830 | 175 | %% This code allows complete manual reselection of every corner in the
%% images.
%% This tool is specifically useful in the case of highly distorted images.
%%
%% Use it when in memory efficient mode.
%% In standard mode, use manual_corner_extraction.m
if ~exist('n_ima'),
fprintf(1,'No image data available\n');
... |
7bb97c8ceab13bdeecc87b294e748cc49f8e4780adc583d6325d8c379e4e1490 | MATLAB | 4,831 | 138 | % Second-kind integral equation on the unit square, Laplace single-layer.
%
% This example mimics solving the Poisson equation on the unit square by using a
% single-layer volume potential, which would yield a first-kind volume integral
% equation, but we make it second-kind by artificially adding the identity. The
% p... |
fd143c8b519b6df70404c6b699422c53c8323c3ed12419ac21216be2e3bf2fe8 | MATLAB | 4,831 | 102 | %% default parameters
NE = 1000; % Number of excitatory neurons
NI = 100; % Number of inhibitory neurons
N = NE + NI; % Total number of neurons
g = NE/NI; % Excitatory to inhibitory neuron ratio
% Type of simulation
simulation_type = 'rate_based'; % rate-based simu... |
93bf7ce24465992799c90c20e87782496e830a8ffd0c3ad2469c1b848c26a21f | MATLAB | 4,833 | 94 | function Handle=getSigmoidHandle(options)
% creates a function handle to a specific sigmoid
%function Handle=getSigmoidHandle(options)
% This function creates a function handle to the sigmoid specified by its
% name in options.sigmoidName.
% Additional parameter is the options.widthalpha which specifies the
% scaling ... |
93f9d804be93bfcdb170d5ff22a0e386f09ff9bbee32472d0774e2bb02beaf50 | MATLAB | 4,834 | 134 | %% permtest_tsdata_to_smvgc
%
% Calculate null distribution for conditional frequency-domain MVGC from time series
% data, based on a permutation test
%
% <matlab:open('permtest_tsdata_to_smvgc.m') code>
%
%% Syntax
%
% fP = permtest_tsdata_to_smvgc(U,x,y,p,fres,bsize,nsamps,regmode,acmaxlags,acdectol)
%
%% Argument... |
a31f3879e36db984b108d9ae79bf9af94f488d67c80583410d4abe7b2b40f745 | MATLAB | 4,834 | 183 | function PrintAllExpPrecisionTable(Ptbls,allexptypes,savename,varargin)
exptypedict = {...
'FlyBubble','10 flies'
'SHView0','Side'
'SHView1','Front'
'SH3D','3D'
'RFView0','View 1'
'RFView1','View 2'
'RF3D','3D'
'Roian','2 mice'
'BSView0x','Bottom'
'BSView1x','Front'
'BSView2x','Back'
'Larva','l... |
513e2e57a57d8826dee930877a6dd64b0edd77d10bcd9fa9ecfaa3633ee11aba | MATLAB | 4,836 | 146 | function [ cellinfo,filename ] = bz_LoadCellinfo(basePath,cellinfoName,varargin)
%[ cellinfo,filename ] = bz_LoadCellinfo(basePath,cellinfoName) function for
%for loading cellinfo.mat files. cellinfo.mat files are saved as:
% datasetPath/baseName/baseName.cellinfoName.cellinfo.mat
%
%INPUT
% basePath
% cellinfoName... |
9a5c348267a6d3fe85a17612c73c3047425530e4e46a859c024407a7bf3e026c | MATLAB | 4,837 | 114 | function testDockerBackendConfig_(obj, labeler)
% Test the docker backend
obj.testText_ = {sprintf('%s: Testing Docker Configuration...',datestr(now))};
labeler.notifyRetrograde('updateBackendTestText');
% docker hello world
obj.testText_{end+1,1} = '';
labeler.notifyRetrograde('updateBackendTestText');
... |
cb1a508febb73466e565a99eab24765d1f8900d2c261c02919a864814e61baba | MATLAB | 4,838 | 157 | % MATLAB code provided by Seyed Mohammad Ali Rahmati
% Affiliation: Biomechanics and Motor Control Lab, Department of Biological Sciences, Georgia Institute of Technology, Atlanta, GA.
%
% Description:
% After running the optimization process (A_Optimization), this code generates the optimal
% muscle activations and sa... |
fb7979aa6bfedcf66bc3b929d74833d2e246b1efe6be691a7bf9f88d01949f66 | MATLAB | 4,838 | 158 |
%%
[varargin,rescale] = Utilities.ProcVarargin(pltFCNArgs,'rescale',0);
[varargin,Sessions] = Utilities.ProcVarargin(pltFCNArgs,'Sessions',[]);
% typeID={'DecodeTest_corrNM'};
%
% cvAccuracy=DataConvert.embCell2mat(Analyze.returnFieldValues(PlotData,typeID{decodeType}));
%
% FigHandels(1)=plt.fig('un... |
aa03e57d0393ee7eb1a61908843024cf801b4e879ffc3093fe8a32498572ed1f | MATLAB | 4,841 | 173 | function [varargout]=ShadedErrorBar(x,y,errBar,lineProps,transparent)
% Taken from raacampbell/shadedE?rrorBar https://www.mathworks.com/matlabcentral/fileexchange/26311-raacampbell-shadederrorbar
% by Rob Campbell
% small change made to fix our legend
% function H=shadedErrorBar(x,y,errBar,lineProps,transparent)
%
%... |
c3848acb0bfd819db910331d12b8f499397bda0e4a795d78191edc83abe0a7a8 | MATLAB | 4,841 | 126 | %% autocov_xform
%
% Transform autocovariance sequence for reduced regression
%
% <matlab:open('autocov_xform.m') code>
%
%% Syntax
%
% G = autocov_xform(G,AR,SIGR,useFFT)
%
%% Arguments
%
% See also <mvgchelp.html#4 Common variable names and data structures>.
%
% _input_
%
% G autocovariance sequence
... |
795ea1c73e18d5c94d276a5b9bfab59de304fb1cfc132dfa90914f0a15cdf61e | MATLAB | 4,842 | 136 | function [U]=hfmm3dpart(iprec,zk,nsource,source,ifcharge,charge,ifdipole,dipstr,dipvec,ifpot,iffld,ntarg,targ,ifpottarg,iffldtarg)
%HFMM3DPART Helmholtz particle targ FMM in R^3.
%
% Helmholtz FMM in R^3: evaluate all pairwise particle
% interactions (ignoring self-interactions) and interactions with targs.
%
% [U]=HFM... |
f7132ed0ab5fc9096ef4c72863e8ed110ea1cb4d7d2438a095286f297cda4d15 | MATLAB | 4,842 | 233 | function RT = rt_merge(RT1,RT2,varargin)
% v.0.0.4
% <*LAN)<|
%
% Description
% Take two RT structs and merge them horizontally.
%
% Parameters
% (RT) R1: First RT
% (RT) R2: Second RT
% (RT) varargin(:end-1): A variable amount of RT structs
% (bool) varargin(end): Boolean. Indicates if ... |
c7b8dce241e13738631d9b4be2d9a0a93354a886ab03e0dfb311aa9cf5e376fe | MATLAB | 4,843 | 118 | classdef (Sealed) AdjMatrixSqrLatt < adjmatrix.AdjMatrix
properties (Access = private)
GetNeighbors;
end
methods
function this = AdjMatrixSqrLatt(params, loadOnInit)
% creates a complete graph (mean-field network)
%
% params {AdjMatrixParams}: params ... |
d4800f36d51a538215cb083181b167e0d1207b72be835b85537d880959b26b7c | MATLAB | 4,843 | 112 | function [ titleStr, settings, results ] = deleteDatasources( dataview, settings )
% This function removes one or more datasources from the current collection.
% Use with care. This operation can not be undone.
%
%
%
%<PRE>
% This file is part of dspace-core.
%
% Copyright (C) ... |
1ff69c62aa9cab7b58b87db9773937100ca459dfca8b56a310f55ad129f87edd | MATLAB | 4,845 | 123 | load(fullfile(patient_path,'dipoles',dipole_name, ...
strcat(patno,'_',model_name,'_',dipole_name,'_charge_solution_adapt')));
load(fullfile(patient_path,'dipoles', dipole_name, ...
strcat(patno,'_',model_name,'_',dipole_name,'_potentials_adapt')));
%% load additional colormaps
addpath(fullfile("../engines/Co... |
9d953486e7dcbc8af7c77d61c0498da6ad03cad261809f3a3e60d5e4aef8b348 | MATLAB | 4,845 | 222 | function [logreg_results] = compute_logreg_rat(rat,parameters)
load(['data/Sessions_trials/' rat '_sessions.mat']);
ind=find([sessions.hit]>=parameters.min_perf & (([sessions.bdir]+[sessions.bfreq])/2)>=parameters.min_beta & ...
[sessions.valid]>=parameters.min_trials & [sessions.good]==1);
sessions=sessions(i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.