sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
485a743e855025cf3432860c431690ae7fb49673483702adcf2d0103aef747ec | MATLAB | 53,121 | 1,706 | PPDATASAVE.X = pTstT(:,:,:,end);
PPDATASAVE.tblMFT = tblMFtrk;
PPDATASAVE.viewCalibrationData = obj.lObj.viewCalibrationDataCurrent;
d = 2;
nviews = 2;
[N,nsamples,D] = size(PPDATASAVE.X);
npts = D / d / nviews;
PPDATASAVE.X = reshape(PPDATASAVE.X,[N,nsamples,npts,nviews,d]);
mov = obj.lObj.currMovIdx;
PPDATASAVE.movF... |
9852e2506acc239d425070b836ed00d265ee2f31836e565063d4915fb00c758f | MATLAB | 54,173 | 1,095 | %clear all
%%
addpath('/home/eswar/Documents/MATLAB/utilities/')
addpath('/home/eswar/Documents/MATLAB/MANCOVAtb')
addpath('/home/eswar/Documents/MATLAB/spm12/');
addpath(genpath('/home/eswar/Documents/MATLAB/GroupICATv4.0b/'));
addpath(genpath('/home/eswar/Documents/MATLAB/MISA-master/'));
addpath('/home/eswar/Documen... |
0937ef5b59893568a7f6e015e10db0b684cd305266eb1c83c86ae004acf47854 | MATLAB | 54,454 | 1,418 | % AUTHORSHIP
% Primary Developer: Stephen Meehan <swmeehan@stanford.edu>
% Math Lead & Secondary Developer: Connor Meehan <connor.gw.meehan@gmail.com>
% Bioinformatics Lead: Wayne Moore <wmoore@stanford.edu>
% Provided by the Herzenberg Lab at Stanford University
% License: BSD 3 clause
%
classdef Super... |
a1e059af69e841e9fa2240a39401a161ace55315900f60eab23bfe49760ae9fc | MATLAB | 54,470 | 1,097 | function [] = plot_ground_truth_compare_ripple_threshold(folders,option,method)
total_number{1}(1:3) = 0;
total_number{2}(1:3) = 0;
for nfolder = 1:length(folders) % Get total number of replay events
for nshuffle = 1:2 % 1 is original and 2 is global remapped
session_total_number{nshuffle}(nfolder,1:3) = ... |
1b705be4984f8d7797e5d9eda6d7604286f52ec5b579a7cfd983b7bb5651c9d8 | MATLAB | 54,758 | 1,182 | function [source] = ft_sourceanalysis(cfg, data, baseline)
% FT_SOURCEANALYSIS performs beamformer dipole analysis on EEG or MEG data
% after preprocessing and a timelocked or frequency analysis
%
% Use as
% [source] = ft_sourceanalysis(cfg, freq)
% or
% [source] = ft_sourceanalysis(cfg, timelock)
%
% where the se... |
c55ca31d63a6ec46b26ad6889ea11ffb48fa81568fd501b26edd40083b16204e | MATLAB | 54,804 | 1,112 | %clear all
%%
addpath('/home/eswar/Documents/MATLAB/utilities/')
addpath('/home/eswar/Documents/MATLAB/MANCOVAtb')
addpath('/home/eswar/Documents/MATLAB/spm12/');
addpath(genpath('/home/eswar/Documents/MATLAB/GroupICATv4.0b/'));
addpath(genpath('/home/eswar/Documents/MATLAB/MISA-master/'));
addpath('/home/eswar/Documen... |
c6a5521e6e5686d60f34506fe33f710a4c0db218212b55c03b4dc27f094d75d3 | MATLAB | 55,241 | 1,501 | function varargout = w_OverlayList(varargin)
% W_OVERLAYLIST M-file for w_OverlayList.fig
% W_OVERLAYLIST, by itself, creates a new W_OVERLAYLIST or raises the existing
% singleton*.
%
% H = W_OVERLAYLIST returns the handle to a new W_OVERLAYLIST or the handle to
% the existing singleton*.
%
% ... |
47f1d3822106e34e1c9626104e4616336c0f89218733dc75e4ba4448fc897f42 | MATLAB | 55,524 | 1,377 | function [x, y] = StimulusSection(obj, action, varargin)
GetSoloFunctionArgs(obj);
switch action,
% ------------------------------------------------------------------
% INIT
% ------------------------------------------------------------------
case 'init'
x=varargin{1};
y... |
709daa22484041d054e903d23de0a92af1dd5ec16c2cc9c413873479a273b8c1 | MATLAB | 55,540 | 3,810 | %% This file is auto-generated by makeRunDemos
disp('running agglomDemo.m');
try
agglomDemo;
catch
disp(lasterr);
end
pclear(5.000000e-01);
disp('running alarmDgmTimingComparison.m');
try
alarmDgmTimingComparison;
catch
disp(lasterr);
end
pclear(5.000000e-01);
disp('running alarmNetworkFitTest.m')... |
e6422f79858ada9caad1eb7b00fd3dbc11b9a7745446cee94a3cda8806f110d7 | MATLAB | 55,653 | 1,009 | cont=input('Do you really want to start from the beginning? ');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%... |
9f798c50f200b7c9a63eff065dcc88d206b60f7dbd6c0e947d066558739e520a | MATLAB | 55,711 | 930 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
e75a1b3da29751d672c45397e26451933008159e7500e431e28e04f1530f87f3 | MATLAB | 55,860 | 1,652 | function [xy,distance,t_a] = distance2curve(curvexy,mapxy,interpmethod)
% distance2curve: minimum distance from a point to a general curvilinear n-dimensional arc
% usage: [xy,distance,t] = distance2curve(curvexy,mapxy) % uses linear curve segments
% usage: [xy,distance,t] = distance2curve(curvexy,mapxy,interpmethod)
%... |
cfcc99f3a7c8683b251bd59a77c3af4131e212515b7b2eeb88af2fcbd9e1990f | MATLAB | 56,012 | 1,199 | function [source] = ft_sourceanalysis(cfg, data, baseline)
% FT_SOURCEANALYSIS performs beamformer dipole analysis on EEG or MEG data
% after preprocessing and a timelocked or frequency analysis
%
% Use as
% [source] = ft_sourceanalysis(cfg, freq)
% or
% [source] = ft_sourceanalysis(cfg, timelock)
%
% where the se... |
b8c2f9c030fa591d89828689759651c21cd0ce81f215cc003881b348dfc4060e | MATLAB | 56,278 | 1,547 | function [d,si,h]=abfload(fn,varargin)
% ** function [d,si,h]=abfload(fn,varargin)
% loads and returns data in ABF (Axon Binary File) format.
% Data may have been acquired in the following modes:
% (1) event-driven variable-length (currently only abf versions < 2.0)
% (2) event-driven fixed-length or waveform-fixed len... |
75b707838ef0736862e12d554880691f3684d0c7a49232d2d29b7eec64951aaa | MATLAB | 56,396 | 1,571 | function varargout = spider_plot(P, varargin)
%spider_plot Create a spider or radar plot with individual axes.
%
% Syntax:
% spider_plot(P)
% spider_plot(P, Name, Value, ...)
% h = spider_plot(_)
%
% Input Arguments:
% (Required)
% P - The data points used to plot the spider chart. The
% ... |
652b37b21b9d5c69b2f805e6310a4c89e0eb56c8f496384812e93e9d13590000 | MATLAB | 57,094 | 1,588 | function hfigure = imcontrast_kb(handle)
%IMCONTRAST Adjust Contrast tool.
% IMCONTRAST creates an Adjust Contrast tool in a separate figure that is
% associated with the grayscale image in the current figure, called the
% target image. The Adjust Contrast tool is an interactive contrast and
% brightness adju... |
360cb9e9e2531992009679284428ee0a46a5b9b288a151a4244f36750f67458b | MATLAB | 57,314 | 1,639 | %% Non-negative matrix factorization
%
% Factorize a large data set into a given number of groups.
% Choose number of clusters with Jensen-Shannon Divergence or
% Kullback-Leibler divergence.
%
set(0,'DefaultFigureVisible','on');
load('processed_gamma_data.mat')
DIR=pwd;
DIRresults=([DIR, '/results_task1']);
DIRscript... |
cc3004a15afa778713085887860f3d6e205c7aa11762733f7218ab9b163f5efc | MATLAB | 57,814 | 1,898 | function [AxesObj, Fcn]=w_RenderSurf(varargin)
% This file revised from spm_mesh_render.m
% Input:
% SurfFile
% AxesObj
% SurfOpt
% Output:
% AxesObj
% Fcn
%
% Copyright (C) 2011-2018 McGill Centre for Integrative Neuroscience (MCIN)
% Sandy Wang
if nargin<1
error('Gifti Surface needed!');
else
SurfF... |
7d6c71cb8bb098690dcaae8a7c4b399b789907a43d8a3be896100dcd05872a6c | MATLAB | 57,874 | 1,150 | % pipeline_treadmillencoder.m
% Sarah West
% 9/9/21
% Use "create_mice_all.m" before using this.
%% Initial setup
% Put all needed paramters in a structure called "parameters", which you
% can then easily feed into your functions.
clear all;
% Output Directories
% Create the experiment name. This is used to name... |
778f7a74b8428fcedfaa632860cfadf0b3649baa86b83b634c20b78c3d89d8bc | MATLAB | 58,379 | 1,811 | %%
% this should be run from the APT directory
%gtfile = '/nrs/branson/mayank/apt_cache/alice_view0_time.mat';
allexptypes = {'FlyBubble','SHView0','SHView1','SH3D','RFView0','RFView1','RF3D','Roian','BSView0x','BSView1x','BSView2x','Larva','FlyBubbleMDNvsDLC'};
APT.setpath;
addpath anls/gt;
%savedir = '/groups/br... |
9ea3a6e7878fd7a89778598ff866ad729192af87d398699ee9af90f0be3ed3b8 | MATLAB | 58,396 | 3,810 | %% This file is auto-generated by makeRunDemos
disp('running agglomDemo.m');
try
agglomDemo;
catch ME
disp(ME.message);
end
pclear(5.000000e-01);
disp('running alarmDgmTimingComparison.m');
try
alarmDgmTimingComparison;
catch ME
disp(ME.message);
end
pclear(5.000000e-01);
disp('running alarmNetwor... |
2775443c92696074dedda987c57283a722777474175c92e95bc76dc2ec1901dc | MATLAB | 58,955 | 1,557 | function [d,si,h]=abfload(fn,varargin)
% ** function [d,si,h]=abfload(fn,varargin)
% loads and returns data in ABF (Axon Binary File) format.
% Data may have been acquired in the following modes:
% (1) event-driven variable-length (currently only abf versions < 2.0)
% (2) event-driven fixed-length or waveform-fixe... |
f59c2a4df62123697b92eaaf264a3f212fdae73149ed1dc667101ae1a97e6188 | MATLAB | 59,560 | 1,460 | function [h,yy,zz] = arrow(varargin)
% ARROW Draw a line with an arrowhead.
%
% ARROW(Start,Stop) draws a line with an arrow from Start to Stop (points
% should be vectors of length 2 or 3, or matrices with 2 or 3
% columns), and returns the graphics handle of the arrow(s).
%
% ARROW uses the mouse (cl... |
44f069b690aa8bb79fb974b34ee9ff5eba4fad52401a2a60099b73616945781e | MATLAB | 60,108 | 1,395 | % AUTHORSHIP
% Primary Developer: Stephen Meehan <swmeehan@stanford.edu>
% Math Lead & Developer: Connor Meehan <connor.gw.meehan@gmail.com>
% Bioinformatics Lead: Wayne Moore <wmoore@stanford.edu>
% Provided by the Herzenberg Lab at Stanford University
% License: BSD 3 clause
%
classdef FalsePositiveNeg... |
0d5140ed73d2a2b6ed64a87321828d2efb2bb942b6fc0c45f811d6ac1446a353 | MATLAB | 60,633 | 1,282 | function [imageData, alpha] = export_fig(varargin)
%EXPORT_FIG Exports figures in a publication-quality format
%
% Examples:
% imageData = export_fig
% [imageData, alpha] = export_fig
% export_fig filename
% export_fig filename -format1 -format2
% export_fig ... -nocrop
% export_fig ... -c[<val>,<... |
56722169648db3878020e6648617eb36b1171383fec8acf8749837aa810d68fa | MATLAB | 61,320 | 1,527 | function [dat] = ft_read_data(filename, varargin)
% FT_READ_DATA reads electrophysiological data from a variety of EEG, MEG and LFP
% files and represents it in a common data-independent format. The supported formats
% are listed in the accompanying FT_READ_HEADER function.
%
% Use as
% dat = ft_read_data(filename, ... |
81d860e0203f9009de2040b8fdd7261a92edc8f8615a93175bc35f4e181159b2 | MATLAB | 61,459 | 1,245 | function [] = plot_ground_truth_compare_shuffles(folders,option,method)
total_number{1}(1:3) = 0;
total_number{2}(1:3) = 0;
for nfolder = 1:length(folders) % Get total number of replay events
for nshuffle = 1:2 % 1 is original and 2 is global remapped
session_total_number{nshuffle}(nfolder,1:3) = 0;
en... |
42262e9f4c2b0fd985299a29638fac331bf4f9dd54089b0d28a8a31501169ebe | MATLAB | 61,562 | 1,755 | function [data] = ft_checkdata(data, varargin)
% FT_CHECKDATA checks the input data of the main FieldTrip functions, e.g. whether the
% type of data strucure corresponds with the required data. If neccessary and possible,
% this function will adjust the data structure to the input requirements (e.g. change
% dimord, a... |
388f681ac0b4277aaa3ab379343c9567e53f45e264bb35fa1a53f6362a214efa | MATLAB | 61,623 | 1,691 | function [M, Minit, output] = cp_apr(X, R, varargin)
%CP_APR Compute nonnegative CP with alternating Poisson regression.
%
% M = CP_APR(X, R) computes an estimate of the best rank-R CP model of a
% nonnegative tensor X using an alternating Poisson regression. This is
% most appropriate for sparse count data (i.e.... |
001d69350f830ac4fa955fe9fcb13cf0051b8fd330266efdc869181d5c03e5e5 | MATLAB | 61,714 | 1,603 | function [results,resultsdesign] = GLMestimatesingletrial(design,data,stimdur,tr,outputdir,opt)
%
% USAGE::
%
% [results,resultsdesign] = GLMestimatesingletrial(design,data,stimdur,tr,outputdir,opt)
%
% <design> is the experimental design. There are two possible cases:
%
% 1. A where A is a matrix with dimensions t... |
3cea5e0889d52e633840eba0e72b03429b2d1da9cb543472e8c98d8899ea1e56 | MATLAB | 61,882 | 1,318 | % eeg_checkset() - check the consistency of the fields of an EEG dataset
% Also: See EEG dataset structure field descriptions below.
%
% Usage: >> [EEGOUT,changes] = eeg_checkset(EEG); % perform all checks
% except 'makeur'
% >> [EEGOUT,chang... |
2a4f4d899e9cb636aeb9c2c3a06a54da30d892bf54fd43ed68adde758e4f2e97 | MATLAB | 62,231 | 1,415 | %
% KnnFind enhances the search services of knnsearch by providing an
% additional search method 'nn_descent', which can perform dramatically
% faster than 'kdtree' or 'exhaustive' under certain conditions, as can
% be observed by running KnnFind.Test.
%
% AUTHORSHIP
% Jonathan Ebrahimian <jebrahimia... |
f7575e3f015a0e9012d71c48b1e9d9c7421c53de8fc5275200bbcbeb4a27101c | MATLAB | 62,231 | 1,668 | % AUTHORSHIP
% Primary Developer: Stephen Meehan <swmeehan@stanford.edu>
% Math Lead & Secondary Developer: Connor Meehan <connor.gw.meehan@gmail.com>
% Bioinformatics Lead: Wayne Moore <wmoore@stanford.edu>
% Provided by the Herzenberg Lab at Stanford University
% License: BSD 3 clause
%
classdef Args ... |
62757b4a15092688209530e5917447292466b3d010dddac4ed3ad1fc578a5ae3 | MATLAB | 62,536 | 1,368 | classdef behavior_funcs
%behavior consists of functions used to assess locomotion of rodent
% behavior
%
% Adapted from OF from ephys_tools by LB 12/2022
properties
Property
end
methods(Static)
%% General locomotion
function lengt... |
72906368ad07cbbccf187e51f84e61bcd56f957c674e6e479a50301b526f9b95 | MATLAB | 62,560 | 1,771 | function [data] = ft_checkdata(data, varargin)
% FT_CHECKDATA checks the input data of the main FieldTrip functions, e.g. whether the
% type of data strucure corresponds with the required data. If neccessary and possible,
% this function will adjust the data structure to the input requirements (e.g. change
% dimord, a... |
25d041c1bab181c935a327116dc03148935bc63f571d0768379d8cbda6818fd1 | MATLAB | 62,987 | 1,304 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
8868f844cd98167ec3e4b368287da576a1f215594ce3a4cf284e2dc962638101 | MATLAB | 63,154 | 1,811 | %% Load Unit Data
datRoot = '/Volumes/LaCie/Farries recordings/';
load([datRoot 'unitDat_final_culled.mat'])
uName = arrayfun(@(u) strsplit(u.name), unit, 'UniformOutput', false);
uRat = cellfun(@(u) u{1}, uName, 'UniformOutput', false);
uSes = cellfun(@(u) u{2}, uName, 'UniformOutput', false);
uTrode = cellfun(@(u) ... |
8494a85bf135713bbb8075a48f8a731be6afce275cb3753b1847f149bc4106f0 | MATLAB | 63,329 | 1,788 | function [data] = ft_checkdata(data, varargin)
% FT_CHECKDATA checks the input data of the main FieldTrip functions, e.g. whether the
% type of data strucure corresponds with the required data. If necessary and possible,
% this function will adjust the data structure to the input requirements (e.g. change
% dimord, av... |
1e2a4db1224b1348150a6434419896bf4916f1de2aa1ee3d7822cf4b79e4e841 | MATLAB | 63,623 | 941 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
fa291a10b9dcb396c4535251ea62864b6e60f7f1a74bfe3430b9aac60ffafd33 | MATLAB | 63,635 | 1,674 | function [layout, cfg] = ft_prepare_layout(cfg, data)
% FT_PREPARE_LAYOUT loads or creates a 2-D layout of the channel locations. This
% layout is required for plotting the topographical distribution of the potential or
% field distribution, or for plotting timecourses in a topographical arrangement.
%
% Use as
% la... |
30d153bcb0e8b926c07877bed563f498a2af9ac106d5c5a969949af87a0cd28b | MATLAB | 63,728 | 1,540 | function varargout = DPABI_TDA(varargin)
% DPABI_TDA MATLAB code for DPABI_TDA.fig
% DPABI_TDA, by itself, creates a new DPABI_TDA or raises the existing
% singleton*.
%
% H = DPABI_TDA returns the handle to a new DPABI_TDA or the handle to
% the existing singleton*.
%
% DPABI_TDA('CALLBACK',hO... |
d07ab94f5fa03f341682a9dd78e53f0cf947e4b1a3a5b67d133aa31322ba36ea | MATLAB | 63,927 | 1,884 | classdef Shape
methods (Static)
function p = xy2vec(xy)
% xy: [nptsx2]
% p: [1x2*npts]
assert(size(xy,2)==2);
%p = [xy(:,1);xy(:,2)]';
p = xy(:).';
end
function xy = vec2xy(p)
% p: [D] shape vec
%
% xy: [nptsx2] x/y coords
assert(isvector(p)... |
53b6bb3b749d3a6938583beb03d669a39df30c0a42e4490c7e4aed75be398b07 | MATLAB | 63,990 | 980 | function MovieSuccess=QuaSOR_Summary_Movie_Maker(StackSaveName,StackSaveNameSuffix,ImagingModality,PreviewIndices)
close all
[OS,dc,~,~,~,~,~,ScratchDir]=BatchStartup;
ScreenSize=get(0,'ScreenSize');
warning on all
warning off backtrace
warning off verbose
... |
90717f83b2d28e23d7f4c4d925a727cb38cff42808742b2b9c109b6ad71c50f3 | MATLAB | 64,198 | 1,757 | classdef ColorsEditor <handle
% AUTHORSHIP
% Primary Developer: Stephen Meehan <swmeehan@stanford.edu>
% Math Lead & Secondary Developer: Connor Meehan <connor.gw.meehan@gmail.com>
% Provided by the Herzenberg Lab at Stanford University
% License: BSD 3 clause
%
properties(SetAccess=private)
t... |
71cabb49928804df93e3d41611f38cb8ba78dad9dd417a07645274e818222ff1 | MATLAB | 64,209 | 1,597 | function [dat] = ft_read_data(filename, varargin)
% FT_READ_DATA reads data from a variety of EEG, MEG and other time series data files
% and represents it in a common data-independent format. The supported formats are
% listed in the accompanying FT_READ_HEADER function.
%
% Use as
% dat = ft_read_data(filename, ..... |
0df152f3651a0ff5079a6b99a334b1ead91a396736273b1c91910ffc3869f35e | MATLAB | 64,719 | 1,553 | % runica() - Perform Independent Component Analysis (ICA) decomposition
% of input data using the logistic infomax ICA algorithm of
% Bell & Sejnowski (1995) with the natural gradient feature
% of Amari, Cichocki & Yang, or optionally the extended-ICA
% algorithm of Lee, G... |
f9e4a67c3ba203b6cad0fd6deebfebd4d153f663b69bbdff8391ef92c625dee6 | MATLAB | 65,012 | 1,815 | %%
% this should be run from the APT directory
%gtfile = '/nrs/branson/mayank/apt_cache/alice_view0_time.mat';
allexptypes = {'FlyBubble','SHView0','SHView1','SH3D','RFView0','RFView1','RF3D','Roian','BSView0x','BSView1x','BSView2x','Larva','FlyBubbleMDNvsDLC'};
% APT.setpath;
APT.setpathsmart;
addpath anls/gt;
%s... |
2d43591f97890c93484adeed41d3ac607f856ce059dde6be87a21861e8413d7e | MATLAB | 65,107 | 1,741 | %% Load Unit Data
datRoot = '/Volumes/LaCie/Farries recordings/';
load([datRoot 'unitDat_final_culled.mat'])
uName = arrayfun(@(u) strsplit(u.name), unit, 'UniformOutput', false);
uRat = cellfun(@(u) u{1}, uName, 'UniformOutput', false);
uSes = cellfun(@(u) u{2}, uName, 'UniformOutput', false);
uTrode = cellfun(@(u) ... |
9f4969202478485663684276a76790cd2756282c1b72649a12675ac03406a5ee | MATLAB | 65,464 | 1,608 | % topoplot() - plot a topographic map of a scalp data field in a 2-D circular view
% (looking down at the top of the head) using interpolation on a fine
% cartesian grid. Can also show specified channnel location(s), or return
% an interpolated value at an arbitrary scalp locat... |
ff59387e9794b22276d06bacd31b1d78f8ba3ae3205b50665bd710f95f2aba07 | MATLAB | 65,902 | 1,489 | % Correlation with behavior and mediation of the effects
%% Normalize activity in each session based on minimum and maximum amplitude during decision epoch (same as in singleTrial_....m)
normDim_sl = [];
normDim_rl = [];
dims = [1 2 7 20 31 32 63]; %dims = 20;
fw = ones(1, 50)/50;
tsl = find(par.tsl >= 0 ... |
7bd4e7224ef441c43d6b63fa16664aabf2f19584185f813444352a6a6b4ff1b7 | MATLAB | 66,179 | 988 | %I would recommend "collasping" all folds
cont=input('Do you really want to start from the beginning? ');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
d73a0b6b88b2eeb28f7dbf14ab03d3c44bf16061c406c95127d53392f10ef9ef | MATLAB | 66,937 | 1,387 | function [imageData, alpha] = export_fig(varargin)
%EXPORT_FIG Exports figures in a publication-quality format
%
% Examples:
% imageData = export_fig
% [imageData, alpha] = export_fig
% export_fig filename
% export_fig filename -format1 -format2
% export_fig ... -nocrop
% export_fig ... -c[<val>,<... |
0cb487b57bff5cc530d4c3b5ce640beb240f47a16fa426e8c060a9df1d08af62 | MATLAB | 67,264 | 1,785 | function [layout, cfg] = ft_prepare_layout(cfg, data)
% FT_PREPARE_LAYOUT loads or creates a 2-D layout of the channel locations. This
% layout is required for plotting the topographical distribution of the potential or
% field distribution, or for plotting timecourses in a topographical arrangement.
%
% Use as
% la... |
e5edeb3a61487396ea75f10cd45682e302d553d7cf9251c0009e2b1a1fc0babf | MATLAB | 67,463 | 1,468 | function [type] = ft_filetype(filename, desired, varargin)
% FT_FILETYPE determines the filetype of many EEG/MEG/MRI data files by
% looking at the name, extension and optionally (part of) its contents.
% It tries to determine the global type of file (which usually
% corresponds to the manufacturer, the recording syst... |
ab7952697505511a40fc0b02ef7ea6f4f4fc798fdbf298e9d1c3faf3998d853b | MATLAB | 68,116 | 1,038 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
a0d8eb33975af10a9cb6107df216db42c8de946ef8ab1c9d545cf5e08ff0d105 | MATLAB | 68,127 | 1,836 | function varargout = TSexperimentbrowser(varargin)
% TSEXPERIMENTBROWSER
% Loads the TSexperimentbrowser GUI interface. This allows you to browse the
% fields and substructures of the Experiment, view their details or modify them,
% load, save, or start an experiment, and customize the custom buttons to run
% ... |
281d2677b73b104c89aad0316088cda633c73c8e77b318bfef34e108f7e53353 | MATLAB | 68,404 | 1,953 | function erp_plot(GLAN)
% v.0.2.0
% <*LAN)<]
%
% erp_plot(GLAN)
%
% Pablo Billeke
% Francisco Zamorano
% 04.04.2018 (PB) add call electrodes by their labels
% 09.92.2016 (PB) add ICA calculate
% 13.10.2015 (PB) add color
% 31.07.2014 (PB) improve edit figure bottom
% 19.10.2012 (PB)
% 26.06.2012 (PB... |
6708413251c5473dfa689b08b0caadfc887c5e1f538c2b20aca2204aea351cb5 | MATLAB | 68,510 | 1,495 | %% Load Unit Data
datRoot = '/Volumes/LaCie/Farries recordings/';
load([datRoot 'unitDat_final_culled.mat'])
uName = arrayfun(@(u) strsplit(u.name), unit, 'UniformOutput', false);
uRat = cellfun(@(u) u{1}, uName, 'UniformOutput', false);
uSes = cellfun(@(u) u{2}, uName, 'UniformOutput', false);
uTrode = cellfun(@(u) ... |
2bd89e721037f2fb314f7504cfe1412da1d17b5f57aac1b5a9d2210aa1499402 | MATLAB | 68,984 | 1,814 | function varargout = TSexperimentbrowser(varargin)
% TSEXPERIMENTBROWSER
% Loads the TSexperimentbrowser GUI interface. This allows you to browse the
% fields and substructures of the Experiment, view their details or modify them,
% load, save, or start an experiment, and customize the custom buttons to run
... |
5144e4f2bd8fa304d5e246a8d458ab64ec2293ce315f48ab39c2ede5c1fea187 | MATLAB | 69,309 | 1,628 | %This is the script for analyzing the fixed-CS inhibtion data. This is the
% one created April 2019 after giving up on the analyses of accumulated
% rate-diff information as a basis for acquisition
%{
Design:
32 trials per session, 32 reinforcers per session.
within
ITI = mean of 20s with exponential distribution.
CS... |
bdf0714e148961839b764585fd28998896afb1f84d439aa4fa718e99e6f84a32 | MATLAB | 69,383 | 1,275 | cont=input('sure you wanna start over?');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clearvars -except myPool dc OS compName MatlabVersion MatlabVersionYear ScreenSize CurrentScratchDir ScratchDir LabDefaults...
CurrentParentDir ParentDir Pa... |
28187f60b19ec1032ff859a5d597bde606873539a31c70b1849987675f339d87 | MATLAB | 69,406 | 1,820 | function varargout = DPABISurf_VIEW(varargin)
% DPABISURF_VIEW MATLAB code for DPABISurf_VIEW.fig
% DPABISURF_VIEW, by itself, creates a new DPABISURF_VIEW or raises the existing
% singleton*.
%
% H = DPABISURF_VIEW returns the handle to a new DPABISURF_VIEW or the handle to
% the existing singleton... |
4df63f2f1ab9f2052ed910576f6d32137b73db657ac91eddbc0802376823a1c4 | MATLAB | 69,408 | 2,365 | PPDATASAVE.X = pTstT(:,:,:,end);
PPDATASAVE.tblMFT = tblMFtrk;
PPDATASAVE.viewCalibrationData = obj.lObj.viewCalibrationDataCurrent;
d = 2;
nviews = 2;
[N,nsamples,D] = size(PPDATASAVE.X);
npts = D / d / nviews;
PPDATASAVE.X = reshape(PPDATASAVE.X,[N,nsamples,npts,nviews,d]);
mov = obj.lObj.currMovIdx;
PPDATASAVE.movF... |
bcc564e038b1c54dae9242e3f355cb7c18d3c6a0e46f26c525201d9873a580e4 | MATLAB | 69,572 | 1,244 | function SubjectID_BIDS = y_Convert_DPARSFA2BIDS(InDir, OutDir, Cfg)
% function SubjectID_BIDS = y_Convert_DPARSFA2BIDS(InDir, OutDir, Cfg)
% Convert DPARSF data structure to BIDS data structure.
% Input:
% InDir - Input dir with DPARSFA data.
% OutDir - Output dir with BIDS data.
% Cfg - DPARSFA C... |
555345d296dfe880e51bb71897f13800fd8045890070e703f68748c607960556 | MATLAB | 70,010 | 1,362 | % pipeline_paw_velocity.m
% Sarah West
% 7/22/22
% Extracts paw velocity from DeepLabCut output files.
%% Initial setup
% Put all needed paramters in a structure called "parameters", which you
% can then easily feed into your functions.
clear all;
% Output Directories
% Create the experiment name. This is used to... |
b19b50c2c96bf1ba22f34dfcd00043a310fc4d9ad524e50ee75ed1bb06d7ccd8 | MATLAB | 70,092 | 1,184 | function [reduction, umap, clusterIdentifiers, extras]=run_umap(varargin)
%%RUN_UMAP reduces data matrices with 3+ parameters down to fewer
% parameters using the algorithm UMAP (Uniform Manifold Approximation and
% Projection).
%
% [reduction,umap,clusterIdentifiers,extras]=RUN_UMAP(csv_file_or_data,...
% 'NAM... |
570981b097a89d81a611dc32c02723bd421a7c752c7392b9e5bccd75a6a3d1a9 | MATLAB | 70,313 | 1,453 | function [imageData, alpha] = export_fig(varargin) %#ok<*STRCL1>
%EXPORT_FIG Exports figures in a publication-quality format
%
% Examples:
% imageData = export_fig
% [imageData, alpha] = export_fig
% export_fig filename
% export_fig filename -format1 -format2
% export_fig ... -nocrop
% export_fig ... |
c537cb0baab3b5608686fe0e133fb3d24a5584c18cd4274cabf0100e9532025c | MATLAB | 70,831 | 1,023 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
90ca49052e10ffb8f01956201f19a67e171a50e197098d036544eed9cc4fc25d | MATLAB | 71,275 | 1,441 | %% Plot combined place fields and perform other analyses at a particular parameter point
% gridAnalysisCombNet.m
%
%
%% Choose which simulation results to analyze
decodeFileID = "mainPaperGrid"; % Select which decoding file result ID to analyze
figSettings = "manuscript"; % "manuscript1" for figure R4, "manuscriptAl... |
92100f97246c19a3cc5ba22e85324234a4db637492e6635217f5052e68b07622 | MATLAB | 73,068 | 2,439 | function varargout=jdqr(varargin)
%JDQR computes a partial Schur decomposition of a square matrix or operator.
% Lambda = JDQR(A) returns the absolute largest eigenvalues in a K vector
% Lambda. Here K=min(5,N) (unless K has been specified), where N=size(A,1).
% JDQR(A) (without output argument) displays the K eige... |
7089a54662cf40865b27804bf1a18ede1bf13591b3a006c50f3f0ddb410b37b8 | MATLAB | 73,932 | 2,132 | % Class for probability binning described at
% https://www.ncbi.nlm.nih.gov/pubmed/11598946
%
% Bioinformatics inventors
% Original: Roederer M1, Moore W, Treister A, Hardy RR, Herzenberg LA.
% Incorporation into QF matching: Darya Orlova <dyorlova@gmail.com>
%
% Software Developers: Connor Meehan <connor... |
d372835ded061b322bd707b27b3bd859bf884b386ed9216acace90571d34f67e | MATLAB | 74,081 | 1,818 | function [elec] = ft_electrodeplacement(cfg, varargin)
% FT_ELECTRODEPLACEMENT allows manual placement of electrodes on a MRI scan, CT scan
% or on a triangulated surface of the head. This function supports different methods.
%
% VOLUME - Navigate an orthographic display of a volume (e.g. CT or MRI scan), and
% assign... |
a7c6349ca0b1171ed9743af7e5700e7e7abec03816de636ffa28f7584eb9f91e | MATLAB | 74,226 | 1,620 | function [type] = ft_filetype(filename, desired, varargin)
% FT_FILETYPE determines the filetype of many EEG/MEG/MRI data files by
% looking at the name, extension and optionally (part of) its contents.
% It tries to determine the global type of file (which usually
% corresponds to the manufacturer, the recording syst... |
07cbe2e3d384692d7e8635820d5c52caef1a74d4b5d348b1580ccc10a825fd17 | MATLAB | 75,087 | 1,945 | function [elec] = ft_electrodeplacement(cfg, varargin)
% FT_ELECTRODEPLACEMENT allows manual placement of electrodes on a MRI scan, CT scan
% or on a triangulated surface of the head. This function supports different methods.
%
% VOLUME - Navigate an orthographic display of a volume (e.g. CT or MRI scan), and
% assign... |
2f41aec16286ea7cd28ed0f47848f28c8a7e6ef3b2b9616add4d55d9e925e46f | MATLAB | 75,277 | 1,522 | function [] = plot_ground_truth_compare_shuffles_with_different_randomisation(folders,option,method)
total_number{1}(1:3) = 0;
total_number{2}(1:3) = 0;
for nfolder = 1:length(folders) % Get total number of replay events
for nshuffle = 1:2 % 1 is original and 2 is global remapped
session_total_number{nshu... |
72373f1323c625298030563c4695bba103cb726180e38511e02248ebb9425201 | MATLAB | 75,728 | 1,633 | function palm_saveall(plm,opts)
% Save most of the outputs from PALM.
%
% _____________________________________
% Anderson M. Winkler
% FMRIB / University of Oxford
% Oct/2014
% http://brainder.org
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% PALM -- Permutation Analysis of Linear Models... |
d0a3198fba832019f53d00a9a67ed1159ccb171a9f1361635ebdc6cd3893e7e3 | MATLAB | 75,865 | 1,276 | % Cardiac model ToR-ORd
% Copyright (C) 2019 Jakub Tomek. Contact: jakub.tomek.mff@gmail.com
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the Licens... |
bc3fc07a06053339bd8d5cb9cc0b1268d7fc9376bac721e64d3000b8dda19b41 | MATLAB | 77,774 | 850 | function DPABI_TDA_Surf_run(Cfg)
% FORMAT DPABI_TDA_Surf_run(Cfg
% Perform temporal dynamics analysis and concordance analysis for surface (and volume)
% Input:
% Cfg - the parameters for temporal dynamics analysis.
% Output:
% The processed results that you want.
%__________________________________________________... |
52d079d56975d03115dd37a1fd53e5c1246a72cac7516f937278c2c3b7b736df | MATLAB | 77,982 | 1,093 | 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_l1 = '../step_prob_matrices/two_target_no_cues_tgt1_typical_mice';
%mou... |
ef516088b371802174e369002762e8031824e5ef19bcbd34dd0e68e093beaee4 | MATLAB | 78,165 | 2,026 | classdef TrackBatchGUIController < handle
% Controller for the modal dialog used to select movies for batch
% tracking. The dialog is modal, but the constructor returns as soon as
% the dialog is up (no uiwait). When the user clicks Track, the dialog
% calls trackBatch() on the Labeler itself; on Cancel it is... |
2bcf945bf595e4cdfb9ee4105066468f9a345a4d8f4bf77c52f4b9c1892a56a5 | MATLAB | 78,240 | 1,884 | function ft_sourceplot(cfg, functional, anatomical)
% FT_SOURCEPLOT plots functional source reconstruction data on slices or on a surface,
% optionally as an overlay on anatomical MRI data, where statistical data can be used to
% determine the opacity of the mask. Input data comes from FT_SOURCEANALYSIS,
% FT_SOURCEGR... |
b6ef80c03b87150e4555698f7734367c253cc0111b7d7d9a478dbb4e7c3d945b | MATLAB | 78,387 | 1,153 | clearvars
close all
set(0, 'defaulttextfontname', 'Arial')
set(0, 'defaultaxesfontname', 'Arial')
mouse_dir_ft = '../step_prob_matrices/fixed_target';
mouse_dir_ft_ental = '../step_prob_matrices/fixed_target_entrance_align';
mouse_dir_rt = '../step_prob_matrices/relative_target';
mouse_dir_l1 ... |
af26457aef9093b694b70c8144bd49b7d458457488e412e811d7bba2e7bb7abb | MATLAB | 78,486 | 1,587 | function [imageData, alpha] = export_fig(varargin) %#ok<*STRCL1>
%EXPORT_FIG Exports figures in a publication-quality format
%
% Examples:
% imageData = export_fig
% [imageData, alpha] = export_fig
% export_fig filename
% export_fig filename -format1 -format2
% export_fig ... -nocrop
% export_fig ... |
7294acfff383c704674d3682c6fea5fcc271abad935883afe28176ee99dc60d3 | MATLAB | 78,759 | 1,825 | % AUTHORSHIP
% Primary Developer: Stephen Meehan <swmeehan@stanford.edu>
% Math Lead & Secondary Developer: Connor Meehan <connor.gw.meehan@gmail.com>
% Bioinformatics Lead: Wayne Moore <wmoore@stanford.edu>
% Provided by the Herzenberg Lab at Stanford University
% License: BSD 3 clause
%
classdef UmapU... |
131b3939d91551e0393b90b34c60687c2a44c8d412b1e5ca79463f36e918e1a6 | MATLAB | 78,926 | 2,266 | function varargout = DPABI_VIEW(varargin)
% DPABI_VIEW M-file for DPABI_VIEW.fig
% DPABI_VIEW, by itself, creates a new DPABI_VIEW or raises the existing
% singleton*.
%
% H = DPABI_VIEW returns the handle to a new DPABI_VIEW or the handle to
% the existing singleton*.
%
% DPABI_VIEW('C... |
4b2e8ff9fcba32a54f14822e43cfabad933016e7c4b8cbf3cca7b4801a3cb6f5 | MATLAB | 79,789 | 1,663 | function [] = plot_ground_truth_cross_experiment_shuffled(folders,option,method)
total_number{1}(1:3) = 0;
total_number{2}(1:3) = 0;
for nfolder = 1:length(folders) % Get total number of replay events
for nshuffle = 1:2 % 1 is original and 2 is global remapped
session_total_number{nshuffle}(nfolder,1:3) =... |
b55c670129920a97cae3ac9dc8092066553bf0aec9fc54fa786f84d2414c835f | MATLAB | 81,086 | 2,005 | function [realign, snap] = ft_volumerealign(cfg, mri, target)
% FT_VOLUMEREALIGN spatially aligns an anatomical MRI with head coordinates based on
% external fiducials or anatomical landmarks. This function does not change the
% anatomical MRI volume itself, but only adjusts the homogeneous transformation
% matrix tha... |
1fd2bc4b82fd02a478deca405b931b35f760f93c1abace644930cdd4605f80be | MATLAB | 81,137 | 2,006 | function [realign, snap] = ft_volumerealign(cfg, mri, target)
% FT_VOLUMEREALIGN spatially aligns an anatomical MRI with head coordinates based on
% external fiducials or anatomical landmarks. This function does not change the
% anatomical MRI volume itself, but only adjusts the homogeneous transformation
% matrix tha... |
033d9ab7360e02740cb1649aec6f6ae0a1878d41c82d5e2e45bf9f10924264dd | MATLAB | 81,809 | 2,046 | % HeadMotionTool
% Version 1.2 2016-03-11
% Marc Lalancette, The Hospital for Sick Children, Toronto, Canada.
%
% Display head movement information for a CTF MEG dataset collected with
% continuous head-coil localization. The initial position saved in the
% dataset and typically intepreted as the unique head location,... |
9709b5c8ad21a911a726b354ef5498d43040464ae42008e0ba1f72645c293b46 | MATLAB | 81,927 | 1,690 | function [] = plot_ground_truth_optimisation(folders,option,method)
total_number{1}(1:3) = 0;
total_number{2}(1:3) = 0;
for nfolder = 1:length(folders) % Get total number of replay events
for nshuffle = 1:2 % 1 is original and 2 is global remapped
session_total_number{nshuffle}(nfolder,1:3) = 0;
end
e... |
24b66456b4ee6e8d2e0e604f925ccb36527fbd02d321ac9eb6d174aef3ba2644 | MATLAB | 82,353 | 2,212 | % EEGLAB, modificado por P.Billeke para plotiar sincronia
%
% topoplot_eeglab()
% topoplot() - plot a topographic map of a scalp data field in a 2-D circular view
% (looking down at the top of the head) using interpolation on a fine
% cartesian grid. Can also show specified channnel location... |
6359dae8015093828419bb2baf1620ab0288fdccd776c8d9a70653f3d860fc62 | MATLAB | 83,466 | 2,025 | function ft_sourceplot(cfg, functional, anatomical)
% FT_SOURCEPLOT plots functional source reconstruction data on slices or on a surface,
% optionally as an overlay on anatomical MRI data, where statistical data can be used to
% determine the opacity of the mask. Input data comes from FT_SOURCEANALYSIS,
% FT_SOURCEGR... |
1e1b5253d920ce49e9b6d6144fdba93f1de5379dcda85398de4d82d65dd2baf3 | MATLAB | 84,391 | 2,439 | function varargout = DPABINet_VIEW(varargin)
% DPABINET_VIEW MATLAB code for DPABINet_VIEW.fig
% DPABINET_VIEW, by itself, creates a new DPABINET_VIEW or raises the existing
% singleton*.
%
% H = DPABINET_VIEW returns the handle to a new DPABINET_VIEW or the handle to
% the existing singleton*.
%
% ... |
6e5ec24f3144f051cd3468002169119c54c2577504b226b5dd492c2a84c5e939 | MATLAB | 85,778 | 2,198 | function varargout = h_imstack3(varargin)
% H_IMSTACK3 M-file for h_imstack3.fig
% H_IMSTACK3, by itself, creates a new H_IMSTACK3 or raises the existing
% singleton*.
%
% H = H_IMSTACK3 returns the handle to a new H_IMSTACK3 or the handle to
% the existing singleton*.
%
% H_IMSTACK3('C... |
f9ce16b57592bca395795e5d8de79436b97ea378befc7bd260d37917ea78c35e | MATLAB | 85,814 | 2,552 | % NOTE: There is no Fig. 7 ver. 6
%% Load Unit Data
datRoot = '/Volumes/LaCie/Farries recordings/';
load([datRoot 'unitDat_final_culled.mat'])
uName = arrayfun(@(u) strsplit(u.name), unit, 'UniformOutput', false);
uRat = cellfun(@(u) u{1}, uName, 'UniformOutput', false);
uSes = cellfun(@(u) u{2}, uName, 'UniformOutp... |
9757c561847414404d6850a94e7d4929cc1f2694b76b4aa76ec2d97e3a25907e | MATLAB | 87,618 | 2,128 | function [event] = ft_read_event(filename, varargin)
% FT_READ_EVENT reads all events from an EEG/MEG dataset and returns
% them in a well defined structure. It is a wrapper around different
% EEG/MEG file importers, directly supported formats are CTF, Neuromag,
% EEP, BrainVision, Neuroscan, Neuralynx and Nervus/Nico... |
043ef8540638606a5978ae882a0e7a6e7b7dacbb24775839a542c4b8fd39bdd2 | MATLAB | 87,898 | 2,084 | %% Load Unit Data
datRoot = '/Volumes/LaCie/Farries recordings/';
load([datRoot 'unitDat_final_culled.mat'])
uName = arrayfun(@(u) strsplit(u.name), unit, 'UniformOutput', false);
uRat = cellfun(@(u) u{1}, uName, 'UniformOutput', false);
uSes = cellfun(@(u) u{2}, uName, 'UniformOutput', false);
uTrode = cellfun(@(u) ... |
d6ef12e702029359a924fc7f9900f3832874dc4ce80c9e184a0052fa57a96d61 | MATLAB | 89,638 | 2,387 | function varargout = VBA_spm_input(varargin)
% Comprehensive graphical and command line input function
% FORMATs (given in Programmers Help)
%_______________________________________________________________________
%
% spm_input handles most forms of interactive user input for SPM.
% (File selection is handled by spm_se... |
a10b8d05e0f0be684a30110a15848c3aeb84f50ef00c54234767985f77ff41d5 | MATLAB | 89,755 | 2,277 |
%% Grab weights at 450ms and make them into dimensions - stimulus aligned
% Add dimension with same weights but Tin set to zero
% I'm not using this, right???
i_proj = find(round(winCenter, 3) == 0.451);
for sess = 1 : 8
par = par_sess{sess};
% Load normalized activity for this session
... |
ac0e60703ca731f63af58363362bb00207660aa4376daed49eb4972757cb6b23 | MATLAB | 89,939 | 2,186 | classdef spider_plot_class < matlab.graphics.chartcontainer.ChartContainer & ...
matlab.graphics.chartcontainer.mixin.Legend
%spider_plot_class Create a spider or radar plot with individual axes.
%
% Syntax:
% s = spider_plot_class(P)
% s = spider_plot_class(P, Name, Value, ...)
% ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.