sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
80e0e3a275de170bc25374b720e55c9284f134eb87ee93b0b706bfb3a8d7d86a | MATLAB | 12,698 | 217 | % PLOT AVERAGE THETA SEQUENCE SCORES PER PROTOCOL
% MH 2020
% Loads theta sequence scores per track and session ('quantification_scores.mat' from extract_sessions_thetaseq_scores.mat).
% First plot - For each quantification method (quadrant ratio, weighted corr, line fitting scores and slope),
% calculates the me... |
00e5a110b1f938c86783b8df6c5753aa68cf7fe0956fa8168f671af357061fd6 | MATLAB | 12,711 | 447 | close all
clear all
clc
addpath ../data
addpath NIFTI_toolbox
load Diffusion_vs_Age_WMlabels_mean_NODDI90_expanded.mat
% Labes of metrics analysed
lab = {'FA','MSD', 'MD', 'RD', 'AD', 'MSK','NDI','ODI','F_{iso}'};
Nmes = length(lab); % number of metrics
Nsub = size(FA_wm_mat,1); % total number of subjects
age = age... |
ad83414cfa3d2aa0d42ed96ffccb1e80a057c73c11c114d8114d6a7bd32665dc | MATLAB | 12,713 | 308 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% ################################################################# %% DESCRIPTION
% Script to analyse data for:
% Grieves et al. (2020)
% Quantification of firing rate map procedures
%
% This script
% NOTE: This script is dependent on graphtest... |
ad40b3bdbcefbcecfd594fc68f09589a9fb1aa5b0115eab6d54304acfebe34b8 | MATLAB | 12,774 | 302 | classdef UmapPython
% AUTHORSHIP
% Developer: Stephen Meehan <swmeehan@stanford.edu>
% Copyright (c) 2022 The Board of Trustees of the Leland Stanford Junior University; Herzenberg Lab
% License: BSD 3 clause
properties(Constant)
PROP_CMD='pythonCmdV3';
PROP_DESIRED='umapDesired';
T... |
a1012a3bdcd3cdcea5ecc49858cf6b88737f68683d07e17b0a6a1155feeb773a | MATLAB | 12,778 | 58 | close all
clear variables
clc
%Varun Mannam
%date: 23rd Sep 2019
%calculate the PSNR on test-mix data
format long
font = 14;
size = 60;
lr02=[31.0013994757380,37.8707040566466;32.4355944495239,35.6309636442510;30.8389376260123,37.6492493218672;30.1446963613668,36.6236157602191;22.8898419300006,30.7631725906395;25.4380... |
3381fb0c0661f33d4e862aa9d003c82c119de70898553aaec72c1160b145bce3 | MATLAB | 12,782 | 303 | function AIP_stitch_Hui(datapath,disp,mosaic,pxlsize,islice,pattern,sys)
%%% ---------------------- %%%
% function version of mosaicing & blending
% input: displacement parameters: four elements array [xx xy yy yx]
% mosaic parameters: four elemetns array [number of x tile, number of y tile,
% ... |
dd30ab6f744519245f6152bf0234bad1a8a81713493da1347ea3f3a5896edaa9 | MATLAB | 12,788 | 261 | % PROPORTION OF SIG EVENTS FOR EACH TRACK - PRE VS POST
% From all candidate events, finds proportion of sig events for each track and calculates difference
% between sleep periods PRE and POST (INTER and FINAL)
function diff_proportion_sig_events(computer,state,method)
% Load replay information
if strcmp(method,'w... |
2e00659df9c0839ff99ff0d859dffb332367ea549c0b5580e605dbba42846d6c | MATLAB | 12,789 | 282 | function SUMMARY_STRUCT = summarize_data_during_interval( TRACKS, EXIT_STRUCT, stat_int, OK_frames_inlawn, pixpermm, binSize, cutoff, trans, emis, x_offset)
%summarize_data_during_interval.m This function collates speed,
%angular speed, and roaming and dwelling information from all tracks and
%selects out the data that... |
d43f7cf9e282e77315249687c5320a7c0a2d290201037ac49a49df973fb2bcfd | MATLAB | 12,806 | 281 | %% Plot co-expression in O2 sensory circuit and VNC
% Jan Watteyne
% 20230608
clear all
close all
workspace
%% Import data
%load in distance file - from Petra
load('Worm279.mat');
% import neuron_names
load ('05062023_Networks_build_EC500nM.mat','neuron_names');
% import gene ID
load ('05062023_Networks... |
ca93358256254837549a6a6b00b7adc7e9194dcf0bd3555c496866d08c9263ba | MATLAB | 12,816 | 229 | figX.fig = figure('Name', 'Figure X: Heatmaps');
set(figX.fig, 'Units', 'pixels', 'Position', OSScreenSize([10 18]), 'NumberTitle', 'off');
axWidth = .3;
axHeight = .145;
stimX = [.025, .315, .025, .315, .025, .315];
medMotorY = [.825, .825, .495, .495, .165, .165];
latMotorY = [.67, .67, .34, .34, 0.01, 0.01];
annot... |
45b31cb74d3c7281211cee09b876f6d0cf806c3049b5b0c73039933206e25782 | MATLAB | 12,826 | 314 | function [rndm] = randomOrder(numItems,len,varargin)
% This function is used to generate a vector of random numbers with length
% len and the values 1:numItems. Randomization can be controlled by
% optional arguments.
%
% Usage: rndm = randomOrder(numItems, len, varargin)
%
% INPUTS
% * numItems : number of item... |
1749bfda50a3486e075a45cdc2c7b2f93a76e640c51ad0737c81811f71be69b8 | MATLAB | 12,864 | 318 | function AIP_stitch(P2path, datapath,disp,mosaic,pxlsize,islice,pattern,sys,stitch, aip_threshold, aip_threshold_post_BaSiC)
%%% ---------------------- %%%
% function version of mosaicing & blending
% input: displacement parameters: four elements array [xx xy yy yx]
% mosaic parameters: four elemetns array [numb... |
f99b7ab72be90e5b5414cb74fa091ed3308b85060f6bd773009487aab384ad9f | MATLAB | 12,869 | 366 | function METriggers_M2(sesDir,rootDir,outDir,wi)
%% input:
% sesDir session directory
% rootDir data root dir
% tsDir rootDir of time-stamps
% outDir output
% wi width of smoothing kernel
%% LOAD ME DATA
sesDir_raw = strrep(sesDir,'M2_','ma_');
... |
ceda3ac3109a0db005be5a68fe72f298b88fb68e09c117f116b5d3ea8612b20c | MATLAB | 12,875 | 330 | classdef SuhSplitter < SuhAbstractClass
% AUTHORSHIP
% Primary Developer: Stephen Meehan <swmeehan@stanford.edu>
% Copyright (c) 2022 The Board of Trustees of the Leland Stanford Junior University; Herzenberg Lab
% License: BSD 3 clause
properties(Constant)
TEST_2_POLYGONS=false;
end
... |
bcb3e5a8c254a935ca90d284dfb8bdfd418223ac9842b7cc305012f6a59af5a2 | MATLAB | 12,883 | 412 | classdef JavaProperties < handle
% AUTHORSHIP
% Primary Developer: Stephen Meehan <swmeehan@stanford.edu>
% Copyright (c) 2022 The Board of Trustees of the Leland Stanford Junior University; Herzenberg Lab
% License: BSD 3 clause
properties(SetAccess=private)
p;
updateCount=0;
file... |
580e1e17098f45647a13d9a39a41881a2f01ee8cc033ad0bffce774a0a8c7750 | MATLAB | 12,896 | 350 | function [task] = runDSD(subNumArg, waveNumArg, runNumArg)
% % RUNDSD.m $%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% usage: [ task ] = runDSD( subNum, runNum )
%
% subNum && runNum are scalar
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% dependencies:
%
% ... |
f0bf3c7bd279ae8ad35cb15dc0b2d41e49b30b582cad7c2a1822273ab850dc14 | MATLAB | 12,900 | 317 | % pop_resample_old() - resample dataset (pop up window).
%
% Usage:
% >> [OUTEEG] = pop_resample( INEEG ); % pop up interactive window
% >> [OUTEEG] = pop_resample( INEEG, freq);
% >> [OUTEEG] = pop_resample( INEEG, freq, fc, df);
%
% Graphical interface:
% The edit box entitled "New sampling rate" contains the... |
cd7c88ffbdcdd8a44612427ee5c3c9b634ba0ab3f4de40eee068a9fd51f99733 | MATLAB | 12,930 | 277 | addpath(genpath("C:\Users\Niflheim\Documents\GitHub\Giocomo\JohnKeiNPAnalysis"))
addpath(genpath('//oak-smb-giocomo.stanford.edu/groups/giocomo/export/data/Users/KMasuda/Neuropixels/plottingFxns'))
addpath(genpath("C:/Users/Niflheim/Documents/MATLAB/gramm"))
%% Repeating analyses with grid cells
%% Filter & save grid ... |
cfb50e1ff985e7d5a76187201c8afe7ff3caacc3c74b7d37fcb09b35eda75a2d | MATLAB | 12,953 | 388 | %clear variables global;
%clc;
%load('ABCfornumsim.mat') %ABCfigures.m output (obtained after using average data for ABCrejection.m)
% Plot modes
plotmode = 3; % 0 - average of data points at a certain day
% 1 - all data points
% 2 - uses both 0 and 1
... |
c9b6230c8cac80c0cba0a9d77d5627dbf92e7584ac418fc5f6b538a3ddb877d8 | MATLAB | 12,973 | 314 | % Plot track decoding error
% MH, 05.2020
% Plots confusion matrix for each track
% Plots cumulative frequency of median decoding error
function plot_track_decoding_error
PP = plotting_parameters;
% Load name of data folders
if strcmp(computer,'GPU')
sessions = data_folders_GPU;
session_names = fieldnames(s... |
aeb9b03e36302271ec7da6d1e8c0d44b9f1e1f7a4dee775f27aa1e44582c4653 | MATLAB | 12,980 | 317 | %Z-score delay all cells
close all;
clear;
load('U:\rg-yoshida\Yoshida_lab_shared_folder\Shared Data\Antonio\In vivo data\Babak\preliminary analysis\Space_bin\Space_bin_filt30Kalman.mat')
load('U:\rg-yoshida\Yoshida_lab_shared_folder\Shared Data\Antonio\In vivo data\Babak\preliminary analysis\Space_bin\Spatial_... |
3a190404b14cd313f7cccf9d08edb5f52d3ed5c28f5f5ed1cc97ce3abc197de8 | MATLAB | 12,985 | 318 | function res = saveastiff(data, path, options)
% options.color
% : true or FALSE
% : If this is true, third dimension should be 3 and the data is saved as a color image.
% options.compress
% : 'no', 'lzw', 'jpeg' or 'adobe'.
% Compression type.
% 'no' : Uncompressed(Default)
% 'lzw' :... |
ea8678b1b50fe0a036066ef8b4d5855f489cf5ad1bf89359feccc4c71ff0d428 | MATLAB | 12,986 | 477 | function [sino, pos, ang] = ellipse_sino(sg, ells, varargin)
%|function [sino, pos, ang] = ellipse_sino(sg, ells, [options])
%|
%| Create sinogram projection of one or more ellipses.
%| Works for both parallel-beam geometry and for fan-beam geometry.
%|
%| in
%| sg sinogram geometry object from sino_geom()
%| ells ... |
9c4bfc0716cb078c64e6560c496dd9b8879b1b00035fd7b4ef7c00eeb3185f50 | MATLAB | 13,015 | 453 | function DCM = spm_dcm_specify_ui(SPM,xY,settings)
% Interface for stepping the user through creating a DCM
% FORMAT DCM = spm_dcm_specify_ui(SPM,xY)
%
% SPM - SPM structure from SPM.mat
% xY - (optional) VOI structures to be inserted into the DCM
% settings - (optional) Structure of pre-populated settings f... |
3aa51fdd76cb01e07688d099a0ad9d906963421eb1b7396788dbd528b1df38bb | MATLAB | 13,027 | 289 | clear all;close all; clc;
tic
disp('CFC')
subj = '39'
addpath('/mnt/yassamri/iEEG/sandra/analysis_pipeline_final')
[fro_chan_idx,MTL_chan_idx,temp_chan_idx,insula_chan_idx,cingulate_chan_idx,OFC_chan_idx,CA3_chan_idx,CA1_chan_idx,HC_chan_idx, ACC_chan_idx] = get_elecs(subj);
cd(['/mnt/yassamri/iEEG/sandra/subj_' subj])... |
4f5cab6012e88491560e9359ec27b9b4e7ca4af5db3524feb1c90b90353eabc3 | MATLAB | 13,046 | 317 | %Z-score delay all cells
close all;
clear;
load('U:\rg-yoshida\Yoshida_lab_shared_folder\Shared Data\Antonio\In vivo data\Babak\preliminary analysis\Space_bin\Space_bin_filt30Kalman.mat')
load('U:\rg-yoshida\Yoshida_lab_shared_folder\Shared Data\Antonio\In vivo data\Babak\preliminary analysis\Space_bin\Spatial_... |
acec38a7dd94c863af81d67725310014241d6b3fe9bf9e444a34039d46b88ef9 | MATLAB | 13,048 | 273 | clc;
clear all;
close all;
addpath(genpath('D:\kate_dropbox\Dropbox\Rutgers\Matlab - Rutgers\Firestein Lab\BCT\'));
%parameters
totaltime = 300;
binsize = 10;
maxlag = 20*binsize;
%options
raster = 0;
plotme = 0;
extracalcs = 0;
disp(' ');
theBinSize = binsize;
theMaxLag = maxlag;
%%
params.bi... |
6fc80f3762272bf4f091d0e78c76da84dbb4fc93ab55ef1f15a88b495be55e9f | MATLAB | 13,053 | 341 | classdef SuhTestMisc
% This class is a "grab bag" of miscellaneous static test functions
% AUTHORSHIP
% Primary Developer: Stephen Meehan <swmeehan@stanford.edu>
% Copyright (c) 2022 The Board of Trustees of the Leland Stanford Junior University; Herzenberg Lab
% License: BSD 3 clause
methods(Static... |
5694140d016159aca3748bb040fd8ada69f5da4bce7eed16185c18afac0490de | MATLAB | 13,100 | 422 | clear all
close all
dbeh_path='C:\Users\xscogno\MATLAB\Flavio2\Waves\Tracking data\';
rec_data_path = 'C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\';
dpath_spikes='C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\';
dpath_sorting='C:\Users\xscogno\MATLAB\Flavio2\Waves\Sorting\';
dpath='C:\Users\xscogno\MATLAB\F... |
1453e0fa6ae57e92d22bf481dce69a59e9f20666bd78100efc72401e6baad659 | MATLAB | 13,115 | 352 | % organize chan labels to create excel column
for chan = 1:length(chan_label)
chan_label_new{chan} = chan_label{chan}(4:end-3)
end
m = chan_label_new'
open m
%%
freq_ranges = [2.9 6] % low theta
% freq_ranges = [40 200] % gamma
% elecs
if strcmp('57', subj)
fro_chan_idx = [1 4:8 13 16:17 25:27 35 37 44 46... |
0a31ee8c72faf1433be1d6670f9ee193de7ebbc966d5eb216fbae6daa4136772 | MATLAB | 13,135 | 324 | function bal_acc=eye_gprML_efficient(files_dir, label, save_flag)
% This code runs the gaze position-based motion direction reconstruction
% analysis. It's divided in 2 parts: chanel-wise GPR estimation & stimulus reconstruction.
% For the reconstruction both channels (x and y) are used. Every time point
% of interest... |
cad1e4625ed0021fccce3a920e41d24ed45327ef1e1e0d251b1f36ad4cab1769 | MATLAB | 13,135 | 311 | classdef Violin < handle
% Violin creates violin plots for some data
% A violin plot is an easy to read substitute for a box plot
% that replaces the box shape with a kernel density estimate of
% the data, and optionally overlays the data points itself.
%
% Additional constructor paramet... |
29ec469741f06e53ee40bdd2cadeee31385b239e2559330f4451ecd8d7aa778a | MATLAB | 13,154 | 285 | function savefig(fname, varargin)
% Usage: savefig(filename, fighdl, format, options)
%
% Saves a pdf, eps, png, jpeg, and/or tiff of the contents of the fighandle's (or current) figure.
% It saves an eps of the figure and the uses Ghostscript to convert to the other formats.
% The result is a cropped, clean picture.... |
f3f7d330bfb13e29c5bccbb59f83da59c6935c04cd4a6ba563c1b5bf7f54e904 | MATLAB | 13,157 | 419 | %% Analyzing Neural Time Series Data
% Matlab code for Chapter 23
% Mike X Cohen
%
% This code accompanies the book, titled "Analyzing Neural Time Series Data"
% (MIT Press). Using the code without following the book may lead to confusion,
% incorrect data analyses, and misinterpretations of results.
% Mike X Cohen... |
dbb655472db3e45fc1b6e7934980ff52cf5f83c1b7edc36d46ddf768c95b2df4 | MATLAB | 13,159 | 457 | close all
clear all
clc
addpath ../data
addpath NIFTI_toolbox
load Diffusion_vs_Age_WMlabels_mean_NODDI90_expanded.mat
% Labes of metrics analysed
lab = {'FA','MSD','MD', 'RD', 'AD', ...
'MSK', 'MK', 'RK', 'AK', ...
'NDI','ODI','F_{iso}'};
Nmes = length(lab); % number of metrics
Nsub = size(FA_wm_mat,1... |
be377a782b685ca29d0e83fb6866ef6f492c492ee4693b0c02c29108e725d85b | MATLAB | 13,178 | 311 | function params = spm_normalise(VG,VF,matname,VWG,VWF,flags)
% Spatial (stereotactic) normalization
%
% FORMAT params = spm_normalise(VG,VF,matname,VWG,VWF,flags)
% VG - template handle(s)
% VF - handle of image to estimate params from
% matname - name of file to store deformation definitions
% VWG ... |
81fc35809c1988b4c9b883f0a4e7fda12b56cd8718e559b3e3d6876fed3e1958 | MATLAB | 13,183 | 413 | function dipfit = spm_cfg_eeg_dipfit
% Configuration file for configuring imaging source inversion
% reconstruction
%__________________________________________________________________________
% Copyright (C) 2010-2016 Wellcome Trust Centre for Neuroimaging
% Gareth Barnes
D = cfg_files;
D.tag = 'D';
D.nam... |
6c1b171a820cafabc221366852ffeeb5be164a8b6eb2673f24d4cb6a7b3e2341 | MATLAB | 13,187 | 330 | classdef FileTransferProgressMonitor < matlab.net.http.ProgressMonitor
%FileTransferProgressMonitor Updates a progress monitor for file transfers.
%
% Create a function handle to provide to matlab.net.http.HTTPOptions:
% progressMonitorFcn = @FileTransferProgressMonitor;
%
% Create a function handle to provid... |
3c05dc9c4193cf59c2eecdc89c27f5c187fa360c433deaed18e399e40cb90e1f | MATLAB | 13,194 | 450 | function D = spm_eeg_firstlevel(S)
% Convolution modelling for M/EEG data
% FORMAT D = spm_eeg_firstlevel(S)
%
% S - job structure generated by spm_cfg_eeg_firstlevel
%__________________________________________________________________________
% Reference:
% Litvak V, Jha A, Flandin G, Friston K. Convolution models fo... |
3e89116544dfb707649222d2641a354da60fa8155f171ce21b16454f2e784c72 | MATLAB | 13,254 | 391 | function plotAllCells(allCells)
%% Make Plots. Use after running Pool All cells
% Run all the plotting functions
% input: ketamineCells struct
% add plotting functions to path
addpath(genpath('/Users/KeiMasuda/Documents/MATLAB/Add-Ons/Functions/gramm (complete data visualization toolbox, ggplot2_R-like)/code'));
addpa... |
360082d8d1ff27524aa5a508e6e3d156b8a30a018fddf87e9a43e340da487921 | MATLAB | 13,276 | 332 | clear all;clc
fpass = [4 5];
lock = 'onset';
phase = 'retrieval';% retrieval encoding
group_plots = 'yes';
subj = '';
plot_4_conds = '';
freq_range = 'deltatheta';
bidirec = 0.5;
fs = 500;
% define time windows
if strcmp('encoding',ph... |
5959738c2ed33e7849de7bf1058c2e80e0a0cc1d1da683cb0c83506b61d49f1c | MATLAB | 13,279 | 226 | function place_fields = calculate_place_fields(x_bins_width)
% INPUTS:
% x_bin_width: enter width value (2 for fine resolution, 10 for bayesian
% decoding).
% loads list_of_parameters.m, extracted_clusters.mat,extracted_position.mat, extracted_waveform.mat
% uses function skaggs_information.m
% Main difference is t... |
ed2f5dc8b5930d01d8ce3286ccc5d9881bd5d7ff3d69312a2325fbc26e3da81d | MATLAB | 13,289 | 300 | %% Thomas_Yang_et al, 2023 @Nuo Li lab
%% Fig. 3c-e single trials
clear all
close all
addpath('../func/');
load Figure_3_c_d_e_data
%% Group neurons into Lick Right preferring and Lick Left preferring, examine their single trial dynamics together
corr_r_yes = [];
corr_r_no = [];
R_neurons_singleTri... |
5e80aa27d8a2ebd22f1d418e2044dc50b21a2a88aea4b018a284fff02f98ff98 | MATLAB | 13,304 | 230 | function options = continuous_RDK_set_options(mac)
% set FS for GLM based on preprocessed data!!!!!!!!
Fs = 100;
options.conditionLabels = {'Trials frequent & short', 'Trials frequent & long', 'Trials rare & short', 'Trials rare & long' };
options.scriptdir = '/Users/maria/Documents/MATLAB/continuous_eeg_analysis/ee... |
40e1465d637c022eeb3acade538a9e936092a4668b596928a25d4ee2ea13bc37 | MATLAB | 13,315 | 419 | clear all
close all
dbeh_path='C:\Users\xscogno\MATLAB\Flavio2\Waves\Tracking data\';
rec_data_path = 'C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\';
dpath_spikes='C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\';
dpath_sorting='C:\Users\xscogno\MATLAB\Flavio2\Waves\Sorting\';
dpath='C:\Users\xscogno\MATLAB\F... |
dbbb11810dbeb04948d386d3a62cefc96ffd847de0f05014319320bccc9fc11b | MATLAB | 13,325 | 331 | function SBJ08c_HFA_GRP_summary_errbar_perc_GMlim_actv_RT_ANOVA_ROI_DO(SBJs,stat_id,proc_id,an_id,actv_win,roi_id,...
atlas_id,gm_thresh,plt_id,plot_out,plot_scat,save_fig,fig_vis,fig_ftype)
% Load HFA analysis results for active, RT correlation, and ANOVA epo... |
8a721b7f2e8a6c30ed03fd5f97cde4516671cc4e1d77c2434f1fa1f61e610df2 | MATLAB | 13,326 | 397 | %% Computes waveness
clear all
close all
rec_data_path = 'C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\';
dpath='C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\';
save_data_path = 'C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\';
clusters=10;
mice_number=12;
mice=['L08M1';'L08M2';'L08M3';'L08M4';'L09M1';... |
85ee1977fdd22026ac847fd0262366f5a4fd8ec86fefa014781da6b16a66d624 | MATLAB | 13,347 | 686 |
% Code responsible for generating the morpholino knock-down/CPG specific rescue
% analysis displayed in Fig S6 of "Ciliary
% localization of a light activated neuronal GPCR shapes behavior", PNAS,
% 2023
% Written and annotated by Amy Winans
% Notes:
%% Generating workspace
% this code is NOT FUNCTIONAL but descr... |
14711d259b65e590498acb0b025b5756e7099a5d39907df10dd7426729625c43 | MATLAB | 13,349 | 320 | %Z-score delay all cells
close all;
clear;
load('U:\rg-yoshida\Yoshida_lab_shared_folder\Shared Data\Antonio\In vivo data\Babak\preliminary analysis\Space_bin\Space_bin_filt30Kalman.mat')
load('U:\rg-yoshida\Yoshida_lab_shared_folder\Shared Data\Antonio\In vivo data\Babak\preliminary analysis\Space_bin\Spatial_... |
ca8a0528e233babf2e2150ed154c93f7eaaaf97452e8f68709ce4eb82e9c35ec | MATLAB | 13,359 | 452 | %% Load data
clear all
close all
dbeh_path='C:\Users\xscogno\MATLAB\Flavio2\Waves\Tracking data\';
rec_data_path = 'C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\';
dpath_spikes='C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\';
dpath_sorting='C:\Users\xscogno\MATLAB\Flavio2\Waves\Sorting\';
dpath='C:\Users\xs... |
574dbd80d764f2e2a30b6d6f81f5e0132e293920b7565a182a455e013aa7b8dc | MATLAB | 13,371 | 331 | function SBJ08c_HFA_GRP_summary_errbar_perc_GMlim_actv_RT_ANOVA_ROI(SBJs,stat_id,proc_id,an_id,actv_win,roi_id,...
atlas_id,gm_thresh,plt_id,plot_out,plot_scat,save_fig,fig_vis,fig_ftype)
% Load HFA analysis results for active, RT correlation, and ANOVA epochs... |
a1a07ffd1ade4131e4a97670c8ca841a154f3f97ab926742305f81cd0bb5d846 | MATLAB | 13,387 | 349 | clear all
close all
dbeh_path='C:\Users\xscogno\MATLAB\Flavio2\Waves\Tracking data\';
rec_data_path = 'C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\';
dpath_spikes='C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\';
dpath_sorting='C:\Users\xscogno\MATLAB\Flavio2\Waves\Sorting\';
dpath='C:\Users\xscogno\MATLAB\F... |
b9cf97f7dbbc11922cb4814d2ae4ffe6788cf6b940bd1219c1f2a7e3ba8274da | MATLAB | 13,411 | 234 | % CALCULATES PLACE FIELDS FOR EACH RUN DIRECTION
% INPUTS:
% x_bin_width: enter width value (2 for fine resolution, 10 for bayesian decoding).
% Loads list_of_parameters.m, extracted_clusters.mat,extracted_directional_clusters.mat, extracted_position.mat, extracted_waveform.mat
% uses function skaggs_information.m
% ... |
f414ad72531b3e49bc1ab17e57c7e736c8f36d36399a7ff0c2a5160eec7fea86 | MATLAB | 13,429 | 308 | %% Thomas_Yang_et al, 2023 @Nuo Li lab
%% Fig. 1h, performance with unilateral SC photoinhibition with vgat mice
clear all
close all
load Figure_1_h_data
for i_mice = unique(Session_type_allSession(:,1))'
disp(['======= mouse ',num2str(i_mice),' [leftSC rightSC] ==========']);
[sum(Session_type_a... |
2759d1b54f75a9fa0bc2f4e7ed661ee150ce5d2cb7c197946eab7cead3c78bf4 | MATLAB | 13,443 | 333 |
%aim to calculate the latency of the response, find the time and CI, and
%the bootstrap
% close all;
clearvars;
addpath ('/data/local/u0114568/ephysio/test');
listname={'sp_color', 'con-vs-att', 'allSP', 'Att-Inte', 'Att-Congruency', ...
'cueRight', 'allCon', 'all', 'allIncon', 'targetLeft',... |
4ea9155c8f4507b6e306f93c89a83daeb06965ddf54711940dcac78b050c9053 | MATLAB | 13,502 | 258 | % PLOT DECODING ERROR IN CONSECUTIVE LAPS
% Uses information extracted with
% 'bayesian_decoding_error_consecutive_laps.mat' to plot median decoding error across laps (each lap compared to the next
% lap within a exposure. Plots for each rat, for each protocol, and a figure with all protocols overlapped (showing both f... |
1d3b0bf48faea29d47cc32e6231bfa64fefdab477b19eafa39ffd18c884b3bde | MATLAB | 13,504 | 458 | %COMPANION SCRIPT FOR PLOTTING DDO/DIO PROCESSING STEPS
%This script is to be used alongside the processing while variables are
%loaded into memory. In its current form this will not work to look at
%data from the saved structure output of this processing script. This is
%primarily used to troubleshoot.
%% Run to def... |
208fbeea770110074de3eb5b8735e17a3b66b18566e1570cdbb763bf630dafec | MATLAB | 13,521 | 417 | function cube = p_oct_label(octant, label, cube)
% check if there are points in the octant with value 1
if( octant==1 )
% set points in this octant to current label
% and recurseive labeling of adjacent octants
idx_1 = find(cube(1,:) == 1);
if(~isempty(idx_1))
cube(1,idx_1) = label(idx_1);... |
b9c80928bc3dae6eca725f1628426adcfd97d53d83a6324499b183a2acf5ab45 | MATLAB | 13,523 | 470 | function h = c_plot_cortex(varargin)
persistent PathModified;
if isempty(PathModified)
mfilepath=fileparts(which(mfilename));
%addpath(fullfile(mfilepath,'../MeshFunctions'));
addpath(fullfile(mfilepath,'../ThirdParty/FromBrainstorm/anatomy'));
% addpath(fullfile(mfilepath,'../ThirdParty/Arrow'));
PathModified = ... |
19b83405478a09748d95fd4c466db1415a49b1a45494599ec350c9ee8d41c1b2 | MATLAB | 13,530 | 329 | % COMPARES THE SCORES FROM LAP THETA SEQUENCES WHEN USING PLACE FIELDS FROM
% THE WHOLE SESSION TO DECODE, OR (SMOOTH) PLACE FIELDS FROM EACH INDIVIDUAL LAP
% Also finds whether there is a significant difference of scores between
% early and late laps
function compare_lapThetaSeq_plFields_decoder(method)
load('X:\Ben... |
14a431655e165ad56047de986a6ab714cb174fb589162754daea6fb9dc84b511 | MATLAB | 13,534 | 325 | function Optical_fitting_immune2surf(co, cross, s_seg, z_seg, datapath,threshold, mus_depth, bfg_depth, ds_factor)
% Fitting scattering and retardance of brain tissue
% co: volume data for co pol
% cross: volume data for cross pol
% s_seg: slice number
% Z_seg: tile number
% datapath: datapath for original data
sur... |
4cb6db276e78ff5d00bb12ef50c6bcc4cd484c6a815f4e274081a9ffd9339166 | MATLAB | 13,535 | 300 | function [b_leave,b_enter] = linearFilterAnalysisCW2TurnTransition(f_orco,transitionsOnly,meta,plotFigure)
% linearFilterAnalysisSpeedCurvature wrapper function for calculating the
% linear filters and turn triggered average for sharp turn transition
% probability and probability of being in a turn at crossing (de... |
30e30e5e3304e10a68253dc26e9ad736b6a335118c68271bfb8c381fea902b68 | MATLAB | 13,539 | 317 | function out = nBackBuffer(len, n, numMatch, numStim)
% Create a stimulus buffer for an n-back experiment.
%
% The buffer holds numMatch matches: a value that appears again n positions
% later. Every other position is filled with a value that does NOT create a
% further match by accident.
%
% Usage: out = nBackBuffer(l... |
70357b183805ee5a66a9be4685eb2b43b5e132c73916a7bec13cfa811b4bb401 | MATLAB | 13,584 | 370 | function [] = MainGUI()
% SpikeSortingGUI Comments/Documentations
% Create and then hide the UI as it is being constructed.
% hsurf = uicontrol('Style','pushbutton',...
% 'String','Surf','Position',[x*1.2,y,70,25]);
currentFolder = pwd;
addpath(genpath(currentFolder))
close all
fileName = [];fileNameStim = []... |
9fcc4a76c9ebc18b06acd21e85f7a2e63dc4c67498ebac8d698b284f76f08b4f | MATLAB | 13,596 | 295 | function render = tbx_cfg_render
% Configuration file for toolbox 'Rendering'
%__________________________________________________________________________
% Copyright (C) 2008-2016 Wellcome Trust Centre for Neuroimaging
% John Ashburner
% $Id: tbx_cfg_render.m 6960 2016-12-05 17:05:09Z guillaume $
if ~isdeployed, addp... |
1c2278ffdfad156c3f5a818fc978d9f1acba40c919c2eaee0f3ad88e94e97bcc | MATLAB | 13,601 | 371 | classdef SuhScaler <SuhAbstractClass
% Class framework to support heterogenous methods for normalizing data
% scales to 0-1. Helps for flow cytometry where lower small regions of
% dull signal have significant information lost to clustering methods
% unless stretched.
% Inspired by Wayne Moore's Transform Git... |
0750df3907399381de042b1b773312d0cad8cfbafdff2e1f3fc403df522abea1 | MATLAB | 13,617 | 362 | function fn_view_recon_atlas_grp_stat_venn_ROI(SBJs, proc_id, stat_id, an_id, reg_type, show_labels,...
hemi, atlas_id, roi_id, plot_roi, mirror, varargin)
%% Plot a reconstruction with electrodes colored according to statistics
% INPUTS:
% SBJ [str] - subject ID to plot
% proc_id [str] ... |
4e205cc4d768786b8d8fe8d07d15c0df58834031c1b5a1e3c20156729618fea7 | MATLAB | 13,636 | 307 | function [fileName, savePath] = save2File(varargin)
% Saves given variables to a MATLAB workspace (.mat) file. Useful to
% persist experiment results in a file that can be reloaded for
% post-hoc analysis. The first arguments must be the variables to
% store; the function captures their caller-side names via inputname.... |
c162db61c6bba3a5af3a7a4d05774cb5d8a15c84ce006feeb7268769ab253539 | MATLAB | 13,651 | 306 | function [s,keyNdx] = calcKinematicsCond(self,condNdx,key,thresh)
nKey = numel(key);nStates = numel(self.states.key);
bins = 1:nKey+1;
spd = self.calcSpd;
[~, thetaAll] = self.calcCurv;
thetaAll = thetaAll+pi;
[ang,dAng] = self.calcAng;
hist = ceil(0.2.*self.fs)-1;%200 ms history
[s] = initS(self.nFly,nSt... |
59f2d687d4b383be58ee49a4fe8f0a6b04f187d3d9e40efd0ed58b6d3b850979 | MATLAB | 13,686 | 307 | function [OFC_chan_idx,fro_chan_idx,temp_chan_idx,insula_chan_idx,cingulate_chan_idx,...
ACC_chan_idx,EC_chan_idx, HC_chan_idx ,CA3_chan_idx,CA1_chan_idx, MTL_chan_idx, NC_chan_idx] = get_elecs_clean_cue_resp(subj)
cd(['/mnt//yassamri/iEEG/sandra/subj_' subj])
load('sig_elecs_per_reg.mat')
% load cue resp
if strc... |
27550a2bf370fb571c68cbc19b632bd9b38b06f5e1df6a1a27d85a8781b68e06 | MATLAB | 13,691 | 363 | function fn_view_recon_atlas_grp_stat_venn_ROI_GLM_PE_only(SBJs, proc_id, stat_id, an_id, reg_type, show_labels,...
hemi, atlas_id, roi_id, plot_roi, mirror, varargin)
%% Plot a reconstruction with electrodes colored according to statistics
% for Gershman, only plot sPE and uPE
% INPUTS:
%... |
db3c7a5afbe7c039e0a26ccdf0c3c255db5d16b0ab4ed1eb0c36049825786c71 | MATLAB | 13,710 | 330 | function AIP_stitch_Ann(P2path, datapath,disp,mosaic,pxlsize,islice,pattern,sys,stitch)
%%% ---------------------- %%%
% function version of mosaicing & blending
% input: displacement parameters: four elements array [xx xy yy yx]
% mosaic parameters: four elemetns array [number of x tile, number of y tile,
% ... |
424cff3173d67eaea73ac0556770147fc00bc95853c64945e28edc3348222b74 | MATLAB | 13,716 | 375 | function [] = MainGUI()
% SpikeSortingGUI Comments/Documentations
% Create and then hide the UI as it is being constructed.
% hsurf = uicontrol('Style','pushbutton',...
% 'String','Surf','Position',[x*1.2,y,70,25]);
currentFolder = pwd;
addpath(genpath(currentFolder))
close all
fileName = [];fileNameStim = []... |
c5b1bcf37e43e5054182463fc659a83100b4ed411809d747ab341e8a3be2ff11 | MATLAB | 13,747 | 488 | function varargout = getline_adv(varargin)
global frm_num ;
%MODIFIED VERSION OF GETLINE, TO BE USED WITH ROI AND ROIPOLY_ADV
%GETLINE Select polyline with mouse.
% [X,Y] = GETLINE(FIG) lets you select a polyline in the
% current axes of figure FIG using the mouse. Coordinates of
% the polyline are r... |
a99e11d5fad31c341ef767c54645916d0bd107c2872f912209dc0024af94613c | MATLAB | 13,756 | 309 | classdef FlowJoBridgeExamples<handle
% AUTHORSHIP
% Primary Developer: Connor Meehan <connor.gw.meehan@gmail.com>
% Secondary Developer: Stephen Meehan <swmeehan@stanford.edu>
% Copyright (c) 2022 The Board of Trustees of the Leland Stanford Junior University; Herzenberg Lab
% License: BSD 3 clause
prop... |
96be97935dc403fa9f16d3ce12e7591b3ce72b8b249761c9babed238ee8c3b82 | MATLAB | 13,762 | 455 | %% Figure S6g
% this script rungs additional analysis required for the plots of figure
% S6g
%%
clear
ft_defaults
%% - SUBJECTS - %%
% ID 18 missing because of LP at 50Hz
subjects = {'OSL13', 'OSL14', 'OSL17', 'OSL21', 'OSL24', 'OSL26', 'OSL27', 'OSL28', ...
'OSL29', 'OSL30', 'OSL31', 'OSL32', 'OSL34', 'OSL35',... |
ad7dc3e71cf1bdb43d2c65cc1a678d29303e03cdbf03cdbf455c48817acf361d | MATLAB | 13,764 | 465 | % source code to produce analytical predictions
% for 2d fast variance predictions paper for IEEE.
%
% Empirical and FFT_based predictions are computed and saved
%
% Copyright by Yingying Zhang-O'Connor, University of Michigan 2006
clear
clc
% -------------------------------
% set up parameters
% --------... |
b8e7edd95f8fea1d8c714a1b8d58dd30742dbb633f8bb35e63f60e6f16adccf5 | MATLAB | 13,767 | 453 | %% Calculates transition probabilities.
clear all
rec_data_path = 'C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\';
dpath_spikes='C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\';
dpath_sorting='C:\Users\xscogno\MATLAB\Flavio2\Waves\Sorting\';
dpath='C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\';
WS_path=... |
8030b0db1bd9490b4d2219b08b885f3ff8796ec655b85a6967b08428c4725137 | MATLAB | 13,775 | 308 | function [input_graph, new_link_info] = fun_graph_pruning_convert_node_to_link(input_graph, node_label)
% fun_graph_pruning_convert_node_to_link is part of the graph pruning
% algorithm. It merges the node voxels with the connected link (preserve
% order) and update graph structure (without relabeling).
% Input:
% i... |
8358b939eeb25261b542d6b66f52bd4aafeb1190ed274e32cf57925af1f136e0 | MATLAB | 13,788 | 298 | function SBJ10b_HFA_plot_SR_ROI_RTcorr_ANOVA(SBJs,stat_id,proc_id,an_id_s,an_id_r,...
roi_id,plt_id,save_fig,fig_vis,fig_filetype)
% Plot time series for all significant effects by ROI
% clear all; %close all;
% fig_filetype = 'png';
if ischar(save_fig); save_fig = str2nu... |
4a5d7c781eaa4f415cca016f0a7162d7090db1a57227a8fe3e5af783fd336ef8 | MATLAB | 13,799 | 344 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% ################################################################# %% DESCRIPTION
%FUNCTION short desc.
%
% USAGE:
% out = template(in) process with default settings
%
% out = template(in,optional1) process using optional argument 1
%
... |
3eb285f65833e581460549b6d16176261b3f3a33f717a60d637444cbfaf1ff16 | MATLAB | 13,802 | 226 | function estimated_position = bayesian_decoding(place_fields_BAYESIAN,bayesian_spike_count,thetaseq, save_option)
% INPUTS:
% place fields: matrix or []. Place fields that want to be used as a template in the decoding. If empty, it will load place fields for the whole session (extracted_place_fields_BAYESIAN.mat)
... |
06b50f291952a29ed423059dbdc93d08616806a693bcce83d0f04290d99afd2f | MATLAB | 13,859 | 490 | %% Sorting correlation and characterization of the sorting
clear all
close all
dbeh_path='C:\Users\xscogno\MATLAB\Flavio2\Waves\Tracking data\';
rec_data_path = 'C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\';
dpath_spikes='C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\';
dpath_sorting='C:\Users\xscogno\MATLA... |
ceb9ee5f187802bd768c5fc66289d5d448b158f8c30d0d7c31539ff6451b2f59 | MATLAB | 13,873 | 383 | %addpath(genpath('/Users/maria/Documents/Matlab/cbrewer'))
%addpath('/Users/maria/Documents/MATLAB/raacampbell-shadedErrorBar-9b19a7b')
EEGpreproc = options.path.preproc.behaviour; % path to behav data all subjs
condition = {'Tr frequent TR short', 'Tr frequent Tr short','Tr rare Tr short', 'Tr rare Tr long'};
% pl... |
009d1bddc772b88a90c89e75144bb3fb52c8ba5fec8fa8dcf1c11d392c6c61bd | MATLAB | 13,876 | 473 | %% Figure 5d
% this script rungs additional analysis required for the plots of figure
% 5d.
%%
clear
close all;
ft_defaults;
%% -SUBJECTS - %%
% ID 18 missing because of LP at 50Hz
subjects = {'OSL13', 'OSL14', 'OSL17', 'OSL21', 'OSL24', 'OSL26', 'OSL27', 'OSL28', ...
'OSL29', 'OSL30', 'OSL31', 'OSL32', 'OSL34'... |
5213a1df6436c3f57f9a0ce377baca665f2ee11647339fea22d093b34ef1bc78 | MATLAB | 13,887 | 301 | function single_channel_draw_spikes(EEG,t1,t_min , t_max, plot_axes,threshold_channel,chans,thresh,pre_sipke,post_spike,seg_spikes,seg_spikes1,pre_seg,sr,AD_step,debug_flag1)
% draw_spikes(chans,pre_sipke,post_spike,seg_spikes,pre_seg,sr,AD_step,debug_flag1);
% seg_spikes1 display for limit number of spikes
% seg_sp... |
47afcf7413956a6a48c050d089984c793b77b5c1076a5bfc52895073df289475 | MATLAB | 13,894 | 183 |
function period_time = extract_replay_time_periods(computer,data_folder,data_type,replay_control)
% Marta Huelin, 2020
% Code to extract sleep and awake epochs within each time period of the session (pre sleep,inter-track sleep pot rest(s), and post sleep(s)).
% Also loads, 'extracted_position.mat', and 'extracted_sle... |
f379789c23402b4447e391f5a37b1f753477de9ff570ff276c1ecb24d92278ac | MATLAB | 13,914 | 368 | function[]=BaSiC_shading_and_co_cross_stitch(id,datapath, depth, thickness)
% add path of functions
addpath('/projectnb/npbssmic/s/Matlab_code/fitting_code');
addpath('/projectnb/npbssmic/s/Matlab_code/PostProcessing');
addpath('/projectnb/npbssmic/s/Matlab_code/PSOCT_code');
addpath('/projectnb/npbssmic/s/Matlab_code/... |
e9720d8178bdb02828e55ef3a3988b0df616ffb4a5ad6a8428c353c5c0ad029a | MATLAB | 13,938 | 520 | function ob = Gmri_SENSE(kspace, mask, varargin)
%function ob = Gmri(kspace, mask, 'option name', option, ...)
%
% Construct Gmri object for MR image reconstruction, or for other problems
% that require reconstruction of a function from nonuniform Fourier samples.
% This object can also model relaxation or off-resonan... |
b7168ecc4496948b2c0b37eaef92c85fe25f8f8f343ff312b82ae4c0b8158353 | MATLAB | 14,001 | 282 | function graph_str = fun_skeleton_to_graph(voxel_list, mask_size)
% This function computes the graph from the skeleton.
% Input:
% voxel_list: N-by-1 double precision array of skeleton voxel indices
% mask_size: 3-by-1 double precision array. size of the mask(skeleton
% array)
% min_link_length: links with the... |
a1066a51889b175c06bcb8dd0e8db47886f5d9401f97974af9018df07c85939a | MATLAB | 14,027 | 487 | function [smap, x, y, z] = ir_mri_sensemap_sim(varargin)
%function [smap, x. y, z] = ir_mri_sensemap_sim(varargin)
%|
%| Simulate 2D or 3D sensitivity maps for sensitivity-encoded MRI
%| based on grivich:00:tmf doi:10.1119/1.19461
%| This code makes maps for multiple coils, but does not model coupling
%| between coils... |
48d7a1998f66617dde9cd1944707485439bd9abc01abb9e7c5192a0695a9537a | MATLAB | 14,028 | 435 | function [DCM,BMR,BMA] = spm_dcm_bmr_all(DCM,field,OPT)
% Bayesian model reduction of all permutations of model parameters
% FORMAT [RCM,BMR,BMA] = spm_dcm_bmr_all(DCM,field,OPT)
%
% DCM - A single estimated DCM (or PEB) structure:
%
% DCM.M.pE - prior expectation
% DCM.M.pC - prior covariance
% DCM.Ep - p... |
aef3fab3c70e24a4802c1df45bada16d7d3dd2cdbad681b300f2288412766eab | MATLAB | 14,057 | 397 | function convert_unwarp_resample(infile,series,outfile,corfovflag,unwarpflag,jacflag,interp_method,user_gradwarpfile,called_by_script)
%
%% convert_unwarp_resample.m contains:
% convert_unwarp_resample()
% load_dicom_and_stuff()
% mdc()
% header2map(), type2map(), map2manuf() refer to TABLE = GRADWARPPATH/table.mat
%
... |
bf96e5dca8bc910bca50c4931572409bc8b8c225e0f23d5fbc8de606e7f1a8fe | MATLAB | 14,082 | 308 | function [input_graph, new_link_info] = fun_graph_pruning_convert_node_to_link(input_graph, node_label)
% fun_graph_pruning_convert_node_to_link is part of the graph pruning
% algorithm. It merges the node voxels with the connected link (preserve
% order) and update graph structure (without relabeling).
% Input:
... |
a183943ea9ba0536006e4de350cbe7540245fedeaf1cd4efd0081c42ccd7bafa | MATLAB | 14,107 | 400 | clear all; close all; clc
subj = '44'
% load data
addpath('/mnt/yassamri/iEEG/sandra/analysis_pipeline_final')
cd ( ['/mnt/yassamri/iEEG/sandra/subj_' subj ])
load(['behavior_subj' subj '.mat'])
load(['trial_data_subj_onset_' subj '_select_chan_3.mat'])
load(['baseline_info_wavelet_32num_20logdb_3hz_200hz_notched_arti... |
c0ecf5a291d03707e3245284ad18fface94682b7cb8e6329980caea4f9b0161c | MATLAB | 14,116 | 383 | function spm_reslice(P,flags)
% Rigid body reslicing of images
% FORMAT spm_reslice(P,flags)
%
% P - matrix or cell array of filenames {one string per row}
% All operations are performed relative to the first image.
% ie. Coregistration is to the first image, and resampling
% of images i... |
d027b911166ed332acf87b5141b0b7061eba7598bdeacbdc9ad9a7f6e90042ae | MATLAB | 14,138 | 381 | function fig = DesignROIs(hm, transform2MNI)
fig = findall(0,'Tag','NetworkDesigner');
if ~isempty(fig)
figure(fig);
fig = fig.UserData;
return;
end
if nargin < 1
template = which('head_modelColin27_10003_Standard-10-5-Cap339-Destrieux148.mat');
hm = headModel.loadFromFile(template);
% hm = head... |
c6c833d9ff83a6e76c4ce684194f9bf4eed6dc4f44b9667a862a379477ac1358 | MATLAB | 14,161 | 342 | clc;clear;close all;
root='..\';
addpath(genpath([root,'NeuralCorrelateEvidenceAcc']))
%% settings --------------------------------------------------------------
subdir='total';
regCluster=1;
clusterName='clusterArea_paper';
if(regCluster)
subdir=[subdir,'_',clusterName];
end
rootpath='..\dataset\Mice\result\';
ra... |
bd23d9828fc7a4efac9cea6a52b4d1c069169823335fcbe879f89eece99ff8ec | MATLAB | 14,177 | 150 | clear all
locked=[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 ... |
a7a23a27a6f9d8923e34a9ecbb49e149924ecaa0764a3ac0fdf5613acb315043 | MATLAB | 14,178 | 365 | function Dout = spm_eeg_merge(S)
% Concatenate epoched single trial files
% FORMAT Dout = spm_eeg_merge(S)
%
% S - input structure (optional)
% fields of S:
% S.D - character array containing filename of M/EEG mat-files
% or cell array of D's
% S.recode - this field specifies how the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.