sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
54e7376283ba949155dcdbbd56b56de78b138b810e6cfc59fdaaff26f08ba582 | MATLAB | 7,617 | 231 | %% Raster Features Display#################################################
% Script that read and plot boxplots of Raster Features: [24]
% between or among Conditions for Several Experiments.
% Figs
% 'RateNeurons','ActivityTime','ActiveRatioCAG','Ef... |
241969414ae18b0f685a9428369c10de49772296aa6bc0f4b52177abb6363194 | MATLAB | 7,627 | 100 | function [test_indices train_indices ind]=cv_stratified_multilabel_DBP(N,n_folds,bestmodel)
% N is the label matrix
% Stratifies by discretizing multiclass tracking data into one unique label
% after binning individual classes. The final discretized label makes up a
% combination of individual classes labels.
% ... |
38907ec3b0ebeb0b737c38252bd07e4f8bed10c8b24683d864111ff6e88821d6 | MATLAB | 7,636 | 173 | %% LIFonly for Pixels. E is divided into S and C cells
%% Input:
% Th idea of this is similar to MF+v, but all L4 input
% LGNFreq on/off frequencies of LFN input
% L4E, L4I Total E/I input kick numbers
% Assume L4SE/CE/IE are proportional to presynaptic ne... |
d50bbc92b0c4a0da8dc2d0f70cb088e780a26caebde205dde7ccf8021e826782 | MATLAB | 7,643 | 248 | % This program is to plot Tph behaviors for Opto-fMRI experiments
%
%
%
%
%
% by Hiro Taiyo Hamada, 2020/09/29th,
% data loading
TPH4F = load('Tph4-2_Fixed.mat');
TPH4R = load('Tph4-2_Random.mat');
TPH10F = load('Tph10_Fixed.mat');
TPH10R = load('Tph10_Random.mat');
TPH11F = load('Tph11_Fixed.mat');
TPH11R = load('Tp... |
ae69ddc20c644b39f607819bee6629a7e37fd8f23dc355f78d6e44720d845499 | MATLAB | 7,647 | 243 | close all; clear mex;
funtype = 'gpu';
%funtype = 'cpu';
%funtype = 'matlab';
kCNNFolder = '..';
addpath(kCNNFolder);
addpath(fullfile(kCNNFolder, 'matlab'));
if (strcmp(funtype, 'gpu') || strcmp(funtype, 'cpu'))
kMexFolder = fullfile(kCNNFolder, 'c++', 'build');
kBuildFolder = fullfile(kMexFolder, funtyp... |
948160c6ea87730a6b47eea3c53615ef5f57279712e4c4c2bee281dbe54c2d47 | MATLAB | 7,650 | 164 | function [amp, dur, freq, thres] = getImmPausePeak(beh, varargin)
%Extract characteristics of troughs and peaks of ACh signal during periods
%of immobility
%
% [amp, dur, freq, thres] = getImmPausePeak(beh)
% [amp, dur, freq, thres] = getImmPausePeak(beh, NumStd)
%
% Description: This function is analyzing... |
1679f2489ef11a7f25b3454db6f9c5fea86ae968c427e11eb4348a891f72ea8a | MATLAB | 7,659 | 223 | function varargout=xwt_ax(ax,x,y,varargin)
%% Cross wavelet transform
% Creates a figure of cross wavelet power in units of
% normalized variance.
%
% USAGE: [Wxy,period,scale,coi,sig95]=xwt(x,y,[,settings])
%
% x & y: two time series
% Wxy: the cross wavelet transform of x against y
% period: a vector of "Fourier" per... |
a57ba8ce334eb7e2a96533ba3289693ab93cd23241740f856d935c872a4bfec3 | MATLAB | 7,660 | 289 | clear all, close all
load data_res.mat
x = 0:.001:5;
y = ones(size(x));
tau_complete = [];
RM = [];
%% Case 1.75k
sel = tau1_75k.t > 4.5;
stability = mean(tau1_75k.I(sel));
plot(tau1_75k.t, tau1_75k.I-stability);
hold on
top = max(tau1_75k.I);
tau_value = (top-stability)/exp(1);
line(x, y*tau_value, 'Col... |
356f3187184842495e6b7bf2f336b2857d8feb425ad6826b5bcdd5a6e883ca31 | MATLAB | 7,671 | 224 | function [y_kf_prior, y_kf_post, y_ks, P_kf_prior, P_kf_post, P_ks, kf_gain, eta, y_kf_pred, P_kf_pred, r] = arma_kalman_filter(y, b, a, varargin)
% arma_kalman_filter - Removing lowpass noise using a first order linear Kalman filter and smoother.
%
% Syntax: [y_kf_prior, y_kf_post, y_ks, P_kf_prior, P_kf_post, P_ks... |
6f1644b8eb9cbab2e0670c992f51adef955ab599e363f329cba27cc6e2755a06 | MATLAB | 7,696 | 197 | % Requires to load myNetworkDataSet_XXXX.mat FILE
% Directory:
clear; %close all;
fprintf('\n>Read Exported Node Parameters from Gephi &')
fprintf('display PDFs and CDFs of node parameter\n')
fprintf('It considers Nodes with Degree>0 in C_i or peviously Degree>0 in C_i-1\n');
Load_Default_Directories;
Dirpwd=pwd;
slash... |
7833ed6fb7b8f82760b0ed46608611f4fbb57c817c97c1db2c11ff9fd167077d | MATLAB | 7,698 | 247 | function [hCfg, res] = kilosort(loadPath,confirm_flag)
%KILOSORT Import a Kilosort session from NPY files
if nargin<2
confirm_flag=true;
end
[hCfg, res] = deal([]);
phyData = loadPhy(loadPath);
if ~isfield(phyData, 'loadPath')
return;
end
loadPath = phyData.loadPath;
cfgData = struct();
cfgData.outputDir = l... |
208cd45d46300cc11ad9fe32a59a8627178e91f50fe003ce529a5782d0616020 | MATLAB | 7,699 | 161 | behLoaded = menu('beh loaded into workspace already?','yes','no');
switch behLoaded
case 2
%% Select .mat files you want to add to summary data structure
fPath = 'R:\tritsn01labspace\';
[fName,fPath] = uigetfile([fPath,'*.mat'],'MultiSelect','On');
beh = extractBeh(fPath, fNam... |
c0cd80d167b74f12ca05af26ef50703336065a04308ee43bc03060fa1b68d2e7 | MATLAB | 7,700 | 185 | %% Script to carry out time-frequency analysis of segmented EEG data.
% The time-frequency analysis is carried out using complex Morlet wavelets.
% The spectral bandwidth is defined by defining the fwhm and the empirical
% fwhm is estimated for each frequency of interest and expressed in time
% and frequency domain.
%... |
13b09d93b1208debe02cd3bf83847cdb94f64a64c87806cd65be7b6881f87a03 | MATLAB | 7,704 | 212 | %***************GENERAL************************
%It works for single voxel spectroscopi and MEGA PRESS acquisition
%to make it works you need to add (almost) all subdirectorie in your matlab
%path
%***************IMPORT DATA****************
%For just a few acquisition you can select the directories of dicom fi... |
1e754854881acb88331a0b629f9c00d0dcb68e99928f3bf687fc6b2f1a14b7a1 | MATLAB | 7,710 | 194 | function DataAugmFor2D(DataPath,bg,est_beta2,beta1,beta2,alpha,recorrupt_times)
if nargin<3,est_beta2=1;end
if nargin<2,bg=100;end
if nargin<6,alpha=[0.5,1.5];end
if nargin<5,beta2=[10,15];end
if nargin<4,beta1=[0.5,1.5];end
if nargin<7,recorrupt_times=100;end
% -------------------------------------------------------... |
118b7b5e4dda5ade20aed651d63cab8eda46be084c7c343c70b88be7d2dbe3ae | MATLAB | 7,711 | 252 | function burst_res = burst_analysis(app)
%BURST_ANALYSIS Summary of this function goes here
% Detailed explanation goes here
cla(app.ax_msna_raw), cla(app.ax_burst_interval_his), cla(app.ax_burst_duration_his),...
cla(app.ax_burst_amplitude_his),cla(app.ax_burst_integral_his), cla(app.ax_burst_res),...
cla(app.ax_msn... |
8c7ecb832fca8577065bd215f27023961f00d2d0213b685f4db4efa44a3e4647 | MATLAB | 7,724 | 190 | %% PureOdorAnalysis_ExampleAnimals
% This script analyzes two exemplary animals, one gregarious and one
% solitarious animals. It produces heatmap % (s.d. projection and mean
% intensity projection) and time course figures % for each stimulus.
%
% Version:
% 05-Jan-2024 (R2023a)
% Prepare
clc; clear all; close all
wa... |
5544e799bdf7c0b679f03e447c808919f1a43e8d0970b206d7cd6133deae30fa | MATLAB | 7,725 | 204 | function res = computeRho(dRes, res, hCfg)
%COMPUTERHO Compute rho values for spike features
res.rhoCutSite = zeros(hCfg.nSites, 1, 'single');
res.rhoCutGlobal = [];
% compute rho cutoff globally
if hCfg.useGlobalDistCut
res.rhoCutGlobal = estRhoCutGlobal(dRes, hCfg);
end
hCfg.upda... |
6eacc1541dcc41224d8579d9afc7034a5b67a0aed81455f7055bd71eba83e289 | MATLAB | 7,732 | 174 |
function [tr,wl,int] = correct_irradiance_file
%%%%%%%%%%%%% Loads dark files %%%%%%%%%%%%%%%%%%
[s,w]=dos('dir/B d*.txt'); %display the filenames of the txt files in the current directory that start with d
dtxt=regexp(w, '.txt', 'split'); %splits the character array into cell array of strings
dtxt... |
6cd05dd23b5a2a547a6fcad8946b31fb4179658925998a6a8a98c1cfdd56451d | MATLAB | 7,737 | 135 | function SpikeRhythm
%21sÚÉBreakPointðu¢Ägp·é
close all;
clear all;
cd('C:\Users\kit\Desktop\WR_LVdata');
% dpath = uigetdir('C:\Users\kit\Desktop\WR LVdata');
[fname2,dpath] = uigetfile('*');%ÅÌt@Cðwè
cd C:\Users\kit\Desktop\CheetahData
Spath=uigetdir;
eval(['fnameEV=''',Spath,'\E... |
ec4f5fd93c326143faba7dfb74fe07a1cbfd5edd9f4dc11e40b05c518b4cb874 | MATLAB | 7,738 | 235 | function timingReport = reconstructSiemensMP2RAGEwithFatNavs(reconPars)
% function timingReport = reconstructSiemensMP2RAGEwithFatNavs(reconPars)
%
% Dependencies:
%%%%%%%%%%%%%%%
%
% %% Required %%:
%
% SPM 12 (www.fil.ion.ucl.ac.uk/spm)
% For coregistration of FatNavs ('spm_realign').
% Thi... |
25e34eea452e2e2e324c1f88950818e6a4787d4a99d0109cd40366741d67cfd3 | MATLAB | 7,745 | 191 | %% BerryLeafAnalysis_ExampleAnimals
% This script analyzes two exemplary animals, one gregarious and one
% solitarious animals. It produces heatmap % (s.d. projection and mean
% intensity projection) and time course figures % for each stimulus.
%
% Version:
% 05-Jan-2024 (R2023a)
% Prepare
clc; clear all; close all
w... |
05f93f836244fb777a2d89018bf0af2ed45ede939f077c2e096aa9aabd0ef673 | MATLAB | 7,767 | 207 | % Code written by Carrie Stine
% Michael Bruchas Lab - UW
% Extracts photometry data from TDT Data Tank.
% Outputs photometry data as a .mat file in format compatible with
% my custom photometry analysis.
% REQUIRES TDTbin2mat.m file to be in the path!
%% Reset MatLab workspace - clears all variables and the comman... |
76cc976bb9a7525988f83b06e01a648037e8bf984876c18d2141ecf3ad97a191 | MATLAB | 7,769 | 208 | function [anatQA,int_data] = spmup_anatQA(varargin)
% *This implements some of the the anatomical QA measures from the*
% *Preprocessed Connectome Project Quality Assurance Protocol (QAP)*
% <http://preprocessed-connectomes-project.org/quality-assessment-protocol/>
%
% FORMAT: anatQA = spmup_anatQA(anat,c1,c2,option)... |
e26522cc05048dc73c4a42f121d003faf9b032b6142926d7d539250a4dc68fea | MATLAB | 7,773 | 257 | function processSession_FAoverTime(inputFileName,outputFileName,dataDir)
load(fullfile(dataDir,inputFileName))
%% get binned spike counts
tic
trialDur = 1;
tolerance = 0.05; % within 50ms
tsd = trials.Speed2D;
trialdurs = [tsd.PDend]-[tsd.PDstart];
invalidDurs_idx = abs(trialdurs-1)>tolerance;
tsd(invalidDurs_idx)=[];... |
79440b060b478a8428d693248593080c213943c37e1489621d1aa280a3f94267 | MATLAB | 7,787 | 242 | function [BkgMedian,MaxValues,Trace,Sig2NoisePeak]=mnl_ExtractVoxelValuesForTraces_v7(Trace,Data,BkgMedian,MagThresh,NumLengthThresh)
%New extraction method to calculate the mean cell values following this
%pathway. But now it also filters according to the brightness magnitude too
% 1) Visualise the Colour Distribution... |
a61f763dcb8268c08becad29b8463944c84145a51686aa736bee087415faec4e | MATLAB | 7,801 | 191 | function MakeMultimerNet_Group20150318
%½èÅ100000ñÆ©½ÊÌärðµÄA»ÌyAªðìém¦ðZo·éí@
% %züÌû@@C
% %ÝF¯ÌñÅwè·éêAC=0A×EyA ½èÌñðMatchingÅwèB
% %ðwè·éêAC=1A{ÍConnectionsÅwèB½dÓð·×ÄJEg·éB
% %×EÌ... |
650a6f8d4cb447de6933d783012921b6779808ad934e7b8bdd2714a43ba13160 | MATLAB | 7,805 | 195 | function SpikeDataAnalysis20180708
clear all;
close all;
% AllSpikeData©çSpikeDataMatrixðì¬A³çÉSpikeDayMatrixð쬵ÄASpikef[^êðì¬BÇÌúÌRecððÍ·é׫©ðl¦é½ßB
% SpikeDataMatrix//3³A·×ÄÌ3³Å¶©çútA^XN#
% 3³Í, 1.×E, 2.®×Ei0.5j,3.E«½×E... |
cbd9bcd40741e01fb91629ebe2420de650465c5e4699e3136ebdc9d1f144e591 | MATLAB | 7,815 | 206 | function tmcomptest(X,alpha)
%TMCOMPTEST Tukey's HSD multiple comparisons test among proportions.
% A statistical analysis used for count data is to compare the proportions
% of a binary outcome of interest for two or more groups.
% This m-file it is an implemented alternative to the Marascuillo's test and
% identi... |
b8b043eb6cca02a3728b0cccd537302f789e8f704fe460f7fa5b5e13fa178bef | MATLAB | 7,816 | 231 | %% plot figure 2
clearvars -except Behav_path Path_figures Path_variables
close all
SubjectID={'S01' 'S02' 'S04' 'S05' 'S06' 'S07' 'S08' 'S10' 'S11' 'S12' 'S15' 'S17' 'S18' 'S19' 'S20' 'S22' 'S24','S21','S25','S23'};
Drug=[3 1 1 2 3 2 3; 3 1 3 2 1 2 0; 1 3 2 1 3 2 0; 2 1 1 3 2 3 0; 2 1 3 1 2 3 0; 1 3 2 3 1 2 0; 3 1 ... |
7e56db4eb5df536377b05902961381cdce656e2fa62172d8bd870fdec23caa82 | MATLAB | 7,820 | 227 | function ob = fatrix2(varargin)
%function ob = fatrix2('odim', odim, 'mask', mask, 'arg', arg, [options])
%|
%| Construct fatrix2 object, a matrix generalization for representing
%| any linear operator. The 'f' might stand for 'fake' or 'function-based'
%| or 'fancy' or maybe a last name?
%| The caller can provide a ... |
3affde204a4087c5d76ddd3757de31ab1ea4923a56fc1fead24498ad18023dac | MATLAB | 7,821 | 191 | function Positive_Negative_RLt_Sum20201208
path=['C:\Users\C238\Desktop\touchcellLtRt_Hirokane'];
cd(path);
LS=ls;
SumLtouchPoint=zeros(1,10);
SumLtouchFire=zeros(1,10);
SumRtouchPoint=zeros(1,10);
SumRtouchFire=zeros(1,10);
SumLtouchUnit=[];
SumRtouchUnit=[];
SumLtouchPointUnit=[];
SumRtouchPointUni... |
9f6463383a745c174b20522e67c9103432426561e0ec4ec89615d8019b099eab | MATLAB | 7,822 | 191 | function Positive_Negative_RLt_Sum20200303
path=['C:\Users\C238\Desktop\touchcellLtRt_terashita'];
cd(path);
LS=ls;
SumLtouchPoint=zeros(1,10);
SumLtouchFire=zeros(1,10);
SumRtouchPoint=zeros(1,10);
SumRtouchFire=zeros(1,10);
SumLtouchUnit=[];
SumRtouchUnit=[];
SumLtouchPointUnit=[];
SumRtouchPointUn... |
f7813f8566c001e4c1678cbf156977358afd509149bb970efbdeed23f23feaf9 | MATLAB | 7,824 | 249 | close all; clear mex;
funtype = 'gpu';
%funtype = 'cpu';
%funtype = 'matlab';
kCNNFolder = '..';
addpath(kCNNFolder);
addpath(fullfile(kCNNFolder, 'matlab'));
if (strcmp(funtype, 'gpu') || strcmp(funtype, 'cpu'))
kMexFolder = fullfile(kCNNFolder, 'c++', 'build');
kBuildFolder = fullfile(kMexFolder, funtyp... |
519e43aeb0e26ace1ec7e12de6add2921d1825432778e189ca82878d70145343 | MATLAB | 7,828 | 180 | %PSTH r1ms before the stimulus and r2ms after the stimulus (r1+r2+1)/10
%should be an integer
%% 1. read files
disp('select a RHD file');
read_Intan_RHD2000_file
disp('select a plx file');
addpath(genpath('C:\Users\ywang28\Documents\MATLAB\Matlab Offline Files SDK'))
readall
%% 2. set parameters
r1 = 10; ... |
f40e870ca3eaf172ced0ee4c2afcc1e205d3f763317da54f9a8a23e957877a2e | MATLAB | 7,856 | 218 | function [dat] = ft_fetch_data(data, varargin)
% FT_FETCH_DATA mimics the behaviour of FT_READ_DATA, but for a FieldTrip
% raw data structure instead of a file on disk.
%
% Use as
% [dat] = ft_fetch_data(data, ...)
%
% See also FT_READ_DATA, FT_FETCH_HEADER, FT_FETCH_EVENT
% Copyright (C) 2009-2013, Jan-Mathijs Sch... |
a5bfa1ff59405c5139c8002d896ebda39a22704051613cb9d08a3bd499afb1a5 | MATLAB | 7,865 | 271 | function controlfilename = createLCmodel_control_laser7T(metabname,l1,l2,l3,preproc_dir)
do_water_scaling=0;
doecc=0;
T2metab=1;
%triky do ecc only for suj46
if findstr(metabname,'Suj46_100803_MC_slaser_TE_35_NEX128')
doecc=1;
end
if T2metab
ind = findstr(metabname,'TE_');
TEval = metabname(ind+3:ind+5);
if... |
c19cf5609539b083d68749a95e98591d5a3b26b988003bc35700107f916a5316 | MATLAB | 7,865 | 263 | clc
clear all
close all
%% Get DLC-generated CSV file and plot mouse position over time using TailBase position
% 60 minutes total
% If file is shorter than that, to end of video
% Change TailBasex\TailBasey to the x and y you are interested in
file = uigetfile('.csv');
data = readmatrix(file);
graphtitle ... |
00068900ee0541e350a6927a8d0d87f2452dfc271e0b951880ce86b3c5119aac | MATLAB | 7,872 | 216 | %
clear; clc;
close all;
addpath(genpath('eeglab2023.0'));
newset = 0;
subject = 1; %sub= 1 2 3 4....
% subject==1
set = 1;
if subject ==1
starting = [11000 8000 11800 16500];
% toplot = [1 3;5 7;15 16;18 17;26 25;30 29]; %F3 C3 O1 O2 C4 F4
end
%
if newset
fprintf('enter "eeglab" in... |
a615d7972b9c023acc68d2252287607a5693e86710a95696ff4c3764ab4fd38c | MATLAB | 7,872 | 196 | % This script reproduces Figure 7 in the results of the manuscript.
% It estimates the centroids and the probability model using the
% bootstrapping method described in the Method section of the article.
%
% The first part of this script loads the features extracted from the SP
% maps of all patients in our datas... |
ce2e426c143fd2bafc9e219c19778178f0762aa869faf73236d69a861f656381 | MATLAB | 7,894 | 209 | function varargout = SetXYZCoordinates(varargin)
% SETXYZCOORDINATES M-file for SetXYZCoordinates.fig
% SETXYZCOORDINATES, by itself, creates a new SETXYZCOORDINATES or raises the existing
% singleton*.
%
% H = SETXYZCOORDINATES returns the handle to a new SETXYZCOORDINATES or the handle to
% the ex... |
12c096f27344d61035a43c8ceae14907438d7f124ed893ba211ce5660e632b61 | MATLAB | 7,896 | 290 | function imab_overwrite(filename, data, clims, bSep, noCols, cmap)
% function imab_overwrite(filename, data, clims, bSep, noCols, cmap)
%
% Just output the 2D, 3D or 4D data as quickly as possible to a file
%
% Concatenates the slice dimension from left to right, and the time
% dimension from top to bottom.
%
% bSep i... |
c4f201ba072b565cb11d261fc2386882e75acb5e3bbc281165f8535b9f1fea2c | MATLAB | 7,899 | 219 | function [QT_ML, QT_BYS] = QT_analysis_GaussianFit(ecg, fs, varargin)
% Perform QT interval analysis using Gaussian fitting methods.
%
% Syntax:
% [QT_ML, QT_BYS] = QT_analysis_GaussianFit(ecg, fs)
% [QT_ML, QT_BYS] = QT_analysis_GaussianFit(ecg, fs, soi1, varNoise, plot_results)
%
% Inputs:
% ecg: Single-cha... |
3eff1a662f24d5cb94d7449f24843138d7d7d396fe1362cf4826ea7891e7c1ec | MATLAB | 7,909 | 178 |
%% loading data
tmp = load('dataFig45.mat','IPD150','IPD300','IPD450','ILD25','ILD30','ILD35','ILD40','ILD45');
%% data for binaural phase tuning
PHs = -540:10:540; % cyclic extention of the data to +/- 540 degrees
PH150 = PHs/360*1000/150;
PH300 = PHs/360*1000/300;
PH450 = PHs/360*1000/450;
% IPD 150 ... |
b6cf75cd5cbe566b573e4dda86513d3fc21cd00e3e2af33d426f5c424711cc30 | MATLAB | 7,914 | 301 | %% Analysis of neural tangling
%% load dataa
sessionTags = {'M22027', '20220517';...
'M22029', '20220607';...
'M22031', '20220524';
'M22032', '20220621';
'M22033', '20220706'};
dataDir = 'C:\Users\edward.horrocks\Documents\Code\V1Dynamics\Data\basic_111022';
s = struct;
for isession = 1:5
tic
... |
0c04bf1a0d20167d95d0a88733775713fc49e6d5a4b8d1a5421b23dc0131838a | MATLAB | 7,916 | 201 |
%{
----------------------------------------------------------------------------
Determine the time window for task relevant neurons
%Start of task
%Sound on
%Sound off
%Before choice
%After choice (0sec)
%After choice (1sec)
%After choice (2sec)
%p = 0.001
%Each epoch, predict the prior, sensory and choice... |
f5b4e0ed223550a90fd79dabb466053965958187902d7bceef00e8ddea7ddb5d | MATLAB | 7,923 | 194 | function update_annotate_axis(app)
int_idx = find(strcmp(app.popup_int_annotate.Value,app.popup_int_annotate.Items));
int_name = app.popup_int_annotate.Value;
if int_idx == 1
borders = [nan nan];
else
tmp =find(vertcat(app.burst_ints.type) == 1);
borders = app.burst_ints(tmp(int_idx-1)).borders;
end
xl... |
80d66b6c923aa01ecb43d5980244436cdda54e5368b134da4fde1045cace226d | MATLAB | 7,939 | 134 | clear;
close all;
clc;
addpath 'G:\Sameni\Documents\Papers\Journal 40 (Spline ECG Filtering)\CODES'
% % % dbstop if warning
type = 'Arrhythmia';
switch(type)
case 'Normal'
pth = 'J:\ECGData\Normal';
fs = 128;
segstart_list = 0 : 60 : 30*60; % segstart_list = 0 : 600 : 12*3600;
dif... |
e4306a8fe26bb23869dedf6ad7f5f31685a021950a443f392374d4ce9c4a824b | MATLAB | 7,940 | 230 | function varargout = Smoother(varargin)
% Smoother
% Allows the user to decide on different levels of smoothness for the
% trajectories
% Uses the convolution of the trajectory with a Gaussian
%
% 11/15/2013 BRC
% -corrected the ability to re-smooth the original data (and not
% re-smooth an already smoothe... |
fa2e7cc357aa04675310f37c7e900b7f978702225606c397b48d6f856fccc75d | MATLAB | 7,963 | 231 | % Authors : Tatjana Schmitt & Simon Wadle 2019-2023
%function reads tiff stacks and scales pixels down to end size
function resized_image = tiff_stack_import_block_process(tiff_fullpath, end_size)
if iscell(tiff_fullpath)
nr_tiffs = size(tiff_fullpath,2);
nr_frames = zeros(1,nr_tiffs);
%calcu... |
948ed827cf7fd325549651b7b4592c8b65a264ddfd5ef34c13cad321c7007722 | MATLAB | 7,974 | 244 | function update_spikelag_display(app, status)
edges = -0.5 :0.005:3;
switch status
case 'new'
spks = app.spike_res.spike_lag.spks;
num_beats = app.edt_num_beat.Value;
mov_mean = app.edt_lag_movmean.Value;
cluster = find(strcmp(app.popup_cluster_lag.Value,app.popup_cluster_lag.Items)... |
c225b9b5db57027d0badc1605044aabfbfee41f2205f8d94e388b1dac2ebfd2a | MATLAB | 7,983 | 169 | clear
close all;
clc
% parameters
logfileame = 'SVMOptimizedParamters03.txt';
outputfileame = 'SVMOptimizedParamters03Submission.csv';
% % % bins = [50 75 100 120 180 250 300 500 750];%75:6:81;%120;
% % % bins = 120;%50:1:550;%:13:250;%75:7:120;%75:6:81;%120;
% % % bins = 77;
% gmorder = 5;
% dropfeatures = 5;
sigma =... |
d21e6d31d30b1a60a5c40c686443e73e6c55dd0b93bf7eebd11bc41ed38e19a9 | MATLAB | 7,990 | 246 | function ecg_strip_viewer_multichannel(data, fs, varargin)
% ECG Strip Viewer - Multichannel Version
%
% A tool for visualizing multilead ECG signals.
%
% Usage:
% ecg_strip_viewer_multichannel(data, fs, ch_names, ref_ch, t1_small, t2_small, t1_long, t2_long, Title)
%
% Inputs:
% data: Multilead ECG signal data.
% ... |
3b9cadc4219d873f58780b3ad32b81feb00c0fee1de7994770ba3c4e8420331a | MATLAB | 7,994 | 224 | %%%% Find trigger threshold, start t=0 there, create table, convert
%%%% duration to seconds
load('DAQ_10mW_Pvst.mat')
calibrate = 59.2613;
temp = find(DAQ_10mW.ai3>1.5 );
temp = temp(1,1)-3;
DAQ_10mW_t = timetable2table(DAQ_10mW,'ConvertRowTimes',false);
DAQ_10mW_t = removevars(DAQ_10mW_t,'ai3');
DAQ_10mW_t.Time = ... |
d2e4b69fdcb24917c284296a06c728e848965fd596a8355453bef6b27fa4416e | MATLAB | 7,994 | 283 | function y3=RepeattouchWL2
global CCresultRtouchWon CCresultLtouchWon RpegTouchallWon LpegTouchallWon SpikeArrayWon tfile pegpatternname trimFolder2
% cd('C:\Users\C238\Desktop\CheetahData\2019-9-15_14-29-36 17301-03');
% dpath=('C:\Users\C238\Desktop\CheetahData\2019-9-15_14-29-36 17301-03\');
% dpath3=('C:\User... |
984fcd3afa2b44057dea11bf5810408069a1b0dbb4c38ebdc80320d78e1f6a23 | MATLAB | 8,010 | 289 | function [movie_frame] = project_s3_partition(N,varargin)
%PROJECT_S3_PARTITION Use projection to illustrate an EQ partition of S^3
%
%Syntax
% [movie_frame] = project_s3_partition(N,options);
%
%Description
% PROJECT_S3_PARTITION(N) uses projection to illustrate the partition of
% the unit sphere S^3 into N regions.
%... |
a2b1e95a82eb0b89e39bf424075a419f9de4e94ca07ba1e44fb7b4386ce095cc | MATLAB | 8,011 | 217 | function x = beeswarm(x,y,varargin)
%function xbee = beeswarm(x,y)
%
% Input arguments:
% x column vector of groups (only tested for integer)
% y column vector of data
%
% Optional input arguments:
% sort_style ('nosort' - default | 'up' | 'down' | 'fan' | 'rand' | 'square' | 'hex... |
1ba1cdb4dbf32dea6b32dc24df90051e7d8cb1b2d09e350c58fd7bf6e33c0bcf | MATLAB | 8,016 | 223 | function [AnaData]=analyze_single_Shira(filename_12,filename_21,priorCond,subj_NUM,DATA_DIR)
PLOTALL=1;
global use_log %AZ 2023_07_11
if nargin <4
plotfig=1;
end
distanceX =[4 2 1 0.5 0.25 0.125 0.0625 0.03125 0.015625 0.0078125];
distanceX =[-1*distanceX 0 fliplr(distanceX)];
%AZ 2023_06_29 to use th... |
b9d1552b7e8975a874424fcc7227ff8ef84a321e20e6abaeb546b3fe861ccf83 | MATLAB | 8,030 | 203 |
%{
----------------------------------------------------------------------------
Determine the time window for task relevant neurons
%Start of task
%Sound on
%Sound off
%Before choice
%After choice (0sec)
%After choice (1sec)
%After choice (2sec)
%p = 0.001
%Each epoch, predict the prior, sensory and choice... |
136a8d525ec6609c0fb04975dda157051bc2d1adfb4c5bcbab0e83252bc77075 | MATLAB | 8,031 | 206 | function WeightPreferAttach20171118
% WeightPreferAttach20151231
global Neurons Add
%̽¢èƳçÉðìèâ·¢lbg[N
%xÉæéDæIf
%Ììèâ·³AÅÍêlªzAªÅ«éÆAddÉæèìèâ·³ªÁ
clear all;
close all;
% Reciprocal=0.2;%0ÈOÌÆ«ÉÍA¯É... |
9510ba3560d666329af468e08774c89e610a48f5d50eccd2c5c80f9fcebafc7c | MATLAB | 8,031 | 152 | function P = Parameters_Func(Scale_Factor,P)
General_Parameters.Version_Num = '2.0';
General_Parameters.Image_Format = @(x) im2uint8(x(:,:,1));
General_Parameters.Plot1 = 0;
Auto_Tracing_Parameters.Plot_On_Off = General_Parameters(1).Plot1;
Auto_Tracing_Parameters.Plot_Trace = 1;
General_Parameters.Graphs... |
64e27aceae13b7b7672b5ac721474c33bdfa5d8a36b0a38cd22e56f36baf2259 | MATLAB | 8,041 | 259 | function hAxes = subplot1(M,N,varargin);
%-------------------------------------------------------------------------
% subplot1 function An mproved subplot function
% Input : - If more than one input argumenst are given,
% then the first parameter is the number of rows.
% If single input a... |
43d37ae8cfb0465eb862bebd004bd8de89b20dff0fe7cd6897099ca247c930df | MATLAB | 8,058 | 215 | %This file demonstrates prDeep applied to coded diffraction pattern and
%oversampled Fourier phaseless measurements
%Chris Metzler
addpath(genpath('..'))
addpath('~/matconvnet/matlab');
addpath(genpath('~/D-AMP_Toolbox'));
addpath(genpath('~/fasta-matlab'));
%Parameters
denoiser_RED='DnCNN';%Available options are NLM... |
049aa237a0db07623297d807b171cb1865e8cc859bfd880b059cca33c75be7aa | MATLAB | 8,070 | 177 | function writeDataToAtlas(atLabs, atFile, data, dataLabs, ofAppend)
% Write Data Values to Atlas ROIs in NIfTI Files
%
% This function updates atlas NIfTI files by writing new data values into
% each Region of Interest (ROI) defined in the atlas. It matches the
% provided data labels with the atlas labels and ass... |
990c5cad2204865249a244593de0ef2a3b452e6f9869ede60e4bbfa62b1c0d15 | MATLAB | 8,071 | 206 | function [Chi2,pval,effect_size]=rst_independence(X,Y,test)
% this function allows to test the independance of two data sets X and Y
% for 2 x 2 contingency tables
%
% FORMAT [Chi2,pval,effect_size]=rst_independence(X,Y,test)
%
% INPUT X and Y are two vectors (n*1) of 1s and 0s indicating success or failure
% us... |
202e2d8e5ed2c2de5538be6b385b75caf2753580c7a5af1aa66158ca512993d2 | MATLAB | 8,073 | 243 | function [pdf, sigma] = circ_ksdensity(T, ti, method, sigma)
%CIRC_KSDENSITY Probability density function of circular data.
%
% -------------
% INPUT
% -------------
% T - circular data values, n-by-1 vector
% ti - vector location in angles of even-spaced points where
% the pdf is to be computed (1:360 for example... |
a67e0b9b3629d8ed57c17539c2281872639fbe1aa09a5532990e3b5356440c00 | MATLAB | 8,078 | 153 | function P = Parameters_Func(Scale_Factor,P)
General_Parameters.Version_Num = '2.0';
General_Parameters.developer_mode = false;
General_Parameters.Image_Format = @(x) im2uint8(x(:,:,1));
General_Parameters.Plot1 = 0;
Auto_Tracing_Parameters.Plot_On_Off = General_Parameters(1).Plot1;
Auto_Tracing_Paramete... |
196802949df70978bb69d8f62960be1b28f5f2b5537672fe809443649cfe0bde | MATLAB | 8,084 | 181 | function spec_info = explore_spectro_data(P)
if ~exist('P','var')
P = spm_select([1 Inf],'dir','Select directories of dicom files');
end
if exist('spec_info','var'),found=length(spec_info);else found=0;end %#ok<SEPEX,NODEF>
for nbdir=1:size(P,1)
[afid, adcm]=spec_read_all(deblank(P(nbdir,:)));
if ~isempt... |
4435ab6c453f26d81d4914a3b435b52225ab32ece8bbbd52bbe7894125df9b2b | MATLAB | 8,088 | 167 | function [rawS] = extractRaw_fft(varargin)
%%Extract raw photometry data from multiple recordings into a single
%%structure and parse by specified behavioral state, for FFT analysis with
%%function getFft
%
% [rawS] = extractRaw_fft() - extract new data into structure
% [rawS] = extractRaw_fft(fPath, fName) - ext... |
37b9ad8d99438f28e493352a616e2250960ea8fdc3f53aa9d6e3159c8b85e79d | MATLAB | 8,131 | 162 | %SaveFragLetterSloanImages
%code to generate fragmented letters, similar to the VOSP test, then save as .tif files
%here using Sloan letters, loaded from image files
%specify image size, a set of IntactProp levels (proportion of the letter that is intact where lower=more fragmented) levels,
% plus checksize under image... |
7c269f15964323dfa02826de86e3b656ff7f0406d0921fd4aac484c016174d2f | MATLAB | 8,133 | 215 | function component = buildMotionComponent(controllerName,controllerParams,varargin)
% Build motion component
%
% function buildMotionComponent(controllerName,controllerParams,stageName1,stageParams1,...stageNameN,stageParamsN)
%
%
% Purpose
% Construct a motion hardware component object from one of the available cla... |
b0ca1b6e67e3e0194fe2bcee5a24a4a17d2392267cb90106ce279cb36727fb46 | MATLAB | 8,139 | 189 | % Copyright 2024 Eelke Spaak, Donders Institute.
% See https://github.com/Spaak/rift-phase-and-visibility for readme/license.
% Belongs with:
% Spaak, E., Bouwkamp, F. G., & de Lange, F. P. (2024). Perceptual foundation and extension
% to phase tagging for rapid invisible frequency tagging (RIFT). Imaging Neuroscie... |
6615cade0fae608b2015dcbc6d0d07465877a404cffc909f3471aa1cff3e7e50 | MATLAB | 8,144 | 231 | clear all
% this script contains code to reproduce Figure 5c-d, f, h-j
%% load data
% drag and drop corresponding file (S5 Data)
%% data content description
% behavior contains video energy data form the face (behavior.whisking) and
% the wheel (behavior.wheel) of the size 1801 frames (fs=20Hz) x 14 tri... |
f46359d3746dadfbec7e1fcdfde9aa3e2b1ec3f0628a58a2cf9f9aa1fd4fd604 | MATLAB | 8,146 | 201 | %
% Test program for generating synthetic maternal and fetal ECG mixtures
% with realistic ECG noises and extracting independent components using the
% JADE ICA algorithm.
% The results may be compared in different SNRs for the maternal ECG and
% the fetus. When applying ICA in high input SNRs, ICA tends to extrac... |
4c9f4262e57b268f94ecda065fc5afd38f385bc11e96eea4e0576df05d31cbd0 | MATLAB | 8,148 | 217 | function [phase, inst_freq, amp] = Phase_Ex_ZPPP(x1, fs, varargin)
%
% [phase, inst_freq, amp] = Phase_Ex_ZPPP(x1, fs)
% [phase, inst_freq, amp] = Phase_Ex_ZPPP(x1, fs, WS, max_f, ndft, pertnum)
%
% *************************************************************************
% * Instantaneous Phase (IP) estimation using... |
587142842a6403ae47986569ce0ad1d41078554aa52ad8beecc7612398e6c5d0 | MATLAB | 8,151 | 200 | %% ConfocalAnalysis_ExampleAnimals
% This script analyzes four exemplary animals, two gregarious and two
% solitarious animals. For each phase, one recording is from the cell body
% layer, and one is from the glomerulus layer. It produces heatmap
% (s.d. projection and mean intensity projection) and time course figures... |
274e2a8984b6990917b8df66bac8f76025ee8f30d388c1d39f25c4c11f1d2363 | MATLAB | 8,152 | 300 | function Zscore_dist
% Cortex
path=['/Volumes/KIOXIA/CheetahWRLV20230323_Ctx'];
cd(path);
load('Zscore.mat')
bin = 50;
% MaxA1Rt_count=MaxA1Rt_count(find(MaxA1Rt_count));
% MaxZR_count=MaxZR_count(find(MaxZR_count));
% MaxA2Lt_count=MaxA2Lt_count(find(MaxA2Lt_count));
% MaxZL_count=MaxZL_count(find(MaxZL... |
f5a28a8300b6e1c7317f6cc2a98caf39e35d003b176f985ba0be599d39c53273 | MATLAB | 8,160 | 199 | function tracesFilt = plotFigTraces(hFigTraces, hCfg, tracesRaw, resetAxis, hClust)
%PLOTFIGTRACES Plot raw traces view
hBox = jrclust.utils.qMsgBox('Plotting...', 0, 1);
hFigTraces.wait(1);
sampleRate = hCfg.sampleRate / hCfg.nSkip;
viSamples1 = 1:hCfg.nSkip:size(tracesRaw, 2);
evtWindowSamp ... |
e0bd8085c4005555c07d875836ffdef1c973627d759a48989e41d922035a7e0c | MATLAB | 8,164 | 273 | clear;
addpath(genpath('.'));
bigFont;
subpanels = 'AB C DEF';
NCOLS = 2;
NROWS = 1;
WIDTH = 6*2.54;
HEIGHT = 2.5*2.54;
close all;
[panel_pos, fig, all_ax, H] = panelFigureSetup2( NCOLS, NROWS, subpanels,WIDTH,HEIGHT, 0.5, 1.5);
PX_TO_UM = 1.085;
SCALE = 1.15;
FSZ = 20;
H(1).FontSize = FSZ;
H(2).FontSiz... |
a8e2d98f8762cad8855f2a30eb061c7b99f5fb7333004aead8a6762a27d7c128 | MATLAB | 8,172 | 275 | function [fwhm_x, fwhm_y, fwhm_x_median, fwhm_y_median, fwhm_unfilt, ROIgoodnessinfo] =...
fwhm_fit(cdata, ~, ROIspan, pixelsize, rois, mingoodness, FWHMmax, FWHMmin, tag,numROIs)
%% rois is a list of x and y values for the ROI centers from find_peaks
%% Extract FWHM
halfROImax = (ROIspan-1)/2;
%numROIs = 11;
% p... |
6e0938dd15d2060ebdf78f9689d35e1ba372f11b2dc55d24487d919b38ce6cb7 | MATLAB | 8,177 | 200 | % Script to sort and merge for Rasters for Several Analized Conditions
% from script get_bayes_ensembles and from GUI NeuralNetworks (by JP)
%
% Requirement: load a .mat File from FinderSpiker
%
% Input
% Raster_Analysis Data Structure of Ensemble Anlysis
% From Worksapce:
% RASTER_Selected_Clean
% ... |
cf8053d4ee238f602bbac852f82b02a68a57d9002bf1f480dc6a0c654c5e6c05 | MATLAB | 8,187 | 224 |
%{
----------------------------------------------------------------------------
Determine the time window for task relevant neurons
%Start of task
%Sound on
%Sound off
%Before choice
%After choice (0sec)
%After choice (1sec)
%After choice (2sec)
%p = 0.001
%Each epoch, predict the prior, sensory and choice... |
346ca81c5fc51499a7d883a40ae2bfc109941e0fb3aaaef7a64c681bf7da396d | MATLAB | 8,191 | 192 | % Open the USB port. In this example, we assume that the Teensy
% microcontroller is connected to COM3.
port = serial('COM9','BaudRate',115200);
fopen(port);
% Specify the conductance values (in nS) and diffusion constant values (in
% nS^2/ms).
g_shunt_CH1 = 0.0;
m_OU_exc_CH1 = 0.0;
D_OU_exc_CH1 = 0.0;
m_OU_inh_CH1 =... |
96cbb55cc26b8ae9a6564c2f29a3d7167837c6de9278e95102d017bf4ff76d81 | MATLAB | 8,191 | 238 | function realcolor = freezeColors(varargin)
% freezeColors Lock colors of plot, enabling multiple colormaps per figure. (v2.3)
%
% Problem: There is only one colormap per figure. This function provides
% an easy solution when plots using different colomaps are desired
% in the same figure.
%
% freezeC... |
d89bf7982f82cdf0277645911984189ee23e33ba0a7b15c6f25597cadf0ddf32 | MATLAB | 8,202 | 212 | function viewlick_opto(root, cbID,varargin)
%VIEWLICK_OPTO Lick raster and PSTH.
% VIEWLICK_OPTO(CBID,'TRIGGERNAME',TRIGEVENT,'SORTEVENT',SEVENT,'EVENTTYPE
% ',EVTYPE) plots an event triggered lick raster and PSTH for a given
% session (CBID: 1-by-2 cell containing animal ID and session ID).
% TRIGEVENT ... |
8f403417d42411f8ca42285680c2bfecd03dbad221710c7c1ee5994e360e7846 | MATLAB | 8,210 | 205 | %% Precomputing on Planes: Give input, compute firing rates as functions of inputs
% Output: save([SaveFolder 'MFpV_LDE_' num2str(InputCtgr) '.mat'],...
% 'f_EnIOut','meanVs','SteadyIndicate','FailureIndicate','L4ERcrd','L4IRcrd')
% Input: Angle:ranging from 0-90 deg, although we only use 0 7.5 15 22.5... |
fd01baaf6a1d50cd5fd38ff8c95fb814a7ec3950281af0547bf74d5c4374b858 | MATLAB | 8,221 | 209 | function [Workspace1,I6,CB_Perimeter,Ellipse_Ind] = Find_Cell_Body(Workspace1)
MinPeakDistance = Workspace1.Parameters(1).Cell_Body(1).MinPeakDistance;
MinPeakProminence = Workspace1.Parameters(1).Cell_Body(1).MinPeakProminence;
MinPeakProminence_Normalized = Workspace1.Parameters(1).Cell_Body(1).MinPeakProminence... |
9fb4d35c567a17c0b47a89e1a04a79d84e280458fe5fc6544a9597f5ea79b8f0 | MATLAB | 8,235 | 215 | function spike_res = spike_analysis(app)
%SPIKE_ANALYSIS Summary of this function goes here
% Detailed explanation goes here
MIN_CLUSTER=10;
calc_flag = true;
if ~isempty(app.spike_res)
spike_res = app.spike_res;
if ~spike_res.analysis.sorting && ~app.chkbx_spike_sorting.Value
calc_flag = false;
... |
8c0a8c1b81c8fbb1a1f4cdf555b14356670b540074079354023cb5e0a819f47c | MATLAB | 8,251 | 204 | function [sData] = smoothVertData(data, verts, faces, varargin)
% smoothVertData Smooths vertex-based data using neighboring vertex values.
%
% This function smooths scalar or multi-dimensional data associated with
% vertices on a mesh surface. Smoothing is performed by averaging each data
% point with its neighboring ... |
cac555b2c0accda17e3354bbcbeb65e568ed382ea383129db8201fd276180071 | MATLAB | 8,257 | 262 | %% plot 6x4 behavior + model data
% Odor on period: 2 to 6s, off period: 6 to 10s
% Panel A
clear all; clc; close all
conditions2 = {'hon','ion','bon','ccon', 'hof', 'bof'};
load('alldata.mat');
conditions = {'hexon','iaaon','bzaon','citon', 'hexoff_05s', 'bzaoff_05s'};
% onum = [1,2,3,4,1,2]; %which odor to plo... |
63c1650e3d728b081f5c0046886e34d33b613743b18b00be4393035c9c4804b3 | MATLAB | 8,260 | 195 |
for i=1:length(dataName);
[ExMean, ExMeanResid]=findchangepts(chan1Baseline(:,i),'statistic','mean','maxNumChanges',3);
[ExRMS, ExRMSResid]=findchangepts(chan1Baseline(:,i),'statistic','rms','maxNumChanges',3);
[ExSTD, ExSTDResid]=findchangepts(chan1Baseline(:,i),'statistic','std','maxNumChanges',3);
if length(ExMean... |
6a09256037f9c747950bc9de34d804629cc18560130fffacdc6625405488516f | MATLAB | 8,262 | 1 | function B=inpaint_nans3(A,method)
% INPAINT_NANS3: in-paints over nans in a 3-D array
% usage: B=INPAINT_NANS3(A) % default method (0)
% usage: B=INPAINT_NANS3(A,method) % specify method used
%
% Solves approximation to a boundary value problem to
% interpolate and extrapolate holes in a 3-D array.
%
% Not... |
4ea362dff85eed9fe6e0d792ce319322521a26dbfb2f99cf0189937763dbe433 | MATLAB | 8,267 | 170 | function Xguess = deconvRL(maxIter, Xguess,WDF, psf,weight,DAO,Nb,GPUcompute)
% Deconvolution for the single-frame multiplexed phase-space data
%% Input:
% @maxIter: the maximum iteration number
% @Xguess: the estimated volume
% @WDF: multiplexed phase-space data
% @psf: phase-space PSF
% @weight: the weight nu... |
9900a83435546aed77b28b78a68e183f7583ae586d3d4f2472225e7afcabb848 | MATLAB | 8,275 | 180 | % Test program for generating synthetic abnormal multichannel ECGs with additive
% colored noise
% The current example is for the TWA abnormality
%
% Dependencies:
% - The synthetic ECG generator and noise generator package of the Open Source ECG Toolbox
% - The rrprocess.m function from ECGSYN (https://physi... |
cd6639cf44a1ab12f688c7e4add3e2b28da210ed4145640d34886221a6e6457c | MATLAB | 8,280 | 194 | for i=1:length(dataName);
[ExMean, ExMeanResid]=findchangepts(chan2Baseline(:,i),'statistic','mean','maxNumChanges',3);
[ExRMS, ExRMSResid]=findchangepts(chan2Baseline(:,i),'statistic','rms','maxNumChanges',3);
[ExSTD, ExSTDResid]=findchangepts(chan2Baseline(:,i),'statistic','std','maxNumChanges',3);
if length(ExMean)... |
51e2f2b79904ffec1b3f9a520b7bd9718d56b53891d00dcfc984fc789d5bb8ea | MATLAB | 8,281 | 159 | %% function C_SS_mean = AveSpatKer(C_SS_Pixel_Us,N_HC,NPixX,NPixY)
% Input: C_SS_Pixel_Us: A Pixel connectivity matrix (from network).
% Pre(col)*Post(row)
% N_HC,NPixX,NPixY: # of hypercolumns, # of pixels per HC
% Output: C_SS_mean: Averaged spatial kernal of firing rats. Same size as
% C_SS_Pixel_Us
% Zhuo-C... |
e9b5e898cba7c13a57f5ae243d8497edec7e4aeb8e7122f21e4056ab16c68f4b | MATLAB | 8,294 | 226 | function W2_Pattern_3_20201208
path=['C:\Users\C238\Desktop\touchcellLtRt_Hirokane'];
cd(path);
LS=ls;
LtWFRUnit=[];
RtWFRUnit=[];
LtW12Point=0;
LtW12Fire=0;
LtW23Point=0;
LtW23Fire=0;
LtW34Point=0;
LtW34Fire=0;
LtW45Point=0;
LtW45Fire=0;
LtW13Point=0;
LtW13Fire=0;
LtW14Point=0;
LtW14Fire=0;
LtW15Po... |
11e69c8cde225c8db371363918181da4f255f6dba48ba02525c4f5c5926550b6 | MATLAB | 8,295 | 237 | % Gengxi Lu
% NRD: raw data
% NEV: event data
% Sampling frequency 30 kHz
% -ADMaxValue 8388608
% -ADBitVolts 0.000000015624999999999999 || 0.015625 uV
% testing data source: https://figshare.com/articles/dataset/UltrasoundRP/25438252
parpool(4)
clear
FilePath=['H:\neuralynx processing tool\CheetahData\'... |
21f6d6e6f34073f7981badc0c9652c9ef8a95d9a3872a91f8575b49c7e984df6 | MATLAB | 8,295 | 226 | function W2_Pattern_3_20200302
path=['C:\Users\C238\Desktop\touchcellLtRt_terashita'];
cd(path);
LS=ls;
LtWFRUnit=[];
RtWFRUnit=[];
LtW12Point=0;
LtW12Fire=0;
LtW23Point=0;
LtW23Fire=0;
LtW34Point=0;
LtW34Fire=0;
LtW45Point=0;
LtW45Fire=0;
LtW13Point=0;
LtW13Fire=0;
LtW14Point=0;
LtW14Fire=0;
LtW15P... |
de2a2cd86c6585f77c1f2ad95f207374ddb25f0d21d791f94555f12a7d665f2e | MATLAB | 8,299 | 225 |
%{
----------------------------------------------------------------------------
Determine the time window for task relevant neurons
%Start of task
%Sound on
%Sound off
%Before choice
%After choice (0sec)
%After choice (1sec)
%After choice (2sec)
%p = 0.001
%Each epoch, predict the prior, sensory and choice... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.