sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
ad1db083def524214fb002612c44b6fc2d421f1fe6ac92551487664677af4209 | MATLAB | 1,545 | 61 | classdef Annotation
properties
ProjectPath
VideoName
File
FilePath
AnnotationTable
Behaviors
MultiCam = false;
PrimaryCamera = ''
CameraNames
end
methods
function self = Annotation(project, video)
... |
f96946ed5512ced95dac04e522af33bcac7afb733ed0e278ebc4bcae35bf60d8 | MATLAB | 1,545 | 41 | function tbread(table,cols,vecs,sql)
% tbread Read from MySQL table [mym utilities]
% Inputs table - table name, string
% cols - list of input columns, (m*1) cell array of strings
% vecs - list of output vectors, (m*1) cell array of strings
% sql - SQL 'select' stateme... |
ba0c1714063e8b8f356706ccf30bc4c428e9ffe0846cf97599c3c21545a783a7 | MATLAB | 1,547 | 55 | function visualCart(h,x,Target,Head,Tol)
persistent p p2
%Define the shape and colour of the dot based on elevation and target
%heading
if x(6) <= -15
dotColour = 'b';
dotMarker = 'o';
elseif x(6) <= 15
if (x(5) > (Head(Target) - Tol(Target))) && (x(5) < (Head(Target) + Tol(Target)))
dotColour = 'g... |
a334d4f0e49a4ab35b3f1fe8de5031c636b033ad98a322cd47edccfc1c14d900 | MATLAB | 1,548 | 49 |
function [filteredData] = filterData(data, sigma, kernel, noFlip, paddingMode)
% paddingMode = 0 -> Pad with repeated values
% paddingMode = 1 -> Pad with 0s
% paddingMode = 2 -> Pad circularly
if ~exist('noFlip', 'var') || isempty(noFlip)
noFlip = false;
end
if ~exist('paddingMode', 'var') || isempty(paddingMod... |
9776f7a08d0d1e4e4431174c0d384f00f7fdca8bf84fd96310ba6dcf2a31855f | MATLAB | 1,554 | 60 | function plotPredFace(predDat,weightsPixels,rootDir)
if ~exist('rootDir','var')
rootDir = [];
end
nMice = numel(predDat.ypred_test);
W_all = predDat.W_all;
% Weights for best predictions
pc2plt = 1;
figure;
for k = 1:nMice
subplot(ceil(sqrt(nMice)),ceil(sqrt(nMice)),k)... |
938b80ababfea70b80fb6457dd1eff963c8afe5ed79a1d1115738db8d1b7423c | MATLAB | 1,556 | 54 | % PURPOSE: erases ERPLAB Studio's memory (values are those last used. Default ones are reloaded)
%
% FORMAT
%
% erplabamnesia(warningop)
%
% INPUT:
%
% warningop - display warning message. 1 yes; 0 no
%
%
% *** This function is part of ERPLAB Studio Toolbox ***
% Author: Guanghui Zhang
% Center for Mind and Bra... |
0d9264d2fcc74376a634f05dede6cbe252ccf46f2f5277887b8dd851a8080ead | MATLAB | 1,557 | 34 | function generate_patches(cropped_size, overlap, pixel_threshold, var_threshold, ...
save_all, source_path_3d, save_path_3d, source_path_2d, save_path_2d, bitdepth)
% GENERATE_PATCHES crops small 3-D stacks and corresponding 2-D light field
% raw image for training. It discards the patches lack of information based... |
1a9758ffd79c154d10019adc75dc8d0f8981cedbe222d392b2d3b0ac135e2afa | MATLAB | 1,557 | 53 | function result = addTankToRegistry (tank, directory)
% AddTankToRegistry Adds a given tank to the TTankEng through the registry
%
% result = addTankToRegistry (tank, directory)
% Given the string tank name (i.e. '070515A') and the string directory
% to the tank (i.e. 'C:\Tanks\') with a trailing backslash... |
05301d65b6cf28437b316f1cb9083fa4066ccb687229359e8861f1f8c0abea6a | MATLAB | 1,559 | 66 | function NHP_SaveDataFcn(RUNTIME)
% ep_SaveDataFcn(RUNTIME)
%
% Default function fo saving NHP sound localization data. Also generates
% and plots psychometric function fit (estPsychFnc). Results from fit are
% saved as Data.res (Data.res.Fit = [threshold,width,lambda,gamma,eta])
%
% Daniel.Stolzberg@gmail.com 8/20... |
696555b2fa1e4c1873ed84a4a80769f72ea32d66c9c035e0d6df105330010196 | MATLAB | 1,560 | 59 | function [ w_min, f_min, f_max ] = draw_3D_surface(cost, n, x_min, x_max, y_min, y_max)
% Draw 3D surface.
%
% Inputs:
% cost problem cost function
% n grid samples
% x_min minimum value of x range
% x_max maximum value of x range
% y_min minimum va... |
bb8b666b2cc85fb76dc03a9b1cd603a5d15bcc96d8f91a1eba1dfa03a06170c3 | MATLAB | 1,560 | 53 | % Sample nested object to test expandable properties.
% Copyright 2008-2009 Levente Hunyadi
classdef SampleNestedObject
properties
RealDoubleScalar = pi;
RealDoubleRow = [1.5,2.5,3.5,4.5];
RealDoubleColumn = [1.5;2.5;3.5;4.5];
RealDoubleMatrix = [1.5,2.5;3.5,4.5];
R... |
2db9d8c042f61594e563161afa702130651b264c7277b0868522df3e152d04ff | MATLAB | 1,561 | 54 | function [beta, mse, Rs, eps] = regress_Y_on_X(Y, X, random_inter, groups)
% Perform multiple regressions using \ and return key metrics.
% Y = X*beta
% A column of ones is appended to X to add an intercept term.
%
% Inputs:
% - Y: (N,M) matrix, where
% N = nb of observations and
% M = nb of ... |
869703906415144b1a48f197c67ec229bca97682ab20e067b07639965a9bd6b1 | MATLAB | 1,561 | 50 | function [params, precomputedPortion] = scaleWB3(params, spkHistPrior_setup, couplingGroup)
% i.i.d non-mean Gaussian over spike history coefficients & constant
K = size(params.B,1);
w_mu_idx = 1;
w_sig_idx = 2;
H = double(params.H);
w_mu = H(w_mu_idx);
log_w_sig = H(w_sig_idx);
w = double(params.W);
precomput... |
9061e7fa2fd7aa84ddd3245100c4330894e0b7b7f9316646378d0be88d5c755a | MATLAB | 1,561 | 60 | % Intraparietal stimulation disrupts negative distractor effects in human multi-alternative decision-making
% Kohl, C., Wong, M.X.M., Wong, J.J., Rushworth, M.F.S. & Chau, B.K.H.
% eLife 2022
% Script to generate Figure 3 - figure supplement 1d
clear all; close all; clc;
% Load estimates generated from gLME ... |
9c630f9d454ce89b4a8b7e40862c3d57b2a67802468f61b91e2206d1ab5a59d6 | MATLAB | 1,562 | 46 | function meandist = meandist_estim(data, use_data)
% UltraMegaSort2000 by Hill DN, Mehta SB, & Kleinfeld D - 07/09/2010
%
% meandist_estim - Estimate the average distance between vectors.
%
% Usage:
% meandist = meandist_estim(data, use_data)
%
% Description:
% MEANDIST = MEANDIST_ESTIM(DATA) takes an (M x N) mat... |
0bc37931ef5029de44300c3b25bb6d68b618fea5b15492bbec67e359006a3bff | MATLAB | 1,564 | 54 | function [EEG,data_sd]=chan_variance(EEG,varargin)
g=struct(varargin{:});
try g.data_field; catch, g.data_field='data'; end;
if strcmp(g.data_field,'data');
try g.chan_inds; catch, g.chan_inds=1:EEG.nbchan; end;
else
try g.chan_inds; catch, g.chan_inds=1:size(EEG.icawinv,2); end;
end
try g.epoch_inds; ... |
21a0c11b70cb1bf2dac206d0f0348e50cf284510f00815ca63b44f33d8e33ab5 | MATLAB | 1,565 | 63 | function handles = updateTrialHistoryPassive_SanesLab(handles,variables)
%handles = updateTrialHistory_SanesLab(handles,variables)
%
%Custom function for SanesLab epsych
%
%This function updates the GUI Trial History Table.
%
%Inputs:
% handles: GUI handles structure
% variables: matrix of trial information
%
%
%
... |
adf591c70da5a01a5fd95881a9724723687ea31fed9ccf19b1a7fdd10174d53b | MATLAB | 1,565 | 43 | % PURPOSE: creates a figure for an ERPLAB Studio window or dialog.
%
% FORMAT:
%
% h = f_estudio_figure(...)
%
% Takes and returns exactly what figure() does. The only difference is that the
% figure carries pixel font units as a default, so every component built inside
% it reads its FontSize in pixels rather than poi... |
18fdb1f8221c6e2b0d4de9e3d583c8e04e87c4f414b894b6ff76482367b1ed0d | MATLAB | 1,566 | 50 | function tbadd(table,names,types,varargin)
% tbadd Create MySQL table [mym utilities]
% Inputs table - table name, string
% names - column-name list, (m*1) cell array
% types - column-type list, (m*1) cell array
% over - string 'replace' to allow overwrites (optional)
... |
893cebe7d63c1b9cae8ae43296b5400ebb93eb2142d46f8a6bc500e29cfa5887 | MATLAB | 1,570 | 42 | %%This code extract features from kinematics; please follow the example_kinematics.mat file for data preparation
%%Created by Xianghao 03/02/2021
Dir_code = ''; %Please fill in the code directory with: extract_fft.m
Dir_kinematics = ''; %Please fill in the directory of kinematics.
dataset = ''; %Name the output... |
1bfccde636796628d29b2e5097f62b9327a25ea1299b1ff5219f0d8ee329cd3a | MATLAB | 1,571 | 55 | function [dz_values, Nz] = set_up_dz(G)
% Set up adaptive mesh
increase_factor = G.increase_factor_z;
G.Na_channel_start_z = (G.Na_channel_end_z+G.Na_channel_start_z)/2 - 1;
G.Na_channel_end_z = G.Na_channel_start_z + 2;
G.K_channel_start_z = (G.K_channel_end_z+G.K_channel_start_z)/2 - 1;
G.K_channel_end_z = G.K_chan... |
04ceed9abf2c757f39f012fe88e5c5adc74f2d626d569cb03be7cd3ccd9469f6 | MATLAB | 1,572 | 52 | function [windowed, windowedF, MemSpan, MemSpanF, leaky_int, leakyF_int, ...
MemDecay, MemDecayF, Weight, Gaussian] = get_memParams(param)
% Extract the memory params from the input argument.
%
% From CountEventInMemory.m.
% Used in MarkovNoJump.m, CountEventInMemory.m
% Dounia Mulders -- 2019.
windowed = 0;... |
f488a6ad67498c6d56a512dfe24c4a5c2bd223d75cd7b18662fbd06722a1bcc0 | MATLAB | 1,573 | 49 | function conf = set_conf()
confFile = fullfile(userpath, 'hen_conf.mat');
if exist(confFile, 'file')
load(confFile, 'conf');
end
if ~exist('conf', 'var')
conf = struct();
end
if ~isfield(conf, 'dataDir')
conf.dataDir = fullfile(getenv('USERPROFILE'));
end
if ~isfield(conf, 'solutionsDir')
... |
c3b46e73ad17832727e4e86a177588c6046ed324a0e582bea619f897c950d230 | MATLAB | 1,574 | 51 | function [hFigsSorted] = sortfighandlearray(hFigs,varargin)
%SORTFIGHANDLEARRAY Due to changes in Matlab 2014b graphics system, figure
%handles are no longer doubles, but rather an graphics object. Hence, these
%objects can not be sorted directly. This function accepts an array of
%figure handles, and returns an array ... |
8ff2975c96342e9afa5435648e7b72bd1f2dba132b66c9dec4b23bcfa087d9ac | MATLAB | 1,576 | 40 | function chargeForPercep = charge_for_num_fibers(nerveModel, electrodeType, placements, numAS, numFibersForPercep)
%CHARGE_FOR_NUM_FIBERS Summary of this function goes here
% Detailed explanation goes here
paramSet = '1';
chargeForPercep = zeros(numel(placements), numAS);
for iPlacement = 1:numel(placements)... |
f75903e15fc750ce51f6bb9c73ab1f6e47a3ffe025724b8b4bf31ce365a0ca84 | MATLAB | 1,576 | 40 | %Code by Paolo Velásquez - YachayTech University
%Biomedical Engineer Student.
%School of Biological Sciences and Engineering.
imds = imageDatastore('ImageData5', ...
'IncludeSubfolders',true, ...
'LabelSource','foldernames');
%auimds = augmentedImageDatastore(imds,'ColorPreprocessing','gray2rgb');
[im... |
665d71609397a8aa97e2f0253874d926f3aaaa97a80231aff6c3a15d5a1420ba | MATLAB | 1,578 | 78 | clear all;
% Add decoding functions to path
addpath('../');
%% 1. 2class problem
%% 1.1. Generate data
% Specificy parameters
numF = 2;
numN0 = 50;
numN1 = 150;
m0_true = [0 1]'; % True mean for class A
m1_true = [0 -1]'; % True mean for class B
S0_true = [1 .6; .6 1]; % True covaria... |
e223127b49561e2040a8a461c2b6a8e2c79cad72481dab0b5369f0fd96be0d19 | MATLAB | 1,578 | 53 | function hfig = plotSpectra(signal,fs,fmin,fmax,dim)
% PLOTSPECTRA plots the Fourier spectrum and and wavelet spectrogram of
% input signal SIGNAL with sampling frequency FS. Spectra are computed
% between minimum frequency FMIN (default 1 Hz) and maximum frequency FMAX
% (default 100 Hz). Signal is assumed to be in th... |
4c856adab9fca21aeb5a6a9d8fee7f684efa6a90aa56083bdfd9ae4b8e2da7ab | MATLAB | 1,579 | 68 | function [y,t2] = ode45_Liley(t, params)
% simulate deterministic version of the Liley model using ODE45
he_rest=params(1);
hi_rest=params(2);
Nee_beta=params(3);
Nei_beta=params(4);
Nie_beta=params(5);
Nii_beta=params(6);
Gamma_e=params(7);
Gamma_i=params(8);
gamma_e=params(9);
gamma_i=params(10);
Tau_e=params(11);
T... |
3776ba56bc044b76a57d8e075208817d9f00de59caab3bb95f3556d1961223c8 | MATLAB | 1,580 | 51 | function localDataPath = setLocalDataPath(varargin)
% function LocalDataPath = setLocalDataPath(varargin)
% Return the path to the root CCEP directory and add paths in this repo
%
% input:
% personalDataPath: optional, set to 1 if adding personalDataPath
%
% when adding personalDataPath, the following function sho... |
be46a77ab7decba46ca776c24719ef419e85f5e87b11355521a0ac5e5cb47a62 | MATLAB | 1,580 | 51 | function [results] = spkHistPrior2(params, results, spkHistPrior_setup, addDPriorForWB)
% i.i.d non-mean Gaussian over spike history coefficients & constant
K = size(params.B,1);
w_sig_idx = 1;
b_sig_idx = 2;
H = double(params.H);
log_w_sig = H(w_sig_idx);
log_b_sig = H(b_sig_idx);
%% log hyperprior
if(isfield(re... |
18d3a676b5bd035f93046832b7e736bd542fd314aeb69a9e5b6fd2f8bf016c71 | MATLAB | 1,591 | 62 | function S = ReadDATags(DA,TRIALS,params)
% S = ReadDATags(DA,P)
% S = ReadDATags(DA,P,params)
%
%
% Reads current values from an RPvds circuit running on a TDT module into a
% structure S.
%
% P is a Protocol structure (typical a field in the CONFIG
% structure)
% ex: S = ReadDATags(DA,CONFIG(1).PROTOCO... |
f08aa0858c3b7c6de07f33c8896e0fd9f42980f78478ce723906bd768e1369b2 | MATLAB | 1,591 | 57 |
function status = GetFeatureIndices(self)
streams = self.ConfigFile.GetParams('Streams');
cams = self.ConfigFile.GetParams('CameraNames');
videoNames = GetVideoNames(self);
if self.VerboseLevel > 0
fprintf(' Collecting feature status for %d videos ', length(videoNames))
end
Video = {};
FeatureIndices = {};
f... |
4df71fa493366a895c0a561b981675db4c769adf1d19eec346e8b96c1f69bb8f | MATLAB | 1,592 | 41 | function [y] = my_sub_sep_icwt(P, f, f_span)
% this sub-function is used to reconsturct the signal from the wavelet transform (the wavelet basis is selected as the type proposed By Tognola)
% fprintf('Calculating ICWT ... ')
% 'x' - the original data samples
% 'f' - the discrete frequency samples (normalized)
... |
8b0feb21b38c368fa45d9141d242f2f56a7fbb257673ab29844ebc7cde8ed409 | MATLAB | 1,592 | 52 | function handles = TrialDelivery_Callback_SanesLab(handles,status)
%handles = TrialDelivery_Callback_SanesLab(handles,status)
%
%Custom function for SanesLab epsych
%
%This function turns trial delivery on or off when the DELIVER TRIALS or
%PAUSE TRIALS button is pressed, respectively.
%
%Input:
% handles: GUI handl... |
bfd8b8d00256939504338dcecc25a55fbda61aedfd7ce701e13a7f3e54cc4019 | MATLAB | 1,593 | 43 | function plotLinFit(X,Y,yfit,P,Powers,Rsq,xlabl,ylabl)
% Plots data and their polynomial fits. Figure title includes polynomial
% coefficients and r-square
%
%__________________________________________________________________________
% Copyright (C) 2022 Laboratory for Neuroimaging Research
% Written by A. Lutti,... |
19a46b09b14e27c9839de6645ad9a647153466ad250fed248d56468f6e2d825f | MATLAB | 1,595 | 49 | function cov = plotEigenspectra(r,compDimP,sideTransec)
%%% This function will plot the eigenspectra
cov = squeeze(nanmean(r.Cov_comp ./ nansum(r.Cov_comp,[1 4]),2))*100;
figure('Position',[680 380 500 330]);
for f = 1:numel(compDimP.focusOnList)
focusOn = compDimP.focusOnList{f}... |
46f02eb61c019dd48cbc8c5929faf47965e6d5d5dbcce5d9587d218958639563 | MATLAB | 1,595 | 66 | function demo_lasso_cv()
% demonstration file for SparseGDLibrary.
%
% This file illustrates how to use this library in case of problems with
% trace norm minimization.
%
% This file is part of SparseGDLibrary.
%
% Created by H.Kasai on June. 01, 2017
clc;
clear;
close all;
%% prepare datas... |
743a4bbf0a53be205da5d5c2ce901cdd3a78dc3543f2618a8ed4421fe8f4e84d | MATLAB | 1,597 | 73 | function Val = ArduinoCom(A,Command,timeout)
% Val = ArduinoCom(A,Command)
% Val = ArduinoCom(Command)
% Val = ArduinoCom(...,timeout)
% ArduinoCom(...,Command,...)
%
% A ... Serial object (required on first call)
% Command ... command string
% timeout ... define timeout duration when waiting for a response from... |
c6e6b6876947ab89a89849df14c8b5f407e1bf4ead16c574eb71ec9cf4698ebc | MATLAB | 1,598 | 62 | function [RICAModel, path] = LoadRICAModel(self)
%LOADRICAMODEL Load dimensionality reduction model if it exists
% [RICAMODEL, PATH] = LOADRICAMODEL(SELF) loads rica model for STREAMS,
% CAMERANAMES, and NUMDIMENSIONS specified in config file if it exists.
%
% If model exists, returns ReconstructionICA object R... |
19b51bf65ece370a55e32a78b249d3e5079081821685188d92c67fb54b715965 | MATLAB | 1,599 | 47 | function [Drift] = DriftData(patient)
Drift = [];
DriftControl = [];
numberConditions = 2;
filename = strcat('Patient', int2str(patient), '/Patient', int2str(patient), 'DriftPosition.txt');
delimiterIn = ' ';
headerlinesIn_control = [4, 8, 12, 16, 20, 24];
% headerlinesI... |
210f34fcdf2cc3975090d9982cf496739e61b58b5eb2c2ab647e1d8621778c93 | MATLAB | 1,599 | 69 | function lat = compare(lat,P)
lat = calc_pi(lat, P, @Imin);
PImin = lat.PI;
arr = sprintf('%6.4f ',PImin);
fprintf(1,'PI with Imin: [ %s ]\n',arr);
if lat.Nx==3
display_nonzero_terms(lat)
end
% lat = calc_pi_ri(lat, P, @Iccs);
% PIccs = lat.PI;
% arr = sprintf('%6.4f ',PIccs);
% fprintf(1,'PI with Iccs: [ %... |
5ef05b8744a7e0b2256af51e0f2c0cf7e02a008dec88fc310b37fd3a5bda3b2a | MATLAB | 1,600 | 52 | function model = dtipm_pipe_SDPdSL(data,btensors,D0,mask,nvox,ind,parallel,cvxsolver)
% function model = dtipm_pipe_SDPdSL()
%
% reshape data and retain voxels within the mask
siz = size(data);
data = reshape(data, prod(siz(1:3)), siz(4))';
mask = reshape(mask, prod(siz(1:3)),1)';
si = find((mask>0).*(~all(data==0,1))... |
4b56561a057e44fd2b545929f3ff424c1e2f9bd92cb617c87f9df566246626e6 | MATLAB | 1,606 | 59 | function dbs = DB_Connect(host,user,pass)
% dbs = DB_Connect
% dbs = DB_Connect(host,user,pass)
% dbs = DB_Connect(forcePrompt)
%
% Connect to database via mym
%
% Returns list of databases if successful connection is established
%
% DJS 2013
prevcon = getpref('DB_Connect',{'host','user','pass'},{'','',''})... |
31570d85d92629760423a3bfcd7064a03b978e9c08e1c12347b076a64ab39cb6 | MATLAB | 1,609 | 48 | function findLocalDistance()
thisValues = pdist2(currentStream(calcIndex,:), currentStream);
smoothSigma = 1;
x = -ceil(3*smoothSigma):ceil(3*smoothSigma);
kernel = -x.*exp(-x.^2/(2*smoothSigma^2))/(smoothSigma^3*sqrt(2*pi));
currentDiff = filterData(currentStream, 0, kernel, 1, 0);
thisDiffDi... |
7961d8fee500cf50db8c14f7c5ae7fa7cbe6ffb6e65e812a6c12cb408c9dae0f | MATLAB | 1,610 | 46 | function tp_analyzeallRAW(prefix, depth)
% TP_ANALYZEALLRAW - Traverse all tp 'stack' folders for a given experiment, click analyze raw, and add to database
%
% TP_ANALYZEALLRAW(PREFIX, [DEPTH])
%
% Given a data directory in PREFIX, explore all subdirectories to identify which are
% VH Lab experiment directories (with... |
0ebfc9809c91a5b8c6cae011a4fbf4b35693f6ce37164db9942d454fec02dc79 | MATLAB | 1,617 | 52 | function model = qtipm_pipe_SDPdcSL(data,btensors,D0,mask,nvox,ind,parallel,cvxsolver)
% function model = qtipm_pipe_SDPdcSL()
%
% reshape data and retain voxels within the mask
siz = size(data);
data = reshape(data, prod(siz(1:3)), siz(4))';
mask = reshape(mask, prod(siz(1:3)),1)';
si = find((mask>0).*(~all(data==0,1... |
649ce64ee935086a4768156cc3f2c3c356f46fae936d6c6f9e130bee917e269f | MATLAB | 1,622 | 44 | function edl = eda_edl(eda, fs, t)
% EDA_EDL Measure Electrodermal Level (EDL).
% edl = EDA_EDL(eda, fs, t)
%
% Input arguments:
% eda - 1-by-n vector of EDA samples
% fs - sampling rate (Hz)
% t - 2-by-k matrix of k time intervals
%
% Output arguments:
% edl.v - 1-by-k vector of measured EDL d... |
dc833a9046297000bec43b5d629c44936723ef1aee230c1eba4d2f018437ee88 | MATLAB | 1,622 | 43 | function [chan_order, order_desired] = define_chan_order_colors(chanlocs, desired_chans)
% Return the indices to use to obtain the channels in the order specified
% by desired_chans.
% The channels that are specified in desired_chans but cannot be found in
% chanlocs are ignored.
%
% Out
% chan_order idx of ... |
c2707e20c7859a6a179dc742c7a3b1c9d8b95dbe49e6c0f136bb3870f894d95e | MATLAB | 1,625 | 40 | function [loo,loos,pk] = psisloo(log_lik)
%PSISLOO Pareto smoothed importance sampling leave-one-out log predictive densities
%
% Description
% [LOO,LOOS,KS] = PSISLOO(LOG_LIK) computes Pareto smoothed importance
% sampling leave-one-out log predictive densities given posterior
% samples of the log likelih... |
4527a0d4f4d05dc65236a20571574189f973c4c8262d17d26bd6b2ae2824b2d8 | MATLAB | 1,626 | 46 | function ax = make_axes_on_grid( axes_pos, params, h, visibility)
% UltraMegaSort2000 by Hill DN, Mehta SB, & Kleinfeld D - 07/12/2010
%
% make_axes_on_grid - returns axes object with specified position
%
% Usage:
% ax = make_axes_on_grid( axes_pos, params, h, visibility)
%
% Description:
% This is a utility fun... |
cd638b6d644838c322c6fb67e41370da1f7b1b394d13b1aab42b2a5f0e459809 | MATLAB | 1,628 | 34 | function Subregions=getROIpairs(TissueType)
% Computes pairs of regional atlas labels extracted from the left & right hemispheres.
%
% INPUTS:
% - TissueType: tissue class of interest for the extraction of the atlas labels. Possible values: 'WM' (white
% matter, 'GM' (grey matter) or 'GMnoB0' (grey matter afte... |
b40217f150cc6fc645e266b065dd0f0a70e097cfaa00bb23f9414c0954dda64b | MATLAB | 1,631 | 53 | function plot_selectivity(model, Q)
if ~exist('Q', 'var')
Q = linspace(0, get_max_threshold(model));
end
[fascIdsByAs, activeSites] = load_active_sites(model.paths);
elecIds = unique([activeSites.elecId]);
separateElectrodes = numel(elecIds) > 1;
% Choose a color per fascicle
colorset = distinguishabl... |
a2b0db5ae7876c965eeed02b7925a9259aa80882414b3cb438c7bcb7c3b2d7a6 | MATLAB | 1,632 | 44 | clc
close all
clear variables
%date:6th Feb 2021
%VM
font = 14;
linewidth = 2;
format long;
%addpath('/Users/varunmannam/Desktop/Spring21/Research_S21/Feb21/SPIE_SR/old_SR_files/mse_plots/');
addpath('/Users/varunmannam/Desktop/Spring21/Research_S21/Feb21/0702/SR_new_results/mse_loss/'); %new simulations
lr1 = load('... |
7fbd1bb0c4bc6134efa992f3d7a6dfc599a96dbffb8e14bffd68176896992052 | MATLAB | 1,636 | 44 | clc
close all
clear variables
%date: 6th Feb 2021
%VM
font = 14;
linewidth = 2;
format long;
%addpath('/Users/varunmannam/Desktop/Spring21/Research_S21/Feb21/SPIE_SR/old_SR_files/mse_plots/');
addpath('/Users/varunmannam/Desktop/Spring21/Research_S21/Feb21/0702/SR_new_results/mse_loss/'); %new simulations
lr1 = load(... |
5fe3bd85a179df6b307e3d8a4706f14ca0a8f9e0331dad82ca94f2b7b12db5c8 | MATLAB | 1,638 | 63 | function associate_Beh_epData_files(subject)
pn = fullfile('/Users/kpenikis/Documents/SanesLab/Data/raw_data',subject);
pnB = fullfile(pn,'BehaviorData');
epData=[];
Beh_files = dir(fullfile(pnB,'old','*.mat'));
for ii = 1:numel(Beh_files)
load( fullfile(pnB,'old', Beh_files(ii).name) );
disp(Beh_f... |
624573aec70c784818f243de83ea846baa34f0c7659616fae1b789e7b915a80d | MATLAB | 1,638 | 48 | % ciplot(lower,upper)
% ciplot(lower,upper,x)
% ciplot(lower,upper,x,colour)
%
% Plots a shaded region on a graph between specified lower and upper confidence intervals (L and U).
% L and U must be vectors of the same length.
% Uses the 'fill' function, not 'area'. Therefore multiple shaded plots
% can be overlayed wit... |
844a76a52059f04b60ce62dd3069b9a059a6e63331f7d3bdf694b92a7ffb926c | MATLAB | 1,638 | 89 | function [cn,err,R] = f_CN_smp(CIJ,maxSamp)
% Approximation of CN using "sampling method"
% FC is computed using Galan's linear model
% References
% L. Barnett, C. L. Buckley and S. Bullock (2009) %
% R. F. Galan, plos one (2008)
if nargin < 2
maxSamp = 500;
end
N = size(CI... |
1aad4f43743d82f8d42b037c0d17f4d2b353ae5ed9200066b93414927d18f2e9 | MATLAB | 1,639 | 46 | function [rEnergy, f, t] = AD_MP_Ass(data,params)
% Temporary workspace for MP decomposition
folderName = ['/Users/aleksanderdomanski/Documents/MATLAB/MPtest' '/data/'];
tag = 'test/';
Max_iterations = 1000; % number of iterations
% Import the data
L_orig = size(data,1); % Unpadded signal length
L = 2^nex... |
9c5a27a3faadd905cf601daf77b82187c88593cbd32b18c4808db7b8d56d5fe8 | MATLAB | 1,639 | 64 | function ParseVarargin(paramkeys,varnames,vin)
% ParseVarargin(paramkeys,varnames,vin);
%
% Single line 'varargin' checking. 'vin' should be the varargin cell
% array for the calling functiion.
%
% ParseVarargin(paramkeys,[],vin) will use the paramkeys value as a
% variable name. Note: spaces are invalid in ... |
9877eb9dede19e71800b800d4013608ad481dfc007986ca4c05b74b76cb61a71 | MATLAB | 1,640 | 70 | function A = ArduinoConnect(varargin)
% A = ArduinoConnect
%
% Connect to a USB Arduino microcontroller.
%
% This function waits for the Arduino to print the character "R" to the
% serial bus.
%
% BaudRate ... Connection baud rate (default = 57600)
% aName ... Connection name (default = 'Arduino... |
3a441bdfbad6b5e117c735dd0ce29517aae8865fab607e6af09ab3bace14f5fa | MATLAB | 1,641 | 59 | %% This is example of usage of model. However you can use anything more complex or even simpler.
model_version_id = 4;
fitted_parameters = [1, 2, 1.1, 0.9, 0.3, 12, 5, 0.9];
% Fitted parameters order: h, k, c, w, w_E, sigma_H, sigma_E, d_f
% fitted_parameter_names = {'h', 'k', 'c', 'w', 'w_E', 'sigma_H', 'sigma_E... |
ffa349f55ec4a6c89395136d31021991128b5528edebd1b02a699cb967348d3e | MATLAB | 1,642 | 63 | function model = dtip_data2fit_NLLSd(model,signal,bten,ind)
% function m = dtip_data2fit_NLLSd(model,signal,bten,ind)
%
% fits the DTI parameters using NLLSd
if (nargin < 4), ind = ones(size(bten,1),1)>0; end
signal = signal(ind);
bten = bten(ind,:);
model = double(model);
% convert between fit and SI units
SI_to_fi... |
7ca87b894aa82124693a59d142c380bfef087183b52555c170e923bd30add2c2 | MATLAB | 1,644 | 86 | function C = findConsecutive(ind,N,g)
% C = findConsecutive(y)
% C = findConsecutive(y,N)
% C = findConsecutive(y,N,g)
%
% Find consecutive values in a vector.
%
% Inputs:
% ind logical vector
% N minimum number of consecutive ones to find in y (default = 2)
% g forgive a maximum of g ... |
5efe397c23043d13613de828e2019770ea13cc631fd6fa80aed4c4d691a3f96b | MATLAB | 1,645 | 53 | function lme_lowessPlot(time,y,bw,group)
% lme_lowessPlot(time,y,bw,group)
%
% Time plot of the lowess regression curve estimating the trend in the
% mean response over time (Depends on the curve fitting toolbox).
%
% Input
% time: Time covariate (ordered according to time for each subject) .
% y: Ordered data vector (... |
207a0d0b581ec4ffdf965dd4e4b884e6f845d3bba626487df2e2e3b6f061bf68 | MATLAB | 1,646 | 35 | function analyzetpstack_analyzerawfromlist(prefix, experlist, stacknamelist, channellist)
% ANALYZETPSTACK_ANALYZERAWFROMLIST - Analyze raw F from a list of analyzetpstack stacks
%
% ANALYZETPSTACK_ANALYZERAWFROMLIST(PREFIX, EXPERLIST, STACKNAMELIST, CHANNELLIST)
%
% Analyzes a set of experiments. First, the progr... |
7bffd2d1a8b91f1f05479dfef39a7a8cd89de1ae14126ddefb44c261c2f62098 | MATLAB | 1,649 | 1 | function [nfigs,fighandles]=figs_to_ps(filename,newFileFlag, paper_orientation,volubleFlag)
% [nfigs,fighandles]=figs_to_ps(filename,paper_orientation,volubleFlag)
% prints all figures to output.ps
%
% nfigs: number of figures printed
% newfileflag: flag to make new .ps file or append existing file
% fighand... |
a98cf8633a8d1a76a207539a40666cb5ffdcc3f83bff2cbce546a5e3eabdfd08 | MATLAB | 1,650 | 75 | function varargout = gen_logchirp(Fs,t1,f,phi,gate_dur)
% [y,<t>] = gen_logchirp(Fs,t1,f,<phi>,<gate_dur>)
%
% Produce logarithmic swept-sine.
%
% Input:
% Fs ... Sampling frequency (Hz)
% t1 ... Duration of sweep (seconds)
% f ... Frequency range of sweep (Hz), ex: [100 10000]
% phi ... |
6037160f53ffbe2a755a6d1a033f7fb3af68787edf0b0ead904ac7083a1efc16 | MATLAB | 1,652 | 33 | function [in] = get_default_IO_in()
% Return default inputs for the IdealObserver code.
MemParam = {'Decay', [8]} ;
AboutFirst = 'WithoutFirst' ;
learned_param = 'transition' ; %'transition' ; % 'frequency', 'transition', 'alternation'
in.learned = learned_param ; % estimate TPs
in.... |
6590d70d337f6027120d943706f8ef5e6c8f62902791fa9969d87f911eda8419 | MATLAB | 1,652 | 74 | function S = cooling_perm_test(nX, nY, correctX, correctY)
%
% This test calculates the difference in proportion correct between
% conditions X (e.g. control) and Y (e.g. cooled)
%
% nX, nY = number of trials overall
% correctX, correctY = number of trials correct
% Options
nIterations = 1e4;
draw = false; % Allows vi... |
550f55f1ee1d78463d4132d7cfc17cf9410e5cf63b16132a149aa25ba1a016bc | MATLAB | 1,653 | 51 | function grid = vector2grid(vector)
% Converts a 1x100, 100x1 or 100xt vector into a 10x10 or 10x10xt grid,
% rotated correctly. channelDim optionally specifies the dimension
% specifying channel number, which must have length 100.
%
% NOTE: THIS TRANSFORMATION CHANGES THE INDEXING OF THE DATA
% A row vector is stored ... |
94b7f0a3882815f06c418fcb96c7ecb4debeb1510bcaa91940d27c555a7cf628 | MATLAB | 1,653 | 44 | function matrix= get_pce_matrix_noise_average(res_list, cluster_list_with_image_idx, dir, iter, img_dim)
% This function compute PCE matrix which includes pairwise PCE correlation among all noise residuals (before merging/clustering).
% INPUT:
% res_list A list of residual paths
% cluster_list_with_image_idx ... |
1c5fb2be873807f8f63be0dfc1cb9638bc1435e9d2b2e0a439e97045645e26d3 | MATLAB | 1,654 | 57 | function getStats(S, options)
% Get number of masks
masks = unique(S.Mask);
nMask = numel(masks);
% For each mask
for i = 1 : nMask
% Filter for mask
rows = S.Mask == masks(i);
T = S(rows,:);
% Calculate average temperature
T.Temperature = mean([T.LeftTemperature T.RightTemperature],... |
5c0724cf0134be3d3ec09d5fe105fd7dd5de75cbbb0d2d71b3f6161c8a34e4fe | MATLAB | 1,654 | 62 | % Help text associated with a function, class, property or method.
% Spaces are removed as necessary.
%
% See also: helpdialog
% Copyright 2008-2010 Levente Hunyadi
function text = helptext(obj)
if ischar(obj)
text = gethelptext(obj);
else
text = gethelptext(class(obj));
end
text = texttrim(text)... |
80a20467a98c9a3ed5814a2eef2f09f97d32c3c086703a830dc4bf63187f2652 | MATLAB | 1,654 | 45 | %% Setup
% This script writes CSV files for the chord diagram in R
% Note: the tastes are combined now
util.clearAll;
% stimuli
cur_save_dir = fullfile(util.get_paths().figs,'CSV_modules');
util.mkdir(cur_save_dir)
%% Write the CSV files for chord diagram (R)
regions = {'PFC', 'OFC', 'ACC_area24', 'agranularIns_bin',... |
c8648252162b27950c2f085f6c9d1b0b734d82361d4c6975833a2ddf5a0781c4 | MATLAB | 1,654 | 44 | function pvpmod(x)
% PVPMOD - evaluate parameter/value pairs
% pvpmod(x), where x is a cell array with an even number of cells, assigns
% the value x(i+1) to the parameter defined by the string x(i) in the
% calling workspace. This is useful to evaluate <varargin> contents in an
% mfile, e.g. to change def... |
6e6643b91cc5023d60f24d278dab36d7f49e42092a106f97eeef9e0e1534c9a9 | MATLAB | 1,656 | 61 | function out_array=marks_label2index(marks_struct,labels,out_type,varargin)
%% INITIATE VARARGIN STRUCTURES...
try
options = varargin;
for index = 1:length(options)
if iscell(options{index}) && ~iscell(options{index}{1}), options{index} = { options{index} }; end;
end;
if ~isempty( varargin ), g... |
4dc9ad229def17097caf05169667f233f785a83f30c41d16b7a60c8af1b74bb5 | MATLAB | 1,659 | 53 | function [output] = ERBFilterBank(x, fcoefs)
% function output = ERBFilterBank(x, fcoefs)
% Process an input waveform with a gammatone filter bank. Design the
% fcoefs parameter, which completely specifies the Gammatone filterbank,
% with the MakeERBFilters function.
%
% This function takes a single sound vector, and ... |
22569bbdf89f27dfbc022bb539bb1035505b3f38e9d9e3cc9174f803e58ae18f | MATLAB | 1,660 | 57 | function updatepump_SanesLab(handles)
%updatepump_SanesLab(handles)
%
%Custom function for SanesLab epsych
%
%This function sets the pump rate using flow rate specified in the GUI
%
%Inputs:
% handles: GUI handles structure
%
%
%Written by ML Caras 7.25.2016. Updated 8.22.2016.
global PUMPHANDLE GUI_HANDLES AX RUNT... |
5356f3e8c3d1e7cabbffd0259541bff06d1032794161fff96e160ed74b41446f | MATLAB | 1,661 | 77 |
function ds_info=my_gen_ds_info_hof(ds_config)
ds_dir=fullfile('../datasets', 'hof');
train_idx_file=fullfile(ds_dir, 'ImageSets/Segmentation/train.txt');
fid=fopen(train_idx_file);
train_file_names=textscan(fid, '%s');
train_file_names=train_file_names{1};
fclose(fid);
val_idx_file=fullfile(ds_dir, 'ImageSets... |
834e1a5425f0963bf83941ac56ae1e9ba2abd2ee2050635613cb9567a1237ce2 | MATLAB | 1,661 | 50 | %This script allows to transform Z maps from Activation Likelihood
%Estimation analysis into minimum Bayes Factor maps.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%fin= a Z map obtained through a p-to-Z conversion from a p-value map, as it is produced at the end of any Activation
% Like... |
187b432390f6bbcb3eace179098054db5c9af3f1d0a7dd4f8e6d294347604dbd | MATLAB | 1,663 | 77 |
function ds_info=my_gen_ds_info_eyth(ds_config)
ds_dir=fullfile('../datasets', 'eyth');
train_idx_file=fullfile(ds_dir, 'ImageSets/Segmentation/train.txt');
fid=fopen(train_idx_file);
train_file_names=textscan(fid, '%s');
train_file_names=train_file_names{1};
fclose(fid);
val_idx_file=fullfile(ds_dir, 'ImageSe... |
9d9f0128147fdd0452316bfcd4f88b6e6b38506729b0d501ca3a1889cc61a2e7 | MATLAB | 1,663 | 77 |
function ds_info=my_gen_ds_info_gtea(ds_config)
ds_dir=fullfile('../datasets', 'gtea');
train_idx_file=fullfile(ds_dir, 'ImageSets/Segmentation/train.txt');
fid=fopen(train_idx_file);
train_file_names=textscan(fid, '%s');
train_file_names=train_file_names{1};
fclose(fid);
val_idx_file=fullfile(ds_dir, 'ImageSe... |
dd4829b3f311789632132325ed07fc219be97ff48e7d5f21d739f719dcef1c42 | MATLAB | 1,665 | 67 | function queryVal = GetParams(self, varargin)
% queryValStruct = GetParams(self, 'project')
% queryVal = GetParams(self, 'CameraNames')
% queryVal = GetParams(self, 'project', 'CameraNames')
self = GenerateParams(self);
params = self.Params;
if nargin == 3
section = varargin{1};
query = varargin{2};
quer... |
369248bb180051b4f202bc26ebc8e2a745b7309f9783ca1faa6dfaa4771f383a | MATLAB | 1,667 | 58 | function Q = S_object(prediction,GT)
% S_object Computes the object similarity between foreground maps and ground
% truth(as proposed in "Structure-measure:A new way to evaluate foreground
% maps" [Deng-Ping Fan et. al - ICCV 2017])
% Usage:
% Q = S_object(prediction,GT)
% Input:
% prediction - Binary/Non binary f... |
bc84cf5f21574f53821ba6d9a96ef6aafd97e6bffe8369362db8e6249075b39f | MATLAB | 1,668 | 56 | %%This function is to compute the specific time-range for xth columns for
%%Overlay setting
function [bindatadjust,Xtimerangeadjust,Xticksadjust,TimeAdjustOut,XtimerangeadjustALL] = f_adjustdata_xyrange_xyticks_overlay(bindatatrs,Xtimerange,qXticks,offset,NumColumns,PosIndexs,stepXP)
bindatadjust = [];
Xtimerangea... |
6ad6f010064ecf3b4ca0be8bb512d45ddd7a9dafc2c96a8909da941767ae86c7 | MATLAB | 1,670 | 25 | %-----------------------------------------------------------------------
% Job saved on 07-May-2022 10:01:08 by cfg_util (rev $Rev: 7345 $)
% spm SPM - SPM12 (7771)
% cfg_basicio BasicIO - Unknown
%-----------------------------------------------------------------------
clear matlabbatch
subjfolder = dir('F:\fMRI_QC\fm... |
df07a79276534ce48c4caa665b2f88509c2bd55652bd859f99230c5e593e8926 | MATLAB | 1,670 | 53 | function [messgStr,viewerpanelIndex ]= f_check_erpviewerpanelchanges()
messgStr = '';
viewerpanelIndex = 0;
MyViewer_ERPset = estudioworkingmemory('MyViewer_ERPsetpanel');
if ~isempty(MyViewer_ERPset) && MyViewer_ERPset==1
messgStr = char( 'Changes on "ERPsets" have not been applied');
viewerpanelIndex =1;
... |
ea27d3adccca692034bd3ee9db09ac50d931609a8627eae9985253b3614b9da9 | MATLAB | 1,674 | 56 | %=====================================================
% FileName: extract_online_tiletraces.m
% Designby: Zhe
% Modified: 07/08/2021
% Describe: Extract fluorescence traces from the calcium image dataset.
% Suppose C: Number of tiles; T: Number of frames
% traces <C,T>
%===========================... |
2829df191ffb1213203adbf7655e236988477986ec78f336b2d4ee3586da53bc | MATLAB | 1,675 | 77 |
function ds_info=my_gen_ds_info_egohands(ds_config)
ds_dir=fullfile('../datasets', 'EgoHands');
train_idx_file=fullfile(ds_dir, 'ImageSets/Segmentation/train.txt');
fid=fopen(train_idx_file);
train_file_names=textscan(fid, '%s');
train_file_names=train_file_names{1};
fclose(fid);
val_idx_file=fullfile(ds_dir, ... |
1438fd0b3a850bd2fb49b564aa6506f568181c387e43297f93155091a2f03547 | MATLAB | 1,678 | 60 | function [GlobalScores, ClassScores] = ScoreClips(clipT)
% groundTruthLabels = vertcat(clipT.Prediction{:});
groundTruthLabels = [];
methodLabels = [];
for i=1:size(clipT, 1)
groundTruthLabels = [groundTruthLabels; clipT.Annotations{i}.Label];
methodLabels = [methodLabels; clipT.Annotations{i}.Prediction];
... |
35fb9f23aa688ca26f267dd359a3517130412f8e31ba00770139f5fdd748dd49 | MATLAB | 1,684 | 61 | function visualiseState( V, Nx, Ny, occ_map, t )
% This function visualises the membrane potential map
% Internal flag specifies whether to visualise as 'surfaces' or points
vis_surfaces = false;
% Convert vector V back into a matrix (use transpose for correct
% orientation because reshape works 'columnwise')
V = res... |
2ec8382a683b2de930d635613f137cb27024e189b8dba1a482f129a74d7d5526 | MATLAB | 1,686 | 54 | function [counts,x_inds,y_inds] = histxy(x, y, D, filt)
% UltraMegaSort2000 by Hill DN, Mehta SB, & Kleinfeld D - 07/12/2010
%
% histxy - 2D histogram of joint x and y values
%
% Usage:
% [counts,x_inds,y_inds] = histxy(x, y, D, filt)
%
% Description:
% Returns a matrix containing counts for how many data points... |
f341c787a84bf2a1480b539be3ab7b1b4f610f509f64f3c0bf8e1c971b437990 | MATLAB | 1,691 | 61 | function S = ReadRPTags(RP,TRIALS,params)
% S = ReadRPTags(RP,TRIALS)
% S = ReadRPTags(RP,TRIALS,params)
%
%
% Reads current values from an RPvds circuit running on a TDT module into a
% structure S.
%
% C is a single index the configuration structure
% ex: S = ReadRPtags(RP,C(2));
%
% RP is a handle (... |
17784cd37fe971541b9ea7cd674e2ce65a740ff1632c008bc36c1cbc075f66fc | MATLAB | 1,692 | 71 | function [files, exists] = GetValidFolderFiles(parentFolder, varargin)
p = inputParser;
addOptional(p, 'Contains', '');
addOptional(p, 'DoesNotContain', '');
addOptional(p, 'Extension', '');
parse(p, varargin{:});
d = dir(parentFolder);
dfolders = d(~[d(:).isdir]);
if isempty(dfolders)
files = [];
exists = f... |
d711de184bd419d62f493924af576c8269202465895967c9fc3f925ff47708ee | MATLAB | 1,694 | 61 |
function reformat_tank_data_jy(BLKS)
%reformat_tank_data
% Function to reformat and save ephys data from epsych program.
%
% Program prompts user to select TANK, then cycles through each BLOCK,
% calls TDT2mat (@DJS) to reformat tank data to a matlab struct, then
% saves as a -mat file in google drive folde... |
c1928847f94fd0cdd5d7b33de11ee19901544180ef1b9e7097e2bebc62711707 | MATLAB | 1,695 | 45 | % Collect interim single cell data from KDE convert code into HP and PFC archives
% No event times pass through this version
% Aleksander PF Domanski PhD UoB 2015
% aleks.domanski@bristol.ac.uk
%
% You need to run this after big batch jobs on Blue Crystal to gather all
% individually saved single unit files into... |
d3ada95a41d163acd26330932ea20f3ae6918deac6461f167d4f85e42aaf1792 | MATLAB | 1,699 | 48 | %% Setup
util.clearAll;
outdir = fullfile(util.get_paths().figs,'graph_centrality');
util.mkdir(outdir)
%% Setup graph
% Read beta values and calculate their correlation
beta_tables_taste = util.load.all_taste_betas();
% first read the full matrix
avg_corr = connect.correlations(beta_tables_taste.combined, ...
{{'... |
9fcc71aea43490c8afe799d933fb476e86e8649499b2dbc2a95c771915c5c2c7 | MATLAB | 1,703 | 43 | function params = setPatternParams(Fs)
% Function to set parameters for pattern detection, given sampling
% frequency Fs (in Hz)
% Minimum order parameter for a plane wave to be detected
planeWaveThreshold = 0.85;
%planeWaveThreshold = [];
% Maximum velocity field magnitude for synchrony to be detected
synchronyThresh... |
695a14e5b76c4e42dd951e49dadd682151ca1b089b830fa7b5fc6d324ccf11ff | MATLAB | 1,706 | 61 |
function reformat_tank_data_kp(BLKS)
%reformat_tank_data
% Function to reformat and save ephys data from epsych program.
%
% Program prompts user to select TANK, then cycles through each BLOCK,
% calls TDT2mat (@DJS) to reformat tank data to a matlab struct, then
% saves as a -mat file in google drive folde... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.