sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
197cb3e6c2fce485cfe24b2282ba0123f94e9251a57aa83aa4fe40e3e0a43415 | MATLAB | 2,352 | 87 | % getTaskfileFromStimfile.m
%
% $Id:$
% usage: getTaskfileFromStimfile(v,scanNum,groupName)
% by: justin gardner
% date: 11/20/13
% purpose: extracts the task file that was run from a stimfile and saves in the local diretory
%
% v = newView;
% getTaskfileFromStimfil... |
59153ba386da41011c57b2d7afd5a64bb0c5f28666d07c587d3b4bd5e0e3914e | MATLAB | 2,352 | 53 | function [startTimes, endTimes] = extractStepSegs(folder)
%% setup
[~, file] = fileparts(folder);
chanlist = readSpikeFile(fullfile(folder,[file '.smr']),[]);
chanindsAll = [chanlist.number];
chaninds = find( arrayfun(@(x) any(strcmp(x.title,{'Keyboard'})),chanlist) );
rawdata = importSpike(fullfile(folder,[fi... |
1176deabb6c196ff0f003cd1679820c23f13744aaffc4af2e4990d3ba68cc8f5 | MATLAB | 2,354 | 74 | addpath(genpath('C:\Users\Yijun\Documents\MATLAB\EXTRACT-public-master'));
%% Start the main pipeline
filenames = {'sim_0','sim_1','sim_2','sim_3','sim_4','sim_5','sim_6','sim_7','sim_8','sim_9'};
% radii = [4:8];
radii = [9,10];
SNRs = [2:7];
% SNRs = [3:4:23];
CV_times = zeros(length(filenames),length(radii),length(... |
ac31a5246de30ddbfe54b16b832f63b3746e61784911b8944dc41346851c1afc | MATLAB | 2,355 | 51 | function ithres = intensity_filter(maxall)
tmp1 = maxall;
tmp1 = tmp1(tmp1 > 1/2^8); %%% above 0 in terms of single precision %%%
if ~isempty(tmp1)
% try
% nbins = round(length(tmp1) / 10);
% [tmp1, ctrs] = histcounts(tmp1, nbins);
% ... |
ae26aa264420b976d66911234c173265581ab2c9646cae346fa0bcd5c88753ea | MATLAB | 2,355 | 42 | % Marc Normandin, Muzzio Lab, Psychological & Brain Sciences, University of Iowa, 2024
function [output] = ml_algo_bfo_percell_and_behaviour_general_single(maps, contextIds, digs, rotationsDeg, MIN_DIFFERENCE_FOR_MAX_CORRELATION)
% Force to use two contexts because some cells only have data for one (rare).
uniq... |
cb815b4b288ac5ddf2667cb432dec4e1182faf224a606a6ac428a0409963f671 | MATLAB | 2,355 | 107 | %
% Double layout
%
% PARAMETERS
% $network
%
% INPUT FILES
% dat/info.$network
% dat/data.$network.mat
% dat/decomposition_map.stoch.$network.mat
%
% OUTPUT FILES
% plot/lybl.[ab].$network.png
%
network = getenv('network');
consts = konect_consts();
info = read_info(network);
n = info.n
%
% Actual graph
%
dat... |
9bf53a319a340cd9a5c5a93f845f3f67902531844fc478421590c82532e54828 | MATLAB | 2,356 | 73 | function [] = convertAgilentToCvs(dataDir, outputDir)
% [] = convertAgilentToCvs(dataDir, outputDir)
% Convert Agilent .D files into CVS text files. The GCMS data is
% represented as a matrix of 2,401 x 550, where the 2,401 rows represent
% the time steps from 6 to 30 minutes (in 0.01 minute intervals) and the
% 500 c... |
c4781e2af3e2121c64a5b78cd5bc1b81d873706b376536bfa87a27556b9ec06e | MATLAB | 2,356 | 45 | function [x_bounded, y_bounded, xedges, yedges, xi, yi, sxi, syi, ...
spikeCountMap, visitedCountMap, dwellTimeMap, ...
positionProbMap, meanFiringRateMap, ...
meanFiringRate, peakFiringRate, ...
informationRate, informationPerSpike, ...
dwellTimeMapSmoothed, meanFiringRateMapSmoothed, ...
meanF... |
6c181a9dbff94d2e84a1086497170f59a64cb93224b1dc63b5bb6af35cdb50cc | MATLAB | 2,357 | 78 | % f_GetBniSignals.m
function [str_SignalsStr s_SigNum s_Scale] = ...
f_GetBniSignals( ...
p_strBniName, ps_IsBinType)
if nargin < 1
return;
end
if ~exist('ps_IsBinType', 'var') || isempty(ps_IsBinType)
ps_IsBinType = 1;
end
if ps_IsBinType
str_NChanFile = 'NCH... |
f26312e4bf3d6f884c5ba371a9e351fa6a8c0d8bd19fc39cdc2a1acca635274d | MATLAB | 2,357 | 89 | function varargout = cstructdecode(buf, varargin);
% CSTRUCTDECODE decodes a structure from a uint8 buffer
%
% See READ_NEURALYNX_NEV for an example
% Copyright (C) 2007, Robert Oostenveld
%
% This file is part of FieldTrip, see http://www.ru.nl/neuroimaging/fieldtrip
% for the documentation and details.
%
% Field... |
acc7f75b047d436e220ffcf1b393a99d6f7c66df6b0c185b5a8b2093dc092b45 | MATLAB | 2,359 | 87 |
close all;
clear all; clc
%% create figure 2C
%% janine.thome@zi-mannheim.de
%% path
pato=['/###/Figures/']; %% add output path
if ~isdir(pato), mkdir(pato); end
%% fig set
fs=16; lw=2;
basevalue=0; ... |
02675c3fa3e4b031908b2d36af30faf5b445e6563188312681e95cc764a4cea4 | MATLAB | 2,360 | 69 | function [dat] = read_biosig_data(filename, hdr, begsample, endsample, chanindx)
% READ_BIOSIG_DATA reads data from EEG file using the BIOSIG
% toolbox and returns it in the FCDC framework standard format
%
% Use as
% [dat] = read_biosig_data(filename, hdr, begsample, endsample, chanindx)
% where the header has to be... |
6cf29c689d0c3a2150a1a8565c3c21e4ae8e2bfbb26c7943281dd2d62171b9da | MATLAB | 2,360 | 97 | %% OpenMEEG for EEG from Fieldtrip demo script
% This script provides an example of how to compute an EEG leadfield with OpenMEEG in the Fieldtrip toolbox.
%
% This demo uses spherical head models and compares the OpenMEEG result with the analytical solution.
%% Set the radius and conductivities of each of the compart... |
f6689083f216a65b2aa28db5ec8603b02a92b6684ad5ae39c93f40d9aa9051d0 | MATLAB | 2,360 | 73 | % This example shows the various wasys plotChannels can be used.
clear all
% Design Parameters (module, roi)
probe.module = createModule(4, 30); % nsides, mdimension
probe.roi = createROI(100,90); % width and height
probe.module.srcposns = [-12.5,12.5; 12.5,-12.5];
probe.module.detposns = [-12.5,4; -4,12.5; 12.... |
0c7829d927d7036dcdbfcd878652551dae3186f864963b358cb4632cf7ae1ef6 | MATLAB | 2,361 | 67 | classdef VectorIndex < types.hdmf_common.VectorData & types.untyped.DatasetClass
% VECTORINDEX Used with VectorData to encode a ragged array. An array of indices into the first dimension of the target VectorData, and forming a map between the rows of a DynamicTable and the indices of the VectorData. The name of the Vec... |
291c7cfd6ec454129d80931101cda19abd69a14023612ab229bf3cef73bf367e | MATLAB | 2,361 | 71 | %{
Copyright (C) Cambridge Electronic Design Limited 2014
Author: James Thompson
Web: www.ced.co.uk email: james@ced.co.uk, softhelp@ced.co.uk
This file is part of CEDS64ML, a MATLAB interface to the SON64 library.
CEDS64ML is free software: you can redistribute it and/or modify
it under the t... |
8cee83c5ae3ea83c148c4614ac95c40bdc2cc8912064f37670f978767ee7d1f0 | MATLAB | 2,361 | 72 | % VL_DEMO_SIFT_VS_UBC Compare VLFeat SIFT with Lowe's original
% --------------------------------------------------------------------
% Load a figure and original SIFT keypoints
% --------------------------------------------------------------------
im = imread(fullfile(vl_root, 'data', 'box... |
eb6668b19b17bfe6f98d7e6094661ba7e7c3d36c728e4882b583e031bb2028a5 | MATLAB | 2,361 | 71 | %{
Copyright (C) Cambridge Electronic Design Limited 2014
Author: James Thompson
Web: www.ced.co.uk email: james@ced.co.uk, softhelp@ced.co.uk
This file is part of CEDS64ML, a MATLAB interface to the SON64 library.
CEDS64ML is free software: you can redistribute it and/or modify
it under the t... |
81451702c485c52acf19af040a6985a37ca3a6c85ad3c9c80c409e9a4a05a44d | MATLAB | 2,363 | 64 | % preprocessEphysData.m
%
% Function to take output from preprocessUserDaq.m and extract
% appropriately scaled and named ephys data (voltage, current, scaled
% out, gain, mode, freq)
%
% NOTE TO SELF: edit code to deal with voltage/current commands
%
% INPUTS:
% daqData - data collected on DAQ, with fields labeled... |
d1bd141f5c94afab240f84476cbffbdb5d0f41287bdc66fb93230110097d6777 | MATLAB | 2,364 | 101 | function nifti4dto3d(infile,outfile)
% NIFTI4DTO3D - Convert a single 4D NIfTI file into a series of 3D NIfTI
% files
%
% Synopsis:
% data = nifti4dto3d(infile,outfile,param1,value1,param2,value2,...)
%
% Description:
%
% Examples:
%
% See also:
%
% This function is a part of Aedes - A graphical tool for an... |
4fcabf6a5fcd5ed2ca3aa62bef75a635224619f58b5f1952086cd1ba7d8fa781 | MATLAB | 2,365 | 108 | function [ynn_t,nn_stat,nn_dyn,Xi,Ai] = TrainNLSNLD(Imat_t,dsr_t,nh,no,tn)
maxiter = 10;
ynn_t = zeros(tn,no);
int_mat_1 = zeros(nh,tn);
check1 = Inf;
x_in = Imat_t;
net_s = feedforwardnet(2*nh,'trainlm');
net_s.layers{1}.transferFcn = 'logsig';
net_s.layers{2}.transferFcn = 'purelin';
net_s.trainPar... |
a773dda9cc18353bd288798ccc7102ba8769cd620b2b43e9b81f2a416373cc27 | MATLAB | 2,365 | 72 | function [Xc,Z]= airPLS(X,lambda,order,wep,p,itermax)
% Baseline correction using adaptive iteratively reweighted Penalized Least Squares;
% Input
% X:row matrix of spectra or chromatogram (size m*n, m is sample and n is variable)
% lambda: lambda is an adjustable parameter, it can be adjusted by u... |
705279b27938d7c9a7d636e78f7685d811e55a71d36541efb7bb3145df75f4a9 | MATLAB | 2,368 | 65 | function imdb = setupScene67(datasetDir, varargin)
% SETUPSCENE67 Setup MIT Scene 67 dataset
% This is similar to SETUPGENERIC(), with modifications to setup
% MIT Scene 67 according to the standard evaluation protocols. The
% function supports only the LITE option.
%
% See: SETUPGENERIC().
% Author: An... |
764829b76d62f45475c26930352963a21abd1bd05ff3c3d606a7080f1249cb7c | MATLAB | 2,368 | 78 | function mlgp_create_climerics_database(obj, session)
fprintf('Creating ics database for session %s\n', session.getName());
numTrials = session.getNumTrials();
numCells = [];
ics = [];
trialIds = [];
contextIds = [];
cellIds = [];
tstart = tic;
for iTrial = 1:numTrials
... |
562a1cd855d084cb46774f56f5e0f16f7bf6767f509ee473b1cd99b1decfc339 | MATLAB | 2,370 | 75 | addpath(genpath('C:\Users\Yijun\Documents\MATLAB\EXTRACT-public-master'));
%% Start the main pipeline
filenames = {'sim_0','sim_1','sim_2','sim_3','sim_4','sim_5','sim_6','sim_7','sim_8','sim_9'};
radii = [4:10];
% radii = [4:8];
% SNRs = [1:4];
SNRs = [5:6];
% SNRs = [3:4:23];
CV_times = zeros(length(filenames),lengt... |
99bbbd38cdbd663bfb0b449e7d062e5fc180b9699788959e87e95135380692fd | MATLAB | 2,370 | 83 | function R=latmio_und(R, ITER)
%LATMIO_UND Lattice with preserved degree distribution
%
% L = latmio_und(A,ITER);
%
% This function "latticizes" an undirected network, while preserving the
% degree distribution. The function does not preserve the strength
% distribution in weighted networks.
%
% Input: ... |
b9ca70bd656de75fbf1b7290ef68a8f8e653d39c1bea64df18589e74aef61657 | MATLAB | 2,370 | 55 | function [Pwire, Ewire] = wire_single_loop(Rx, Ry, a, b, N, M, type)
% This function creates the structured wire grid for a single
% ellipsoidal or circular loop with semi-axes Rx, Ry
% a - cross-section conductor radius in m when option type='circle' is chosen for
% the wire cross-section
% a, b - cond... |
d2770886f93057a9da5f2981ea5da6640ff0cc1ef5ea54561de9d57a9285d7c3 | MATLAB | 2,370 | 75 | addpath(genpath('C:\Users\Yijun\Documents\MATLAB\EXTRACT-public-master'));
%% Start the main pipeline
filenames = {'sim_0','sim_1','sim_2','sim_3','sim_4','sim_5','sim_6','sim_7','sim_8','sim_9'};
radii = [4:8];
% radii = [9:10];
% SNRs = [2:4];
SNRs = [2:7];
% SNRs = [3:4:23];
CV_times = zeros(length(filenames),lengt... |
4728513cc861aff22f6800fd099d03284dd5c3137a960bcaa739cd5edba5f07b | MATLAB | 2,371 | 108 | function [ynn_t,nn_stat,nn_dyn,Xi,Ai] = TrainNLSNLD4SerMCNN(Imat_t,dsr_t,nh,no,tn)
maxiter = 10;
ynn_t = zeros(tn,no);
int_mat_1 = zeros(nh,tn);
check1 = Inf;
x_in = Imat_t;
net_s = feedforwardnet(nh,'trainlm');
net_s.layers{1}.transferFcn = 'logsig';
net_s.layers{2}.transferFcn = 'purelin';
net_s.tr... |
7df97cb0c10bd681e81a628b00185aa7c4ea1b2f85088dfa7ae0c8599cab7924 | MATLAB | 2,371 | 56 | % mglSocketRead: Read data from one or more opened socket.
%
% $Id$
% usage: data = mglSocketRead(s, typeName, [rows, columns, slices])
% by: justin gardner and ben heasly
% date: 12/26/2019
% copyright: (c) 2021 Justin Gardner (GPL see mgl/COPYING)
% purpose: Reads data from a socket that... |
a50a2b4ef20b549d8d89443ee05a5ca4840be9dd2dc0e3cbe1d2b6cc33bb4281 | MATLAB | 2,371 | 59 | classdef ExperimentalConditionsTable < types.hdmf_common.DynamicTable & types.untyped.GroupClass
% EXPERIMENTALCONDITIONSTABLE A table for grouping different intracellular recording repetitions together that belong to the same experimental condition.
% REQUIRED PROPERTIES
properties
repetitions; % REQUIRED (Dynam... |
f8917a7d9fee4232b4fd0a0ca51bb4f085aa409e9d9611e02a9d8c9d63110c51 | MATLAB | 2,371 | 108 | function [ynn_t,nn_stat,nn_dyn,Xi,Ai] = TrainNLSNLD4SerECNN(Imat_t,dsr_t,nh,no,tn)
maxiter = 10;
ynn_t = zeros(tn,no);
int_mat_1 = zeros(nh,tn);
check1 = Inf;
x_in = Imat_t;
net_s = feedforwardnet(nh,'trainlm');
net_s.layers{1}.transferFcn = 'logsig';
net_s.layers{2}.transferFcn = 'purelin';
net_s.tr... |
d0c2b9828522b7ed64aad8a39149a28b8e58a093acc1504c88210e4fd52cc0d1 | MATLAB | 2,372 | 51 | function [ns_RESULT, Index] = ns_GetIndexByTime(hFile, EntityID, Time, Flag);
%ns_GetIndexByTime Retrieves an entity index by time
%
% Usage:
% [ns_RESULT, Index] = ns_GetIndexByTime(hFile, EntityID, Time, Flag)
%
% Description:
% Searches in the file referenced by hFile for the data item
% iden... |
fd8095a3c72c43c6df7d10b10498680985dbd983b8b2c22031cb0733338ba3ac | MATLAB | 2,372 | 61 | function tree = xmltree(varargin)
% XMLTREE/XMLTREE Constructor of the XMLTree class
% FORMAT tree = xmltree(varargin)
%
% varargin - XML filename or XML string
% tree - XMLTree Object
%
% tree = xmltree; % creates a minimal XML tree: '<tag/>'
% tree = xmltree('foo.xml'); % creates a tree from... |
c4edeb611f826fc1b4c8565fb20569701d708a72213bee67e050b8589b8d8ce2 | MATLAB | 2,373 | 97 | function results = vl_test_alldist(varargin)
% VL_TEST_ALLDIST
vl_test_init ;
function s = setup()
vl_twister('state', 0) ;
s.X = 3.1 * vl_twister(10,10) ;
s.Y = 4.7 * vl_twister(10,7) ;
function test_null_args(s)
vl_assert_equal(...
vl_alldist(zeros(15,12), zeros(15,0), 'kl2'), ...
zeros(12,0)) ;
vl_assert_equa... |
ac3d3ab8df5966c374d5b9e3cc555b4810689ee08d722fbcd8a05ef9d594d855 | MATLAB | 2,375 | 45 | function mltp_plot_bfo_90_ac(obj)
numAngles = 4;
best_fit_orientations_all_contexts = zeros(obj.Experiment.getNumSessions(), numAngles);
plotlegend = cell(obj.Experiment.getNumSessions(), 1);
for iSession = 1:obj.Experiment.getNumSessions()
session = obj.Experiment.getSession(iSession);
... |
9b34be36d2a4695aa961d000a83aa10394f1c9b5f5fcf42ae1286afc31a7986d | MATLAB | 2,376 | 57 | function [s] = load_dataset(folder)
[BestAligned, analysisSettings] = load_best_aligned(folder);
[MapsData] = load_maps_data(folder, analysisSettings);
% Verify the integrity of the data because we have to index between the tables.
[n_errors, bad_ba_rows] = verify_data_integrity(MapsData, BestAligned);... |
ad1b0a6c415c357869d06d363092e6f20dda22bc0f24c74ed7347cd23e86abe3 | MATLAB | 2,376 | 61 | function [Uout, UoutAll] = fresnel_propagation_multi(Uin, lambda, dx, z, phi, nidx)
% [Uout, UoutAll] = fresnel_propagation_multi(Uin, lambda, dx, z, phi, nidx)
%
% Simulates optical propagation through a medium with phase masks applied
% at specified points. The inputs are
%
% - Uin - incident field
% - la... |
383f15f2837ceee4e0c3f72e39f1c3bc25c81eb25193d5f0e16bc4d3bc6873e7 | MATLAB | 2,377 | 56 | classdef rectangle_AOI < AOI
%UNTITLED5 Summary of this class goes here
% Detailed explanation goes here
methods
function self = rectangle_AOI(aois, trail, allowed_angle)
self.all_AOIs = aois;
self.allowed_angle = allowed_angle;
self.trail = trail;
... |
71982f2139617a322aa69ea17fac73303fe5539561bd9eb3714fa8ecf3954455 | MATLAB | 2,378 | 76 | clear;
close all;
clc;
Delta_e = 0.2;
Delta_i = 0.015;
Iattn = 0.02;
allTime = 5000;
cond = 3;
% intracolumn connection probability % [Wagatsuma 2011]
p_base = [0.1184, 0.1552, 0.0846, 0.0629, 0.0323, 0.0000, 0.0076, 0.0000;
0.1008, 0.1371, 0.0363, 0.0515, 0.0755, 0.0000, 0.0042, 0.0000;
0.0077, 0... |
8d3623a86fcaba3bb48d52ed296120b502fa923e9915fcd5aca547ef17954e96 | MATLAB | 2,378 | 48 | function ml_motion_save_h5( motionData, outputFilename )
%% This function saves the motion data in HDF5 file format.
% Create the file
if isfile(outputFilename)
delete(outputFilename)
end
fid = H5F.create(outputFilename);
H5F.close(fid);
numSamples = motionData.track.numSamples... |
dd66400ad41ee89d3e8b4030888591af01e2a4d7e5929230418485325c9d653f | MATLAB | 2,378 | 49 | function spm_check_orientations(V)
% Check the dimensions and orientations of the images
% FORMAT spm_check_orientations(V)
%
% V - a structure as returned by spm_vol.
%_______________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
% John Ashburner
%... |
b1c9686b47e319174497fc754a9110c738f0d790e3ae7a24bead7741294b437d | MATLAB | 2,379 | 53 | clear
cd ./reverse-responselight
% C1S2:loop;C1S3:go cue;C1S4:go judge;C1S5:no gocue;C1S6:nogojudge;
% C1S7:go Hit;C1S8:go miss;C1S9:no go CR;C1S10:airpuff;OUT1:reward;OUT2:airpuff;
% OUT5:light
control=dir('C*.mat');
inhibit=dir('I*.mat');
performence=[];
for i=1:length(control)
load(control(i).name)
... |
f0e38e1060b4393bb52d2e3680830c0eaa679afc2aced39f516e1c834b34ddfc | MATLAB | 2,379 | 81 | %Run simulated normal data to check Type I error rate and power
%
%AUTHOR: Eric Fields
%VERSION DATE: 13 July 2017
clearvars;
%% Set-up
global VERBLEVEL
VERBLEVEL = 0;
%Design
n_electrodes = 1;
n_time_pts = 1;
n_subs = 16;
wg_design = [2 2 2];
%Effect
dims = [3 4 5];
%Parameters
n_exp = 1e3;... |
d2fd0ba4cb7fda50b5b9580fc81fc1bdf37729f2b7782e91208f242de0684c5a | MATLAB | 2,380 | 60 | % expand_unitsTableEM
% add columns with diffs right - left
[RR, CC]= size(unitsTable);
Titles = unitsTable(1,:);
% unitsTable(1,CC+1) = {'RLDiff.L_modep'};
% unitsTable(2:RR,CC+1) = num2cell(cell2mat(unitsTable(2:RR,find(strcmp(Titles,'theta.R_modep'))))...
% - cell2mat(unitsTable(2:RR,find(strcmp(Titles... |
626a0ef6d586060fa2b0bf5094448383bf216fbab4f35af5f2bef516286684a7 | MATLAB | 2,381 | 70 | function KLDs = gretna_KLDs(Data, varargin)
%==========================================================================
% This function is used to calculate KL divergence based similarity among
% all pairs of probability distribution functions in the Data.
%
% Syntax: function KLDs = gretna_KLDs(Data, varargin)
%
% In... |
51be4b4eeae72aff816ca1656f0c53bfb6bb85422bd2839663166f1d6699ff6d | MATLAB | 2,382 | 86 | %% fix errors in the 10, 20, 50 movies
tags = {'20071009_153624',
'20071009_154355',
'20071009_155327',
'20071009_160257',
'20071009_160940',
'20071009_161603',
'20071009_163231',
'20071009_163846',
'20071009_164618',
'20071009_222528',
'20071009_223250',
'20071009_223914',
'20071009_224903',
... |
0b1f3fad949bc36611d08cbf3b51bf7ea3d47e37a1b042b5584616529c6969d4 | MATLAB | 2,383 | 53 | clear
cd ./reverse-cuelight
% C1S2:loop;C1S3:go cue;C1S4:go judge;C1S5:no gocue;C1S6:nogojudge;
% C1S7:go Hit;C1S8:go miss;C1S9:no go CR;C1S10:airpuff;OUT1:reward;OUT2:airpuff;
% C1S11:light; OUT5:light
control=dir('C*.mat');
inhibit=dir('I*.mat');
performence=[];
for i=1:length(control)
load(control(i).na... |
78915654e856e03945117ff5c678e9046b38af99483c141d368fc644660f76e4 | MATLAB | 2,384 | 63 | function extract_replay_onsets(cfg,data)
% Extract replay onset times and align them with the fMRI data for analysis.
Subjid = data.SubjID ;
fprintf('extract replay onsets for sub-%02d\n',Subjid)
% Define the path for saving onset results
onsetPath = fullfile(cfg.pathResults, ['onsets-' cfg.task]);
if ~exist(onsetPa... |
5a1da4bd48ab17a84edfaa61d96102bcb91e3d2b1f91c39bb04266b73c819e88 | MATLAB | 2,386 | 97 | function [newPI,final_pts,point_distance,points_out] = stat_remover(track_set,trax_X,trax_Y,X,Y,fsize,framelimit)
dis_thresh = fsize;
trav_thresh = 10;
moving_traces = cell(1,size(track_set,2));
tXmat = trax_X;
empty = find(cellfun('isempty', tXmat(:,:)));
tXmat(empty) = {NaN};
tXmat = cell2mat(tXmat... |
c6a01f257c8d7a814ae1e71aafc0e00fbca3ea625f75ad08c2c4d70148719280 | MATLAB | 2,386 | 68 | function [t] = neuralynx_timestamp(filename, num)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% SUBFUNCTION for reading a single timestamp of a single channel Neuralynx file
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright (C) 2007, Robe... |
4bfed444cdf5e4d5323c245628b41a6939e4b35fb8abfec774488411ee28a37c | MATLAB | 2,387 | 77 | function dm=buildMyDesingMatrix(dspec,vars,trialIndices,params,remConst,addBias)
% BUILD DESIGN MATRIX
dm = buildGLM.compileSparseDesignMatrix(dspec, trialIndices);
if ismember('X',vars)
bs = basisFactory.makeSmoothTemporalBasis('raised cosine', params.maxPos, params.n_pos_bins, @(x)(x==0)+ceil(x/params.binSizePos... |
083dc8361811d005ebafedbdc40199ae8febac66dbf0a44e7591c54457be9e70 | MATLAB | 2,388 | 50 | %%
if find(strcmp(PLOT_TYPE,'tuning')),
% plot distributions
figure(tuneFig); clf; %set(gcf,'position',[1284,30,800,540]);
Frows=3; Fcols=3;
% tunes.mat: rows are:
mysubplot(Frows,Fcols,1,1);
for fuu=1:Nuu, vec(fuu) = tunes(fuu).mean; end; myhist(vec,[0,0.95],40); xlabel('mean');
... |
6fd03498f3609545fb633483eb8c5724ce92062decad70a203ec32d219a05d61 | MATLAB | 2,388 | 68 | function [reg_coupling, mean_reg_coupling, num_struct_edges] = fcn_regional_coupling(struct_edgevec, func_edgevec, nsub, nreg)
% fcn_regional_coupling Regional structure-function coupling
%
% [reg_coupling, mean_reg_coupling] = fcn_regional_coupling(struct_edgevec, func_edgevec, nsub, nreg);
%
% Structure-funct... |
8342bdee2e5638a5d1d679bd54eb06751972c7c40347d5e1008046b1b58ae79b | MATLAB | 2,388 | 76 | addpath(genpath('C:\Users\Yijun\Documents\MATLAB\EXTRACT-public-master'));
%% Start the main pipeline
filenames = {'sim_0','sim_1','sim_2','sim_3','sim_4','sim_5','sim_6','sim_7','sim_8','sim_9'};
radii = [2:10];
% radii = [4:10];
% radii = [4:8];
SNRs = [5:6];
% SNRs = [1:4];
% SNRs = [3:4:23];
CV_times = zeros(lengt... |
ad671214f31bfc0cda7e9268086f70b1fd146c22c164b681688795cba7edead0 | MATLAB | 2,388 | 64 | function [I Q F]=motif3struct_wei(W)
%MOTIF3STRUCT_WEI Intensity and coherence of structural class-3 motifs
%
% [I Q F] = motif3struct_wei(W);
%
% Structural motifs are patterns of local connectivity. Motif frequency
% is the frequency of occurrence of motifs around a node. Motif intensity
% and coherence... |
d99783fd615d165d988d117f87688e97222a7e40a6b61953bdcc6ffc5c36ad7e | MATLAB | 2,388 | 61 | function mltp_plot_bfo_90_averaged_across_sessions(obj)
% Only applicable if experiment has more than one session
if obj.Experiment.getNumSessions() < 2
warning('plot_best_fit_orientations_averaged_across_sessions requires more than one session of data. Skipping.')
return
end
tmp =... |
224f91708ee99d28004b949be815d399710d97e1375ae157099be2f0e463e8b2 | MATLAB | 2,390 | 64 | % addAcceleration2PData.m
%
% Function that loops through all pData in folder provided, computes
% acceleration from FicTrac velocity measurements, and saves it back into
% the pData.
% Smooths velocity again before computing acceleration and smooths
% acceleration before saving it.
%
% INPUTS:
% pDat - full path ... |
28824ca9e2a4339063c9221dd98da519738d4326e9dc690a550739d4b2c31004 | MATLAB | 2,391 | 81 | function [source] = fixinside(source, opt)
% FIXINSIDE ensures that the region of interest (which is indicated by the
% field "inside") is consistently defined for source structures and volume
% structures. Furthermore, it solves backward compatibility problems.
%
% Use as
% [source] = fixinside(source, 'logical');
... |
9db12452c817466fc55a40b2fc8af6efb802f167e3221465fc2b3ebfd3c130ef | MATLAB | 2,391 | 74 | function [nrm] = normals(pnt, tri, opt);
% NORMALS compute the surface normals of a triangular mesh
% for each triangle or for each vertex
%
% [nrm] = normals(pnt, tri, opt)
% where opt is either 'vertex' or 'triangle'
% Copyright (C) 2002-2007, Robert Oostenveld
%
% This file is part of FieldTrip, see http://www.ru.... |
a74153ba8292796355b41003e40970753a4447f5daf47b207087ee8c0a278d7a | MATLAB | 2,391 | 68 | function [subject_survival_list, subject_survival, missing_data] = FD_survival_plot(group_folder_path,subject_list_file)
%Displays a colour map of the number of seconds remaining at various FD thresholds
% Inputs:
% group_folder_path Full filepath to where your subject visit folders
% are loc... |
a8b06cc88984e9fb2f1ecea48ef2548f5d3aa9d0e8f3399b7d27ce43ec998f91 | MATLAB | 2,391 | 67 | function [event] = read_nex_event(filename)
% READ_NEX_EVENT for Plexon *.nex file
%
% Use as
% [event] = read_nex_event(filename)
%
% The sample numbers returned in event.sample correspond with the
% timestamps, correcting for the difference in sampling frequency in the
% continuous LFP channels and the system samp... |
759c7b88ac7b663579b8bd92ef292355225bc274f5b2eebc9150649b62eeaecc | MATLAB | 2,392 | 83 | % mglGluAnnulus - draw annulus/annuli at location x,y
%
% $Id$
% usage: results = mglGluAnnulus(x, y, isize, osize, color, [nslices], [nloops], [antialiasing])
% by: Benjamin Heasly
% date: 03-17-2022
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% inputs: x,y ... |
e9ff57446bc735e5613fedd86e419a3a35717fcc8ae0c483b8d7e0b28f648ea3 | MATLAB | 2,393 | 99 | function [Y, sel] = vl_colsubset(X,n,varargin)
% VL_COLSUBSET Select a given number of columns
% Y = VL_COLSUBSET(X, N) returns a random subset Y of N columns of
% X. The selection is order-preserving and without replacement. If N
% is larger or equal to the number of columns of X (e.g. N = Inf),
% then the fun... |
eb1afeeeb43fd5165427852f1ae7f2e16a18f063676a674ef567214e441999eb | MATLAB | 2,393 | 64 | %{
Maxwell Gagnon July 19
This detects segments from a small set of experiments that Jaydev ran in
the summer of 2019.
%}
function [startTimes, endTimes] = extractSineSegs_B(folder)
%% setup
[~, file] = fileparts(folder);
chanlist = readSpikeFile(fullfile(folder,[file '.smr']),[]);
chanindsAll = [chanlist.number];
ch... |
f42dcdc2a7b8d39b8fd924a705cc5ca77e975a5dfa7ff6d3fc8fd344ed615c56 | MATLAB | 2,395 | 67 | % getFrameSwingStance.m
%
% Function to convert step-wise swing stance calls to frame-wise swing
% stance calls.
% For each frame, for each leg, swing = -1; stance = 1; not moving = 0;
% no step call = -2.
% For time between end of not moving bout and start of a step, call as
% stance.
%
% INPUTS:
% legSteps - str... |
020cf832ce4e3fc3a276a4212a6d3cc66b8bf0b50f31b1f80cefa7c290137721 | MATLAB | 2,396 | 76 | function handle = ternary_tick_labels( handle, varargin )
% ternary_tick_labels create axes tick labels
%
% Inputs
%
%% Input Checking
if (nargin < 1)
error('Too few inputs')
end
% Check var_tick
if ( nargin<2 || isempty(varargin) )
varargin = {'FontWeight','Bold', 'FontS... |
e1de822f994b2ef01208fa22fe250ec9c0b3d423b727122fcf73599fd5c12cc6 | MATLAB | 2,396 | 81 | function [val, remaining] = keyval(key, varargin)
% KEYVAL returns the value that corresponds to the requested key in a
% key-value pair list of variable input arguments
%
% Use as
% [val] = keyval(key, varargin)
%
% See also VARARGIN
% Undocumented option
% [val] = keyval(key, varargin, default)
% Copyright (C)... |
28cd8c80495582052f21f00283f8c4a6b9512c3727a30b31203f5e4aba866273 | MATLAB | 2,397 | 66 | function Score = NS_RecordAnalyze(app, displayH)
% imbinarize gives a good readout of a single object (gut) in a good image
% use this instead of the inaccurate method in FROI0
Group = app.Experiment.Groups(app.IDs.Group).Group;
Record = Group.Records(app.IDs.Record).Record;
IG = Record.Data.Source;
sz = size(IG);
... |
5eb1b9c6eb07a0080c200154832018bf955b97d9c2fa16940cf463e3df695dd4 | MATLAB | 2,397 | 73 | %
% Please cite this paper if you use any component of this software:
% S. Soltanian-Zadeh, K. Sahingur, S. Blau, Y. Gong, and S. Farsiu, "Fast
% and robust active neuron segmentation in two-photon calcium imaging using
% spatio-temporal deep learning," Proceedings of the National Academy of Sciences (PNAS), 2019.
%
... |
75c56f6af43dcca655f1bd217d2022240afc8b2c62188577a80edc6b2fe4940f | MATLAB | 2,398 | 42 | function [r_s,edges_s,edge_type,myosin,P] = initial_myosin(r_s,T_s,edges_s,edge_type,P)
% find the triangle formed by spectrin bundles in the bottom left of
% the network
aux = find(r_s(P.actin,1) == min(r_s(P.actin,1)) & r_s(P.actin,2) == min(r_s(P.actin,2)));
aux_T = [find(T_s(:,1) == P.actin(aux));fi... |
bfbca8732d6532cc79d647acf3c64e8f5831c33d5f754203ccbbd8e600b714af | MATLAB | 2,399 | 74 | function gui_sc (action)
%
% This file is used by FASTICAG
% This file holds the callbacks for save-dialog
% @(#)$Id: gui_sc.m 8776 2013-11-14 09:04:48Z roboos $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Global variables
% Handle to the window
global hf_FastICA_Save;
% Hand... |
39441c668b3cf2f37336356a0618eb1d83d36ebfdb82824ac60398bf07c396d6 | MATLAB | 2,402 | 78 | function error_by_dir_shift=decoding_movement_duration_chance(score,idx_dir,idx_duration,ref_bin,Ndim)
%% decoding_movement_duration_chance predicts the duration of trajectories in score using as reference the trajectory of duration bin ref_bin
% The output of this function is a matrix of the prediction error when the
... |
edf7224552869f32c95278f551191ef2f6b256db37fdcd22204b80c2642ff310 | MATLAB | 2,402 | 109 | %
% Generate and plot a SynGraphy graph.
%
% PARAMETERS
% $network
%
% INPUT FILES
% dat/statistic.size.$network
% dat/statistic.volume.simple~$network
% dat/statistic.twostars.$network
% dat/statistic.threestars.$network
% dat/statistic.fourstars.$network
% dat/statistic.triangles.$network
% dat/statistic.squares.$n... |
6dd08ca0877a557c6d8408b7ea3ce1e7cc3a199e7a679fbce2583af133aeccbf | MATLAB | 2,403 | 72 | % mglMirrorOpen: Open a new mgl window in the same context as the primary window.
%
% $Id$
% usage: mglMirrorOpen(whichScreen, screenX, screenY, screenWidth, screenHeight)
% by: ben heasly
% date: 08/29/2022
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpos... |
7930771b1ee9873f5e84408068ee080dc3f67c6ded0a224de801eabb851ff11e | MATLAB | 2,404 | 72 | function [rf2D, rf1D] = createRF(params)
for ii = 1:length(params.x0)
% Build 2D Gaussian pRFs
% We use build-in vistasoft function because that's what we use to
% solve retinotopy data.
rf(:,ii) = rfGaussian2d(params.X, params.Y,...
params.sigmaMajor(ii), ...
params.sigmaMino... |
8d97395fb77eaabc1db9c7805e55552e3921550ab8010c2b2047c3b975a10056 | MATLAB | 2,404 | 79 | %% fitlm between str connectivity, dis, commu and metabolic connectivity
%% the dis and communicability are calculated by averaging individual auc
%% para
roi_num = 48;
load('Sub_matrix_str_DBM.mat')
str_data = mean(sub_matrix,3);
load('Sub_matrix_fun.mat')
fun_data = mean(sub_matrix,3);
load('Sub_bin_dis_str_DBM.mat'... |
0355ffed2d2e06a3fc65f2ca43881c3f225343eb3fd9fcf136a9b3afc17c2a69 | MATLAB | 2,406 | 73 | % returnSelectMetaDat.m
%
% Function that takes in metaDat struct, metaDat variable, and condition to
% filter on for the metaDat variable and returns indices of valid data as
% well as metaDat struct with only the valid rows.
%
% Operates on either single variable or cell array of them. For numerical
% variables, co... |
87d347b1a0129e7ae2d4b7c8516d6389bfd6faedd3593f35e98de018139725bd | MATLAB | 2,406 | 59 | classdef SimultaneousRecordingsTable < types.hdmf_common.DynamicTable & types.untyped.GroupClass
% SIMULTANEOUSRECORDINGSTABLE A table for grouping different intracellular recordings from the IntracellularRecordingsTable table together that were recorded simultaneously from different electrodes.
% REQUIRED PROPERTIES... |
62cde1c3aac548b4483dd81492b41fbe0338531b4ad650630f8d5604118bc9d7 | MATLAB | 2,407 | 64 | % VL_IHASHSUM Accumulate integer labels into a hash table
% [H,ID,NEXT] = VL_IHASHSUM(H,ID,NEXT,K,X) counts the number of
% occurences of the columns of X, accumulating these to the hash
% table represented by the tripled H,ID,NEXT.
%
% X is a D x N array of class UINT8 each row of which defines an D
% dimen... |
90388469886c3b67ca85c831388178dbfc2f7c183c0b792a6765b4ffbf1ed1f6 | MATLAB | 2,407 | 84 | function [] = simseq_writeParFile(sessionDir)
% Function to create a parfile for mrVista GLM purposes
%
% simseq_writeParFile(subjnr, sessionDir)
%
% Example:
% sessionDir = pwd;
% simseq_writeParFile(subjnr, sessionDir)
cd(sessionDir);
% Get number of runs/files
d = dir(fullfile(sessionDir,'/Stimuli/simseqPRF*.mat')... |
cca02944191c09fda4ab9f9f4a4dcf28e9f061655c7468c38057447c40ae9e12 | MATLAB | 2,407 | 68 | function[unsuccessful,incorrect_scores,correct_scores]=find_misclassified(cluster_outcome,errors,figyesno)
% function to look at silhouette scores of data for clustering combinations
% that only had x amount of misclassified cells
%take reduced subset of cluster_outcome that is within the range of
%experimentally o... |
31420f61c28d0437d66b6d039cf4266201716783972d85d3b13f915f68be8c45 | MATLAB | 2,409 | 69 | function acuteNormalize
% This script normalizes FLAIR scans and lesions
% It assumes lesions are drawn on a TRACE scan and a FLAIR is present
% the TRACE is coregistered to the FLAIR, the FLAIR is normalized
% BSD 2-Clause license Chris Rorden 12/2023
dirs = dirVisible('/path/to/bids');
outdir = pwd; //e.g. '/Users/c... |
5d4d21bde7265fd4721f95c600fe5118622002c561bb9794932f28b4bc8b532c | MATLAB | 2,409 | 123 | clear all
close all
% addpath('../lib/')%add the lib to path, wherever you have put it.
%similar code structure as the main part of Fig 2
lrstr='lr';
pathcolorinfo={
% 'WalnutN1','#9A6324';
% 'WalnutN3','#9A6324';
'Marmoset','#469599';
'Daphne','#ffe119';%this is a macaque
'chimp','#e6194B';
... |
dafe64c7fb2b9a3f8c3af76f110758060e7dcb9f6ee06c883c9645fa0b8b88b5 | MATLAB | 2,409 | 65 | % mglMetalArcs.m
%
% $Id$
% usage: results = mglMetalArcs(xyz, rgba, radii, wedge, border)
% by: Benjamin heasly
% date: 03/17/2022
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: Draw "vectorized" arcs with xyz, rgba, radii, wedge
% usage: results... |
2079ad5dc87008cc2f92098cfa96775744a39e342a8fc39e86455d473f7e92ff | MATLAB | 2,410 | 94 | %% BurstParameters
% attenzione non da worning su nomi
%% Set up iniziale
% nbins=100;
clear
close all
fc = 10000;
BD_Sponge_18_all = []; %da cambiare manualmente per ora per ogni configurazione (seleziona tutti e modifica)
SpXBst_Sponge_18_all = []; %da cambiare manualmente per ora per ogni configurazione (sele... |
21bf77743e938e516e7719675675596797b3029ca05cdaedd50cb83412616ec7 | MATLAB | 2,412 | 43 | % analyze TREX outputs and derive behavioral measures
% in this version, just use X, Y coordinates
PlotItemsStr = '{''DistRadial'', ''DistMaxRadial'', ''DistAvgRadial'', ''PathLength'', ''DMRperPL'', ''PathLengthperTime''}';
ParamAnalysisItemsStr = '{''PlateDiam'', ''mm_pix'', ''TREXcm2cm'', ''FPS'', ''MaxDuration'', ... |
68a29d8d0a93e8f6eff44e47570a0f84ea9c3ca3d4f8a36f8925ef0858f1e127 | MATLAB | 2,412 | 81 | function stimchans = networktest(pairs, ntrials)
%function stimchans = networktest(pairs, ntrials)
%
% Runs the "network" experiment, where it pseudo-randomly selects
% channels from the pairs list to stimulate with single pulses. Assuming
% 20 trials (the standard), the program will take one minute per
% ... |
4860ed2e567f3fcfcb32908c40578cc06a67a43026d4abd1177c73592bd3e550 | MATLAB | 2,413 | 71 | ftd = load('Data/GMR_82E08_AE_01_TrpA_Rig1Plate15BowlD_20110921T110439/movie/movie-track.mat');
ctraxd = load('/nearline/branson/bowl_data/GMR_82E08_AE_01_TrpA_Rig1Plate15BowlD_20110921T110439/registered_trx.mat');
cald = load('Data/GMR_82E08_AE_01_TrpA_Rig1Plate15BowlD_20110921T110439/calibration.mat');
%% histogram ... |
7bc1e330430bad911ea63c2580cc777e4250174bc54422b2e98e8fff5edf1aef | MATLAB | 2,414 | 72 | %{
Copyright (C) Cambridge Electronic Design Limited 2014
Author: Greg P. Smith
Web: www.ced.co.uk email: greg@ced.co.uk
This file is part of CEDS64ML, an SON MATLAB interface.
CEDS64ML is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License... |
1db6966ff9eb6d823a39a4b3e7fba99957534698851218eb08fc14bd24ac5505 | MATLAB | 2,415 | 89 | % plotPDataRawTracesEphys.m
%
% Quick script to plot raw traces given user-selected pData file
% Written to plot traces for manuscript.
% Adaptation from plotPDataRawTraces.m from 2P-Analysis-Code
%
% CREATED: 9/9/23 - HHY
%% plotting parameters
jPot = 13; % junction potential (to be subtracted from Vm)
Vmscale = [-7... |
cb7f64231aa731cdb9649152bb8ff32c2e4cb201a6386ecd397a836b9c52ff85 | MATLAB | 2,416 | 80 | %% fitlm between str connectivity, dis, commu and chemoarchitectonic connectivity
%% the dis and communicability are calculated by averaging individual auc
%% para
roi_num = 48;
load('Sub_matrix_str_DBM.mat')
str_data = mean(sub_matrix_smo,3);
load('neuro_trans_net.mat')
fun_data = TM_net.JHU;
load('Sub_bin_dis_str_DB... |
9bd80bfd21e0ff1f95c040c2775ffa85559b37975256cde1580b471ef106a038 | MATLAB | 2,417 | 91 | %
% Please cite this paper if you use any component of this software:
% S. Soltanian-Zadeh, K. Sahingur, S. Blau, Y. Gong, and S. Farsiu, "Fast
% and robust active neuron segmentation in two-photon calcium imaging using
% spatio-temporal deep learning," Submitted to PNAS.
%
% Released under a GPL v2 license.
functio... |
b8c44ee879665c69bedc0c0abee0151b092bff37fdf64cbf3cc6a78d4a73ff2e | MATLAB | 2,417 | 63 | % mglContextFlushAll: Flush all stashed and active mgl contexts.
%
% $Id$
% usage: results = mglContextFlushAll()
% by: ben heasly
% date: 09/07/2022
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: Flush all stashed and active mgl contexts.
% usage... |
c7a6330378d45c4873db07d949fc63b383fb298566ed0826f424f9ef1a30d025 | MATLAB | 2,418 | 75 | % mglMakeGaussian.m
%
% usage: mglMakeGaussian(width,height,sdx,sdy,<xCenter>,<yCenter>,<xDeg2pix>,<yDeg2pix>)
% by: justin gardner
% date: 09/14/06
% purpose: make a 2D gaussian, useful for making gabors for
% instance. Set mglVisualAngleCoordinates before
% using.
%
% ... |
96aa9eba5c90b4a14cc706538e88f066676b0e8e6dd56a8b7d09ca9165bfe0ff | MATLAB | 2,419 | 73 | close all
clear all
cols = lines(4);
r_s = r_save{1,1};
ax_vec =[87.0614872174388,2905.92230826158,-100,2044];%[min(r_s(:,1))-100 max(r_s(:,1))+100 min(r_s(:,2))-100 max(r_s(:,2))+100];% -300+[87.0614872174388,2905.92230826158,-100,2044];-300+[87.0614872174388,2905.92230826158,-100,2044];%
aux2 = r_s(edges_s(edge_... |
e82ebe0e19b7a5111e431f8ff8e86b066f0454acfd82450ec3fe9b2d03d22b65 | MATLAB | 2,419 | 40 | % Marc Normandin, Muzzio Lab, Psychological & Brain Sciences, University of Iowa, 2024
function [hFig1, hFig2, hFig3, hFig4] = plot_stability_cell_averaged_rate_matrices_within_across(DaysToSessions, RateMatrices, BestAligned, ....
BESTALIGNED_STABILITY_THRESHOLD_CRITERIA, RATE_MATRICES_PER_CELL_NORMALIZATION_METHO... |
31999a094fbec3d377ff7811113cd3725e5368268c0dcdffca98220ec3fffc06 | MATLAB | 2,420 | 74 | % medFiltRmvOutliers.m
%
% Function to remove outliers from a 1D vector by median filtering
% (dimension specified by user) and then replacing all outliers (defined
% as values +/- specifed percentage away from median filtered value) with
% median filtered value
% Helper function for preprocessLegTrack(). Run on leg... |
356cfc9806d09dca835d1b32962feecc65e82d7ce1212a363bf7e0faaf889339 | MATLAB | 2,420 | 60 | function seq = get_sequences(stg,prf,dontsave)
% provides indices of TRs which should be used for each class and each
% image.
%
% GET_SEQUENCES(STG,PRF) reads presentation time and imaging
% acquision time as well as ID of the object/classes presented from the
% PRF variable and saves the TR indices of each pres... |
6cfc90dbdd384b8895b1ee594a3cde102cb6e9c75291d5b7feff8a8c9d8fba24 | MATLAB | 2,420 | 78 | function [nts] = read_neuralynx_nts(filename, begrecord, endrecord);
% READ_NEURALYNX_NTS reads spike timestamps
%
% Use as
% [nts] = read_neuralynx_nts(filename)
% [nts] = read_neuralynx_nts(filename, begrecord, endrecord)
% Copyright (C) 2006-2007, Robert Oostenveld
%
% This file is part of FieldTrip, see http:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.