sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
6874ce26192aca069f78f8e26dbf43a1b5c9520135c10ffa464c5bdd4053ac6a | MATLAB | 1,702 | 61 | function [lsContent, lsContentFullName] = awsls (rootLSFolder)
%Lists the files and folders in the rootLSFolder path
%lsContent - returns just file/folder names
%lsContentFull - returns full path
%% Handel the case where pointing to local folder
if (~awsIsAWSPath(rootLSFolder))
% Get content
tmp = dir(... |
7f585cbdcaf24f71ce3715d04693b266160d63979e19ea0bda5459a44d368ffe | MATLAB | 1,702 | 44 | function runBatchfNIRSJob(nslots)
addpath(genpath('/projectnb2/binaural/mhn/'));
% Parallel processing for BU's SCC
myCluster = parcluster('local'); % cores on compute node to be "local"
if getenv('ENVIRONMENT') % true if this is a batch job
myCluster.JobStorageLocation = getenv('TMPDIR'); % points to TMPDIR
en... |
fa18914309e742dba93cf0a553006a27a2bda30b1a5a8e6cd1379cf98c22dbd7 | MATLAB | 1,702 | 43 | % order of spike data
Correct_order= ["ECDGCA3CA1 19908 150729 150823 d25 5minspont0001", ...
"ECDGCA3CA1 19908 160518 160610 d22 5minspont0001", ...
"ECDGCA3CA1 19911 160518 160610 d22 5minspont0001", ...
"ECDGCA3CA1 19914 150805 150828 d25 5minspont0001", ...
"ECDGCA3CA1 19914 160127 160217 d21 5minsp... |
a5dbd78900485ee20cd8073dfa7812d1108f1c99034126c39cd05a4bd24d45bb | MATLAB | 1,703 | 51 | function Thr = thrFromDPrime(dPrime,uMF,uMD,uInt,Int,dThr)
% Inputs
% dPrime: 4-D matrix with dPrime values. dimensions as follows
% 1. modulation frequency
% 2. modulation depth
% 3. sound intensity
% 4. mouse
%
% uMF: unique modulation frequencies (fo... |
0e556ace1d42f6fed7caeb53adddad89cf9d43dbe36a79f96ca8306f1e5571e2 | MATLAB | 1,705 | 59 | function [pairs_freq, pairs_table, pairs_ts, pairs_x, pairs_y, pairs_phi] = ...
spike_pairs_ts(S, XS, YS, bins_maze, time_span, on_same_tet)
%% [pairs_freq, pairs_table] = spike_pairs(S, time_span)
%
% computes a frequency table for all the spike pairs that occur
% within time_span
% INPUTS:
% S: a cell aray of ... |
619d9f7c1a4b8a20bba41c0a4fdaacf9e1e77bb22201a9f63b5e9aa8f4cd6116 | MATLAB | 1,705 | 55 |
% USAGE:
% [synTimes,synWeightsZ,synWeightsR,synSig,cch,b,cellPairId] = Make_FindSynapse(S,shank)
%
% all matrices are post-syn (y) x pre-syn(x)
function [synTimes,synWeightsZ,synWeightsR,synSig,cch,b,cellPairId] = Make_FindSynapse(S,shank)
%Parameters
bin = 0.5;
nbBins = 100;
nbBinsLg = 1000;
cch = [];
cchSame =... |
b7c1f882474b0d850dbf0cb2454b05480c9a79c393150afbbd0a06d0ef23f772 | MATLAB | 1,705 | 44 | %% Plot hyperdirect fibres coloured according to MIC patterns (Figure 4A)
repo_path = 'Path_to\Manuscript_repository';
funcs_fpath = fullfile(repo_fpath, 'plotting\matlab_funcs');
addpath(funcs_fpath);
addpath('Path_to\wjn_toolbox_tsbinns');
addpath(genpath('Path_to\spm12'));
addpath(genpath('Path_to\leaddbs'));
fold... |
0eeb64474f89abdb77e806c51cc2c1f0ae5a998ed49a8d8d64bc41a4f47ff80d | MATLAB | 1,706 | 49 | % @title Update spike event table according to Hill article for spike mediated synaptic current
% @file spk_dtc_Hillsyn.m
% @author Romain Beaubois
% @date 11 Aug 2021
% @copyright
% SPDX-FileCopyrightText: © 2021 Romain Beaubois <refbeaubois@yahoo.com>
% SPDX-License-Identifier: GPL-3.0-or-later
%... |
b44f186632d7b7bce3a5e2b1c192c02cd45dad04b630acf417604a1d1211b6e6 | MATLAB | 1,706 | 80 | function hc = compass(varargin)
%COMPASS Compass plot.
% COMPASS(U,V) draws a graph that displays the vectors with
% components (U,V) as arrows emanating from the origin.
%
% COMPASS(Z) is equivalent to COMPASS(REAL(Z),IMAG(Z)).
%
% COMPASS(U,V,LINESPEC) and COMPASS(Z,LINESPEC) uses the line
% specification ... |
545a69c566d516d2ee009b6c38cb56ad0df97a3fc5bccb626b1520ada547cd0f | MATLAB | 1,707 | 78 | function A = SpindlePhase(A)
%Parameters
b = fir1(96,[0.05 0.1]);
% cellId = 44;
A = getResource(A,'SpikeData');
A = getResource(A,'PfcTrace');
A = getResource(A,'Sleep1FineSpindleEpoch');
A = getResource(A,'Sleep2FineSpindleEpoch');
A = getResource(A,'Sleep1Epoch');
A = getResource(A,'Sleep2Epoch');
A = getResource... |
65812896fd2b44e8756703574cf14a41cf89f68a319b2ba9eb28edf15c953601 | MATLAB | 1,707 | 47 | function display_fixed_moving_warped(fixed,moving,warped,gamma)
% DISPLAY_FIXED_MOVING_WARPED Display three volumes in three planes
%
% display_fixed_moving_warped(fixed,moving,warped,gamma)
%
% INPUT ARGUMENTS
% fixed - Fixed volume
% moving - Moving volume
% warped - Warped volume
% ... |
b2f5c86f623fb3630f4c9d823f6d99d6fe1efe94abb90729337cf58862740c86 | MATLAB | 1,707 | 76 | %% Generates the initial ms.mat files for all data folders
msBatchGenerateMS(pwd);
%% Select fluorescnece thesh for good frames
msBatchSelectFluorThresh(pwd);
%% Allows user to select ROIs for each data folder
msBatchSelectROIs(pwd)
%% Run alignment across all data and ROIs
plotting = false;
%for miniscope data try ... |
0225cf550fa1c0235c6d120d6558a4985f469e54c88c6efa86a158ed77b2e534 | MATLAB | 1,708 | 46 | function [feat thresh conf] = weaklearner_template(wl,trainpats,weight);
% Template for defining weak learner functions for AdaBoost. Implements
% learning function and chooses a returned weak hypothesis. See
% decisionStump.m for an example.
%
% License:
%=====================================================... |
4d37bf4027a339adda8960d307a7749d1bb530248f873e56c50e257221d3e455 | MATLAB | 1,710 | 66 | function cleanticks(ax, nkeep, ah)
% CLEANTICKS clean up tick labels
% CLEANTICKS removes central tick labels from y axis
% CLEANTICKS('y') removes central tick labels from y axis
% CLEANTICKS('x') removes central tick labels from x axis
% CLEANTICKS('x', nkeep) only keeps every nth tick
% CLEANTICKS('x', [... |
470f67e9b100e13a518e510c370e2123de4e5955ba479a2a41c44b97b11765aa | MATLAB | 1,711 | 59 | clear all;
proj_dir = pwd;
data_dir = fullfile('/indirect', 'proc_data1', 'brainage', 'Cimbi_database');
for tracer = {'Altanserin', 'Cimbi36'}
% Load subjects
dataset = tracer{1};
tbl = readtable(fullfile(data_dir, dataset, 'worklist_get_files.xlsx'),'VariableNamingRule', 'preserve');
if... |
2d8c76405df3cd016f462aeeedcac33abb0ce8e50a580741de4e33d89864c2d9 | MATLAB | 1,712 | 53 | function pparam = mv_rearrange_preprocess_dimensions(pparam, dim_order, max_dim)
% mv_classify and mv_regress rearrange the data dimensions such that the
% dimensions are in the order [samples, search dimensions, features].
% The preprocess parameters have some fields referring to dimensions; these
% need to be adapted... |
a6f30597edee7f25bce903265d9dbe4058cfc169251d3f3cf951c679cb919ea8 | MATLAB | 1,712 | 78 | function A = SpindlePhase(A)
%Parameters
b = fir1(96,[0.05 0.1]);
% cellId = 44;
A = getResource(A,'SpikeData');
A = getResource(A,'PfcTrace');
A = getResource(A,'Sleep1FineSpindleEpoch');
A = getResource(A,'Sleep2FineSpindleEpoch');
A = getResource(A,'Sleep1Epoch');
A = getResource(A,'Sleep2Epoch');
A = getResource... |
11b56d75ea5a6c234851a61bc214d63224e18f9ed2dcfc3ae814e5112f0978c3 | MATLAB | 1,713 | 52 | function [RRI_ALL] = get_RRI(data, fs, tw)
% GET_RRI Calculates R-R intervals (RRI) from ECG data.
%
% [RRI_ALL] = get_RRI(data, fs, tw) calculates R-R intervals over specified
% time windows from ECG data using the Pan-Tompkins algorithm.
%
% Inputs:
% data - The ECG data as a vector.
% fs - Sampling... |
c3797abd2508bef6004765fd71b288ab204dcfcc49355541d84f77699c9f7282 | MATLAB | 1,714 | 42 | function [ave_exp_vals, frac_scale, has_scaling] = extractExponentsGoodScaling(sum_stats, size_or_dur, max_ava_size, max_z_val)
% Takes the sum_stats struct and filters the desired expoennts (tau or
% alpha) by the quality of scaling metrics, using the criteria provided
% for "size" returns tau values; for "dur", retu... |
b1ee4333d03b1311f4ce6564b5ae80504c192c1e1221a01399c68bf86decd4e3 | MATLAB | 1,715 | 48 | % Vm = vsh_modified_in(theta,phi,l,m)
%
% Vector spherical harmonic funtion modified from Hill's function
% V_lm for quantum numbers l and m. Angles theta and phi should be
% given in radians.
%
function Vm = vsh_modified_in_AO(theta,phi,l,m)
% Copyright (c) 2016, Elekta Oy
% ---------------------------------------
%... |
2c0946afe761db429e72061700bcf878f3062a1f02c36ed80e86f49c21a67d69 | MATLAB | 1,716 | 61 | function labels = extract_labels(run_log, experiment, label)
% labels = extract_labels(run_log, exp_struct, label)
%
% Extract labels for reconstruction from experimental logfiles.
%
% Input:
% - run_log: Struct with one index per run. log.runNumber is adjusted so
% that it counts from 1 to total_runs.
% - e... |
3a0e5a29c2fef48ded8682cb407ed5e2d8ba54361dceb801dd56a8f17deff583 | MATLAB | 1,718 | 86 | function [errors] = test_set_mat()
% [success errmsg] = test_set_mat()
%
% This tests the SET_MAT.M function. This is one of the key
% toolbox functions, so if it's broken, even subtly, bad
% things will happen to us all.
%
% These tests are far too sparse. We need to try moving
% things to and from the hard disk, try... |
57c71188ef587e1b4c14143e690eab997a986a06b6b3052cc8bf3276b822f3a8 | MATLAB | 1,720 | 62 | function [perfmet] = perfmet_xcorr_onoff(acts,targs,scratchpad,args)
% Calculates the onoff metric, as per Polyn et al (2005).
%
% That is, it runs pairwise correlations between every
% condition's ACTS and every condition's TARGS, and
% subtracts the mean of the same-condition correlations from
% the mean of the diff... |
18f4eac45bca3f18c26049f18720fe29251408bb4a476ca24efed35ace772c68 | MATLAB | 1,722 | 40 | function violationLevel = testTriangleInequality(distanceMatrix)
% Input: distanceMatrix is a square matrix of distances between points
% Output: violationLevel is a value between 0 and 1, where 0 indicates complete violation, and 1 indicates no violation
% Get the dimensions of the distance matrix
... |
fd923690024823183d8b694294b97b3d53a97d29e7ee6a805e0882958b3764df | MATLAB | 1,723 | 49 | function [dFFTraces] = dFF_lower_20211202(RawTraces, SecPerFrame, MovingWindow)
% dFF_lower calculates the dF/F from raw traces, taking the lower 50% of
% frames in the moving window to calculated the mean fluorescence
% Michelle Cahill 20211202 (adapted from Nicole DelRosso)
% RawTraces: m x n matrix of raw fluo... |
79fb74cec3bab0c7fd3ff537cb04f4a69bbb84704de37e831c1c4483b58fd9fe | MATLAB | 1,724 | 69 | % function [L weights] = CrossValidationPeerCheck(S,Q,ep)
function [L,weights] = CrossValidationPeerCheck_Cells(S,Q,ep)
nbEp = 10;
epV = regIntervals(ep,nbEp);
fprintf('Launching Cross-validated Peer info\n')
dQ = Data(Q);
nbC = size(dQ,2);
L = NaN(nbEp,nbC);
weights = zeros(nbC,nbEp,nbC-1);
% compTime = zeros(nbC,n... |
089e23d70c44e3018fc05eadcd0fd1a4dca941443e5ba75390f7d1475faa46c9 | MATLAB | 1,726 | 79 | % connectdots linear interpolation and extrapolation
%
% [ xc tc ] = connectdots( t, x )
%
% as name says, plus
% NaNs at the edges are extrapolated
% 20-aug-13 ES
% revisions
% 21-aug-13 edges extrapolated
% NOTE:
% NaNs within the data are ignored (i.e. NaNs are output)
% should modify to be skipped
f... |
c8b31a2c8fc430201f2f0de5060ec42775156f36fa5441a75b9b338cda085ab6 | MATLAB | 1,729 | 54 | function beh_corr_scatter(x,y,Xlabel1,Xlabel2,Xlabel3,Ylabel,dotcolor,linecolor,pic_title,output_path)
% dotcolor = [170/255 201/255 206/255];
% linecolor = [182/255 180/255 194/255];
shadecolor = [154/255 154/255 154/255];
[xData, yData] = prepareCurveData(x, y);
ft = fittype( 'poly1' );
opts = fitoptions( ft );
op... |
99820d91a2304c9120f55517632f084c97a54fa8a634e0be6b421308b25e5f84 | MATLAB | 1,733 | 75 | function [X,Y,GoodRanges,wstruct] = LoadPosition_Wrapper(fbasename,varargin)
% loads position and speed from a position file file (ending in .whl)
%
% USAGE
% [X,Y,V,GoodRanges,wstruct] = HeadDirectionWhl(fbasename)
%
% INPUT:
% fbasename: session file basename
% pixelConv (optional): no pixel to cm con... |
cf123962e20c90a9e9838f21baaa99ca7a3bf407c88a50d040fcf2ab8a172028 | MATLAB | 1,733 | 55 | %% Plot from Allregions
%% Initialization
clear
clc
subregion="";
interRegion="";
%no stim
raw_dir="D:\Brewer lab data\HFS\No Stim\23-Nov-2021_B";
tunnel_allregion=load("D:\Brewer lab data\HFS\No Stim\23-Nov-2021_B\allregion_unit_matched_stim.mat");
well_allregion=load("D:\Brewer lab data\HFS\No Stim\Wells_5SD_500m... |
3a0804e9e7f6a8f19569ae85ba0c58b536fff48de694c7563a042db46740ba7a | MATLAB | 1,737 | 54 | function [fhand fname] = arg2funct(n_or_h)
% Returns both function handle and name from an ambiguous arg
%
% [FHAND FNAME] = ARG2FUNCT(N_OR_H)
%
% N_OR_H could be either a function name string OR a
% function handle - whichever it is, this will return
% both, for you to process as necessary.
%
% This way, you can leav... |
b9de47988b82cbaf5f1cae602338b35edff9d8f707053a3c5ae8c5cf32b2f156 | MATLAB | 1,738 | 57 | %% Wave Clus Output Plotting
% load both the raw data and times files manually
%this is for wells
%clc
%close all
% current_dir=dir;
% spikes_files={current_dir.name};
% spikes_files=string(spikes_files);
% spikes_files=spikes_files(contains(spikes_files,'_spikes.mat'));
% for i=1:length(spikes_files)
% split_name... |
177cfd7c26ac2d46be9949c533eac5443d591dc9367ccc0ea11a2a763997a3d4 | MATLAB | 1,740 | 76 | function UnitTests_Init(standalone, start, appname)
global DEBUG1
global QUICK_TEST
global procStreamStyle
global testidx;
global logger
global cfg
global maingui
global SCRAMBLE
global ERROR_ODDS_CONST
if ~exist('standalone','var') || isempty(standalone)
standalone = true;
end
if ~exist('start','var') || isempty(... |
69a36a820a32e2b8b566ae7df04f3dcb70d4540359c24d8dcac2916cc64e6ba2 | MATLAB | 1,743 | 57 | function a = read_gdf(filename)
% guess first that it is not natively written on a mac
fid = fopen(filename,'r','l');
if fid == -1
'not a real file'
return
end
% first check the endian (I think this is correct)
a = fread(fid,1,'ushort');
stat = fseek(fid,0,-1);
if a(1) == 256 % written on t... |
2be23cc8b25fb0dff3980b3c725100b8ac919daba2cb3281b7d0169d02edff81 | MATLAB | 1,744 | 38 | function [OrigRegionIdxStruct,UpdatedRegionIdxStruct] = MatchRegionIdxToCellName(RegionIdxStruct)
% MatchRegionIdxToCellName takes the AQuA res file output
% res.ftsFilter.region.cell and reorders the cell indices of each variable
% to match any manual re-naming of regions in cell.name
% The original .cell struct w... |
a2dec702d9cbc602cb227802341ec4ad8dbb102e6b301faec862435c62d0359a | MATLAB | 1,745 | 38 |
% this script requires posterior probabilities learned from BSDSS model
%Inputs:
% group_model : trained model in group level
% data : group data as a cell of individual subject matrices D-by-N
% maxIter(optional) : number of iterati... |
deb6bcffbab14fc71934900d1a73593190726dca5c62420a1153294c4cf10ba4 | MATLAB | 1,746 | 39 | function histologyToOCTT = octSlideToTransform(...
umm,vmm,hmm,new2OriginalAffineTransform,topLeftCornerXmm,topLeftCornerZmm,histologyScale_umperpix,octScale_umperpix)
% Using slide data, what is the appropriate 2d transform.
% INPUTS:
% u,v,h of the slide (in milimiters)
% new2OriginalAffineTransform - fr... |
af2c7481930cdf4c301d7a317dbeeae19c34004db9dfa3a35f230aca1dedc04e | MATLAB | 1,748 | 53 | % [Avs StdErr] = TriggeredAv(Trace, nBefore, nAfter, T, G)
%
% computes triggered averages from Trace at the times given by T.
% Trace may be 2D, in which case columns are averaged separately.
% The output will then be of the form Avs(Time, Column)
% nBefore and nAfter give the number of samples before and after
% to u... |
1df584eb4fb99da8b17e4f609114fac3205287fac87d924305b614d5ec1d4864 | MATLAB | 1,749 | 70 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
% Frequency calculator
%
% Authors : KHOYRATEE Farad
% Date : 24/01/2017
% Update by : KHOYRATEE Farad
% Update : 24/04/2017
%
% Version : V1.1
%
% Descritption: Mesure the spike frequency. Every spike
% must have t... |
f056772cbc3b2ed4122eab4074786d4554684bb114015dc9ec8ea6f619ba7710 | MATLAB | 1,750 | 72 | function [subj] = add_history(subj,objtype,objname,hist_str,displayme)
% Adds HIST_STR to OBJNAME's history field.
%
% [SUBJ] = ADD_HISTORY(SUBJ,OBJTYPE,OBJNAME,HIST_STR,[DISPLAYME])
%
% DISPLAYME (optional, default = false). If true, the HIST_STR gets
% echoed to the screen as well.
%
% If OBJTYPE = 'subj', then will... |
84824662291a64f698221889b2cddfc3d743a95e3955ca3b9bc98d32decab21e | MATLAB | 1,751 | 51 | % load path file %Before and affter drug administration % delta/theta ratio
% differance between two groups.
% nex_idx = 7;
mat_idx = 7;
t1_idx = 2;
t2_idx = 4;
t3_idx = 5;
t4_idx = 6;
iso_idx = 4;%drug administration
%
summary1 = [];
summary2 = [];
summary3 = [];
summary4 = [];
toplot1 = [];
toplot2 = [... |
028e0f517a8477100c6596e457bb4b2de826aafb2a6589aab3f57ed2d8e905ce | MATLAB | 1,752 | 52 | % if trials var already filtered out trials by condition/locations, then
% just filter out movieIdx to same criteria.
% for fNIRS only
% For sbj 08 and 10
% For preprocess7.
function [trials,varargout] = keepCorrectTrials_Param_Special(sbjNum,trials,behFN,numClasses,movieIdx)
load(behFN,'responsesV','responsesA','... |
003b2f8e5fda2af02e03d07a4546c0f0a753482d979a71bbf19b5a45712b45ee | MATLAB | 1,754 | 69 | % function [L weights] = CrossValidationPeerCheck(S,Q,ep)
function [L,weights] = CrossValidationPeerCheck_Cells(S,Q,ep)
nbEp = 10;
epV = regIntervals(ep,nbEp);
fprintf('Launching Cross-validated Peer info\n')
Q = Restrict(Q,ep);
dQ = Data(Q);
nbC = size(dQ,2);
L = NaN(nbEp,nbC);
weights = zeros(nbC,nbEp,nbC-1);
% com... |
2d355b7eb6aa4e15e4575aa2a2e9250111f6e0f340fdf4e0edc4a8f7764c709b | MATLAB | 1,756 | 32 | function model = newton_train(labels_train,data_train,cfg)
if isstruct(data_train), error('This method requires training vectors in data_train directly. Probably a kernel was passed method is use. This method does not support kernel methods'), end
switch lower(cfg.decoding.method)
case 'classification'
... |
30047826ced1b592979b5764688ff0f5205fb56a04e29550bb52409bec2d77db | MATLAB | 1,756 | 53 | function [y, l] = knnfwd(net, x)
%KNNFWD Forward propagation through a K-nearest-neighbour classifier.
%
% Description
% [Y, L] = KNNFWD(NET, X) takes a matrix X of input vectors (one vector
% per row) and uses the K-nearest-neighbour rule on the training data
% contained in NET to produce a matrix Y of outputs and... |
bef012d6c50abca2a77679c6830f34ff32ebabb4809588ce71734077c031df1c | MATLAB | 1,756 | 56 | function plotcube(varargin)
% PLOTCUBE - Display a 3D-cube in the current axes
%
% PLOTCUBE(EDGES,ORIGIN,ALPHA,COLOR) displays a 3D-cube in the current axes
% with the following properties:
% * EDGES : 3-elements vector that defines the length of cube edges
% * ORIGIN: 3-elements vector that defines the start p... |
ce17177882e720250971e8c0eb9b975c05e569de1ccf32af914d69205a4f5f17 | MATLAB | 1,756 | 62 | make_it_tight = true;
subplot = @(m,n,p) subtightplot (m, n, p, [0.01 0.05], [0.1 0.01], [0.1 0.01]);
if ~make_it_tight, clear subplot; end
%% Upper and Lower Subplots with Titles
income = [3.2,4.1,5.0,5.6];
outgo = [2.5,4.0,3.35,4.9];
subplot(2,1,1); plot(income)
title('Income')
subplot(2,1,2); plot(outgo)... |
0b8800ca9baf085bf25750edfa462052925d864a554fd0ab08019a69e62d3d14 | MATLAB | 1,757 | 71 | function meanWaveF = Make_MeanWaveF_LargeFile(fbasename,varargin)
% meanWaveF = Make_MeanWaveF(fbasename)
% Computes average waveform from spk files
%
% options:
% 'spk' (default) | 'dat': reads spike from the spk file of from the dat file
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
01ed5b6f264a4814d33ecccec7dd0b36a00543451fe1dd057150f983367ead37 | MATLAB | 1,758 | 58 | function varargout = read_header_afni(varargin)
% read_header:
% input: name of volume (full path , 1 x n string)
% output: header of BRIK
% TODO: how to deal with oblique images? (i.e. realigned but not resliced)
try
[err,hdr] = BrikInfo(varargin{:});
if err
error('Could no... |
a4a15a693459006de049600b46e11f96507a73b22dd1a1db2d4337ba649ed731 | MATLAB | 1,759 | 36 | function [y, dvec_TE1, cj, dmat2d_T2_mapscan] = curve_fitting31(mat2d_T2_mapscan);
%Input: T2 scan multiplied with ROI mask for a given ROI for 15 TE's
%Output: Monoexponential curve fitted T2 co-effecients for one ROI for one animal
%In method 3, we have averaged the T2 values for a ROI over all slices for
%a si... |
8f11cee3ee912ae3ae89b1510a6babf22d4e4a1ebf143f98e084b43ba7390e2f | MATLAB | 1,760 | 52 | function [roi_data, roi_mask, labels] = mri_get_data(sub_id, p)
% function [data, mask, labels] = mri_get_data(sub_id, p)
%
% Load and process fMRI data for the pSVR analysis. Realigned functional
% images are laoded, temporally detrended and smoothed and separated into
% trials. Voxels are sorted with respect to the... |
eb198590322a812dd452dd10e7d70513272c867b130d97f85c65581088489072 | MATLAB | 1,760 | 70 | function S = intervalSplit(tsa, is, varargin);
% Returns a cell array of tsd object, one for each subset of a given interval
%
% USAGE:
% S = intervalSplit(tsa, is, optionName1, optionValue1, ...)
%
% INPUTS:
% tsa - a tsd object
% is - an intervalSet objetct
%
% OUTPUTS:
% S - a cell array ... |
ec0b44abdcbafc977c550d9784dfad1668722ddf1dd1fdc1258606e46419842c | MATLAB | 1,764 | 64 | blobDataNames={'Volume','Mean Intensity','Max Intensity','Convex Envelope','X',...
'Y','Elevation','Cell length','Cell width','Cell height',...
'OX Orientation','OY Orientation','OZ Orientation',...
'Cell fine elements','Length to width ratio','Distance traveled','Solidity','Ratio of volume to eq. diamet... |
f8791e4b5e2c6c091c628c228155918473c0733a658431810d024d5cc60fea47 | MATLAB | 1,767 | 39 | %% EARLY WARNING OF ATRIAL FIBRILLATION USING DEEP LEARNING
%
% This script generates the data for training and testing a deep learning
% model aimed at early detection of atrial fibrillation from ECG data.
% It processes ECG signals to generate recurrence plots (RPs) and labels
% them based on the presence of ... |
16f02a001b24794525a9a2b7d30fe0f4d949ef0f493653e00ce73695b38b1f64 | MATLAB | 1,769 | 49 | function [regs] = ind2vec_robust(ind)
% Replacement for ind2vec, can deal with zeros better
%
% [REGS] = IND2VEC_ROBUST(IND)
%
% This script is used to convert vector regressors that list a
% condition for each timepoint into a regressor matrix which
% consists of conditions x timepoints. It is useful for taking in
%... |
22272331be5bd4a00d99993dbff8581b4f3f1a83d5a8c98f4582ffd5c129461f | MATLAB | 1,772 | 65 | %LoadSpikeWaveF - Load subset of spikes
%
% USAGE
%
% spk = LoadSpikeWaveF(filename,nChannels,nSamples,CluIx)
%
% filename file to read
% <options> optional list of property-value pairs (see table below)
%
% =========================================================================
% Properti... |
fad59aa6f356f95e67cabe8c8cb7408b8f0d9c6525d3af27aa6cd40bc5aadb6d | MATLAB | 1,774 | 48 | function [displacementField] = field_regularization(displacementField, certainty,...
applyCertainty,sigma)
% FIELD_REGULARIZATION Regularizes the displacement field according to certainty and sigma
%
% [displacementField] = field_regularization(displacementField, certainty, applyCertainty,sigma)
%
% INPUT ARGUMENTS... |
45c0c4de24774406a7a16a47a88543eeb004d262342fb1e785df7d21c253f769 | MATLAB | 1,775 | 46 | %function [EegSegAv EegSegStd EegSTrange] = TriggeredAvM(FileBase,T,win,sr,nChannels,method, SignalType)
% trigered averages multiple channels from file or matrix
% within a window of win (in msec)
% method : 1, to load all channels for each segment around trigger (if nChannels/nTriggers is large)
% 2, to... |
e3b8f313a76c9ebc8c18a097da10c6c3aac9005549714d6d0a4c408c8288c37a | MATLAB | 1,775 | 62 | function [y, a] = glmfwd(net, x)
%GLMFWD Forward propagation through generalized linear model.
%
% Description
% Y = GLMFWD(NET, X) takes a generalized linear model data structure
% NET together with a matrix X of input vectors, and forward propagates
% the inputs through the network to generate a matrix Y of output
% ... |
7c1fb56b10689a10a7f12dad709e4697d982f059fda4202b6a7cfb32493a897e | MATLAB | 1,781 | 74 | function [e,d] = eig4x4(in, in2, flag)
if nargin<2
in2 = false;
end
if nargin<3
flag = false;
end
if ~isscalar(in2)
% assume it's a symmetric matrix, to be used for a generalized eigen
% decomposition
if nargin<3
flag = false;
end
[e,d] = eig4x4(in2, false);
e = normoverdim(e,2);
% crea... |
19e467944362e55eb8c562cb377a85ac42b2e5800db3d29c52688d8c9c6a1002 | MATLAB | 1,783 | 95 | function PE = RL_MixedChannel(a1)
global data
global fittedpars
global w
global ChanType
global expr
beta=fittedpars(1);
bias=fittedpars(2);
w=fittedpars(3);
%%
DV=[]; OXX=[]; CXX=[];
for i=1:size(data,1)
alpha=a1(1);
% w=a1(2);
OS=data(i,1);
CS=data(i,2);
Tru_C... |
fa097bf4fa884445b722d5c964dbc03d82ce35051754d6769d0c440055c4e38a | MATLAB | 1,785 | 57 | function abf = SubsetTable2struct(abfs,channels,ins,outs,sweeps,epochs,aps)
% returns nested struct containing subset of whichever abfs are entered as
% argument.
% example: >>> abf = SubsetTable2struct(abfs,channels,ins,outs,sweeps,epochs,aps)
% : returns nested structure of all abfs in 'abfs'table.
% exa... |
d706fbbdf70c298a73a769d230a2365617ef76676b5310e897e5a76ecc5bac83 | MATLAB | 1,787 | 38 | function d = inv4x4(x)
% INV4X4 computes inverse of matrix x, using explicit analytic definition
% if size(x) = [4 4 K M]
% Copyright (C) 2012, Donders Centre for Cognitive Neuroimaging, Nijmegen, NL
%
% This file is part of FieldTrip, see http://www.fieldtriptoolbox.org
% for the documentation and details.
%
% Fi... |
b8ab30bd42d9894afc0aeb77ad4f243967f9cffc557a246873b8d6d781f1afb6 | MATLAB | 1,789 | 57 | % function varargout = get_filenames_afni(varargin)
%
% Function to get file names using afni_matlab. Supports both wildcard and
% regular expressions for file names (not for paths).
%
% INPUT:
% file_path (1 x n string)
% optional: filenames with wildcards (e.g. *.BRIK or rf*.BRIK), or
% ... |
ec8266477d927ae657edb3b6a4e5d594ff7f413b2c76b839fa3bb342d0ac41a2 | MATLAB | 1,790 | 56 | %%
%% Plot trajectory and spikes
%% Reference: https://www.mathworks.com/matlabcentral/answers/170866-how-to-avoid-a-vertical-line-at-discontinuity-point
%% https://github.com/hasselmonians/CMBHOME
%%
clf;
thresh = 15; % Wrap detection threshold. Above this movement distance a wrap around is detected.
if ~exist('small... |
358ed665061aae86cec5c27a3d3532043a32ca991d0730fa96ffb9c021d4f263 | MATLAB | 1,792 | 65 | function [fnames] = write_regs_1d(regs,regs_1d_name)
% Write your regressors out as .1d files
%
% [FNAMES] = WRITE_REGS_1D(REGS,REGS_1D_NAME)
%
% Writes a series of 1d files, one for each condition. Doesn't
% matter if your REGS_1D_NAME has a .1d extension, since it will be
% stripped off, to create individual files, ... |
ac23ed50d370082aead8e68f02fb21344fcd6638d00038cffb1034ca1880a2a2 | MATLAB | 1,792 | 48 | % function AUC = AUCstats_matrix(decision_values, true_labels, labels)
% computes the area unter the curve (AUC) for the n-by-1 vector of decision
% values, corresponding n-by-1 vector of true labels. This is done for
% multiple pairwise comparisons. The order of assigned labels is given by
% the variable "labels".... |
d0792ff4c29629882e2e18a52edb5e569e1efbb1c6e407c123d2e14deea61c26 | MATLAB | 1,793 | 51 | function [TargetVector] = VectorIntoTarget(Traj, radius, Targets, Target_Angles,TargetNum, Animal)
% Calculates an incoming vector into the target and compares to optimal
% angle
numTraj = size(Traj,1);
TargetVector = [];
if TargetNum == 1
x2 = Targets(Animal,1);
y2 = Targets(Animal,... |
d8fd5c7a382851ebc2eae87d36abbf0fabd8b8f50a8a50e202e7e39ab938495a | MATLAB | 1,793 | 64 |
%% Add path
addpath(genpath('../../Ionnic Channel'),genpath('../../Tools'), genpath('../../Synapses'), genpath('../../Datas'));
%% Import data from neuron (FS)
dt = 0.01;
Vmem = -90:dt:60;
l_V = length(Vmem);
%% Anonymous function
ninf_simp = @(v) (0.001451*v +0.5204... |
a99980651073bbceea53df79377cbfaf8e45feb3693b6e90704b4b1cbb370981 | MATLAB | 1,797 | 39 | % Inactive.
% plot HRF for each condition using output from Homer3 GUI
snirf1 = SnirfLoad('20210504_1348_02.snirf');
saveFigDir = 'C:\Users\mn0mn\Documents\ResearchProjects\spatailAttentionProject\RawDatafNIRS\Experiment03\Figures';
load('groupResults.mat');
%group.subjs(1).Load();
% Dimension = time x hbo/hbr/hbt x ... |
17303cb09920c632492847abb3539e22dbd0e834275a31e4c4d2285ff7e1f083 | MATLAB | 1,799 | 47 | %This analysis code was used in:
%Mares I, Ewing L, Papasavva E, Ducrocq E, Smith FW, Smith MLS (in press).
%Face recognition ability is manifest in early dynamic decoding of face-orientation
%selectivity – evidence from multi-variate pattern analysis of the neural
%response. Cortex.
%This code was originally cr... |
f2a18f669b24ac954332c1565772c390c82cdf4fb01b7fd6bf366b66836e9b82 | MATLAB | 1,799 | 43 | clear all
addpath('/Volumes/LASA/TBI_OpenNeuro/TBI_openneuro/Hopf_model/TBI_homogeneous/outputs/Trials/TBI/');
addpath('/Volumes/LASA/TBI_OpenNeuro/TBI_openneuro/Hopf_model/TBI_homogeneous/outputs/Trials/HC/');
addpath('/Volumes/LASA/TBI_OpenNeuro/Shared_code/Hopf_TBI_ON/'); %codepath
outdir('/Volumes/LASA/TBI_Open... |
8b1cb057bc3cc1c46d60a80bd566ff408b8c0041754a2a4ba1d91fccb00b409d | MATLAB | 1,800 | 86 | function [x,k,res,negCurv] = cg(A,b,optTol,maxIter,verbose,precFunc,precArgs,matrixVectFunc,matrixVectArgs)
% [x,k,res,negCurv] =
% cg(A,b,optTol,maxIter,verbose,precFunc,precArgs,matrixVectFunc,matrixVect
% Args)
% Linear Conjugate Gradient, where optionally we use
% - preconditioner on vector v with precFunc(v,precAr... |
4c7968ee542d364b7c009fc25b0508f363372a74ea938f71eaa663c1970ab002 | MATLAB | 1,801 | 48 | function [sig_tag,p_val,observeddifference] = permTest_2sample(data1,data2,nb_perms,alpha_sig,min_duration)
exact = false;
allobservations = vertcat(data1,data2);
observeddifference = mean(data1,1) - mean(data2,1);
s1_n = size(data1,1);
all_n = size(allobservations,1);
win_size = size(data1,2);
w = warning('off', 'M... |
867cd2e505ea7f4d6237ad405f07bed9924b863a6b40f2e8069d147ed339d053 | MATLAB | 1,801 | 39 | clear,clc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This code was developed to perform the expression plot of brainspan for
% genes of interest
%
% Jin Liu
% 2022-8-16
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
ff3a8911350f038c7a3f4161dd33f965ec35b1eb36c59862eda87e2517149511 | MATLAB | 1,801 | 57 | %% Example plots
clear all; close all
addpath('/home/mikkel/fieldtrip/fieldtrip/')
ft_defaults
addpath('/home/mikkel/PD_longrest/scripts/')
addpath('/home/mikkel/matlab/export_fig/')
[subs, dirs] = PDbb2_SETUP();
cd(dirs.meg_path);
%% "raw" ROI bp-filterd data with envelope
subID = subs{1};
sub_dir = fullfile(dirs.me... |
05c27c71910090a1315f4d428e8f7e9ce63f74efd38e2c3f0d92f0a430439f66 | MATLAB | 1,802 | 47 | % prevalence_savedata_to_images(outputfilename, mask, vol, results, result_indcs)
%
% TDT helper function to save data from the prevalence analysis to images.
% Will create one image for each field of results (see prevalenceCore.m).
% Called by prevalence.m from TDT.
%
% IN
% outputfilename: Filename with full path ... |
d9160030287741131752d9de061fd01c489ebd69d7611ef3a6ee44159d83b5cb | MATLAB | 1,802 | 43 | clear all
addpath('/Volumes/LASA/TBI_OpenNeuro/TBI_openneuro/Hopf_model/TBI_homogeneous/outputs/Trials/TBI/');
addpath('/Volumes/LASA/TBI_OpenNeuro/TBI_openneuro/Hopf_model/TBI_ON_Hopf_hc_tp2/outputs/Trials/');
addpath('/Volumes/LASA/TBI_OpenNeuro/Shared_code/Hopf_TBI_ON/'); %codepath
outdir('/Volumes/LASA/TBI_Open... |
5fc04d226579fb6ecdaf3c5a2e98ba457f5f6fdf2e00e18c217c220abb39588d | MATLAB | 1,806 | 63 | function [hLine, hFill] = fillerror(x, ymean, yerr, color, lineon, face_alpha, varargin)
% FILLERROR plot filled error bars and optional central line
% [h hFill] = FILLERROR(x,mean,error,c,lineon, lighten,varargin)
%
% INPUTS
% x - vector of x positions to plot
% mean - vector of y positions to plot (usually the mean)... |
1174de2102abf6dd658d98f48208fb6d65d57fa4c50ce8c552ae86d65546af79 | MATLAB | 1,808 | 53 | function net = mdninit(net, prior, t, options)
%MDNINIT Initialise the weights in a Mixture Density Network.
%
% Description
%
% NET = MDNINIT(NET, PRIOR) takes a Mixture Density Network NET and
% sets the weights and biases by sampling from a Gaussian distribution.
% It calls MLPINIT for the MLP component of NET.
%
% ... |
04782944c8c68fd7a0ee99dead654e5fc721f707eb1c0e20ac3c1312e48bd967 | MATLAB | 1,809 | 83 | function [Stat] = VectStat (M)
%
% [Stat] = VectStat (M)
%
%Purpose:
% calculates very basic stats of vectors
%
%
%Input Parameters:
% M : MxN matrix
% NAN or Inf values are not considered and the user is warned of their existence
%
%Output Parameters:
%
% Stat is an Mx1 vector of structures ... |
f3d26832f72a7c6957062ce55d1a54d837f884e918ef3604779c47b28a872ed6 | MATLAB | 1,811 | 77 | function data = Logical(transformer, data)
%
% Each of these transformations:
%
% - takes 2 or more columns as input
% - performs the corresponding logical operation
%
% - inclusive or
% - conjunction
% - logical negation
%
% - returning a single column as output.
%
%
% If non-logical... |
1bec12fd6b78ae38f3aa06cdd3b613f9f6db9d96e7d9994759788f885a4d3032 | MATLAB | 1,812 | 73 | function [h,B,mu,h0] = HeadDirectionField_BD(tsa,ang,GoodRanges,varargin)
% USAGE
% [h,d,mu,p,kappa] = HeadDirectionField(tsa,ang,GoodRanges)
%
% Inputs:
% tsa: a ts object (typically a cell!)
% ang: a tsd object of head orientation
% GoodRanges: an intervalSet object defining the time of vali... |
fcc0387806bb176b19659b084e6757793ef875bedc21719e0c8b2ae2a1435725 | MATLAB | 1,814 | 75 | function ic = intervalCount(tsa, is, varargin)
% Counts instances of tsa in each subset of an interval
%
% USAGE:
% ic = intervalCount(tsa, is, options)
%
% INPUTS:
% tsa - a tsd object
% is - an intervalSet
%
% OUTPUTS:
% ic - a tsd object, where the timestamps correspond to each interval ... |
8a0dd53d765e7f13aa2fe8e4e964ed549e65a85651e2697a09f6b6ecb5c9a2b0 | MATLAB | 1,816 | 60 | function guess=find_bpn1(sv_var,coords,C)
% std of the whole trace
for i=1:size(coords,1)
stds(i)=std(sv_var(i).coords(:,5));
end
[~, sorted_ids]=sort(stds,'descend');
% sort according to highest stds
guess=[];
selection=sorted_ids(1:60);
num_neu=3;
additional_factor=1;
% consider all possible combin... |
6cc4cc876522efba715222e75475325bc6ca7f38a613d54e3337fa056a62604c | MATLAB | 1,820 | 61 | function net = gtm(dim_latent, nlatent, dim_data, ncentres, rbfunc, ...
prior)
%GTM Create a Generative Topographic Map.
%
% Description
%
% NET = GTM(DIMLATENT, NLATENT, DIMDATA, NCENTRES, RBFUNC), takes the
% dimension of the latent space DIMLATENT, the number of data points
% sampled in the latent space NLATENT, ... |
a980c58a3f44783ce626870b3dddc683a4ba9267321933565a2aa8327288d5b6 | MATLAB | 1,820 | 63 | clear
[task_info,supPath,MaestroPath] = ...
loadDBAndSpecifyDataPaths('Vermis');
req_params = reqParamsEffectSize("both");
req_params.task = 'saccade_8_dir_75and25';
lines_sacc = findLinesInDB (task_info, req_params);
req_params.task = 'pursuit_8_dir_75and25';
lines_single = findLinesInDB (task_info, req_params)... |
db2fbb1649e4ec28a5d97dca54abcf28bf7e14cedc55d54f2957f86b9f2e09ce | MATLAB | 1,820 | 70 | function SaveAnalysis(processdir,fname,variables,varNames,varargin)
% USAGE
% SaveAnalysis(processdir,fname,variables,varNames,varargin)
%
% this function saves analysis results in the 'Analysis' folder
%
% INPUT:
% processdir: the directory containing the Analysis folder. Typically, call it with 'pwd';
... |
beb17f887a61d4311506ef0c5bb164731626fa86e14bb07b4385b0bdd713d7c3 | MATLAB | 1,822 | 49 | function [gradient, delta] = gradchek(w, func, grad, varargin)
%GRADCHEK Checks a user-defined gradient function using finite differences.
%
% Description
% This function is intended as a utility for other netlab functions
% (particularly optimisation functions) to use. It enables the user to
% check whether a gradien... |
f6b9ca8bea95ca8e063ef9fe2d820783352aa46f09801de8f2793747396b18fb | MATLAB | 1,827 | 63 | function plot_map(map, title_str, colormap_, colorbar_label_str, empty_pix_color)
f = figure();
title(title_str)
axis equal
axis off
hold on
% rescale data to be between 0 and 1 for the colormap
normed_map = map;
% creation of the correct colorbar
map_min = min(map,[], 'a... |
3d8df56829880c3afbfe555bbf883bf47bfa64bd773b870365e65bf7bc45a6e5 | MATLAB | 1,828 | 78 | function updateSlideInS3(octIm,histologyIm,octOutputPath,histologyOutputPath, ...
logImageOut, octMetadata, planeDistanceFromOrigin_mm,linesIm)
% Lines Im if exists
% Find which plane to save
d_um = planeDistanceFromOrigin_mm*1e3 - octMetadata.y.values;
yI = find (abs(d_um) == min(abs(d_um)),1,'first');
oct... |
83ebbfc26bd35ce4deda850a008718abcb930f573e5bd5dbcbc3a98cb7f18d87 | MATLAB | 1,828 | 44 | clear all;
outdir='/Volumes/LASA/TBI_OpenNeuro/TBI_openneuro/Hopf_model/TBI_ON_Lesions_Hopf_mask2SD_weight_corr/outputs/Trials';
addpath(outdir)
addpath('/Volumes/LASA/TBI_OpenNeuro/Shared_code/TBI_ON_Lesions_Hopf_mask2SD_weight/');
addpath('/Volumes/LASA/TBI_OpenNeuro/TBI_openneuro/Hopf_model/TBI_ON_Hopf_hc_tp2/ou... |
93f463c95b35f61c9e5ca37c955c4c9e718cf86997f2ed6dd55fe43065e023c6 | MATLAB | 1,828 | 56 | function [fhand fname] = get_funct_handle_name(n_or_h)
% Returns both function handle and name from an ambiguous arg
%
% [FHAND FNAME] = GET_FUNCT_HANDLE_NAME(N_OR_H)
%
% N_OR_H could be either a function name string OR a
% function handle - whichever it is, this will return
% both, for you to process as necessary.
%
... |
d56820538e62cbafe809330ea63e890f23775bfce60770b727f465fd9b9d2667 | MATLAB | 1,828 | 43 | function [Traj_interpol200] = Interpolate_numpoints(Traj_interpol,newPoints, ChHome)
numTraj = size(Traj_interpol,1);
xdata = 1:newPoints;
if numTraj == 0
Traj_interpol200 = {};
else
for i=1:numTraj
%x-coordinate
ydata = Traj_interpol{i,... |
f36d133b072aaf5705cb8a6b6e878b8d435e216fc8e9a4556d323950cba7f450 | MATLAB | 1,828 | 44 | clear all;
outdir='/Volumes/LASA/TBI_OpenNeuro/TBI_openneuro/Hopf_model/TBI_ON_Lesions_Hopf_mask2SD_weight_corr/outputs/Trials';
addpath(outdir)
addpath('/Volumes/LASA/TBI_OpenNeuro/Shared_code/TBI_ON_Lesions_Hopf_mask2SD_weight/');
addpath('/Volumes/LASA/TBI_OpenNeuro/TBI_openneuro/Hopf_model/TBI_homogeneous/outpu... |
aabb7d375a777ccb3d576b5ec47939801fc3308f9a30cb14b1eac9ff233c865a | MATLAB | 1,830 | 37 | function decoding_out = distance_test(labels_test,data_test,cfg,model)
if isstruct(data_test), error('This method requires training vectors in data_test directly. Probably a kernel was passed method is use. This method does not support kernel methods'), end
switch lower(cfg.decoding.method)
case 'class... |
0a8d52f5863d1ded7feffd74113f1a9fba18ddb9d6479f1f16e2c7219975ee53 | MATLAB | 1,831 | 68 | % compute sig table: absolute & normalized
function grpSig(sbjList)
saveDirGp = 'C:\Users\mn0mn\Documents\ResearchProjects\spatailAttentionProject\ProcessedDatafNIRS\GroupResultAll';
numChn = 30;
numCond = 3;
numPairs = 3;
numSubsets = 6;
idxLFEF = 1:10;
idxRFEF = 11:20;
... |
16713eebb23364eb2e0ed744a6fe9621b6de0441407d9f4a13050e3440e178bf | MATLAB | 1,832 | 47 | %This script generates a google form link to submit subject information to
%spreadsheet
%% Inputs
OCTVolumesFolder = 's3://delazerdamatlab/Users/OCTHistologyLibrary/LC/LC-06/OCTVolumes/';
if (exist('OCTVolumesFolder_','var'))
OCTVolumesFolder = OCTVolumesFolder_;
end
OCTVolumesFolder = awsModifyPathFor... |
d0e1a259cdb79ac88214541634f73fafa2d06f99aa7abe67673aa8aaba60b540 | MATLAB | 1,832 | 61 | function [dat1,dat2, dat1Norm, dat2Norm,goodDat1Subj,goodDat2Subj,avgDat1,avgDat2] = normReHo(outDir1,outDir2,filt1,filt2,vox1,vox2,varargin)
%varargin{1} and varargin{2} will have subject name filters for the
%reho files
%% Normalize Data
% normalize preterm data
dat1 = dir(fullfile(outDir1,filt1));
dat2 = dir(fullfil... |
a0f8d2e7c4746d49fa28b03e0dc5caf1a8a5a605dc6203b996d50a914dbe9d32 | MATLAB | 1,835 | 51 | function Scatter_Mean( TS_mean_preVpost, TS_idx, TITLE, XLABEL, YLABEL, stdOrsem )
% Michelle Cahill 20230814
% Scatter_Mean creates a scatter plot from values in TS_mean_preVpost and
% plots the mean +- errorbars for the population
% TS_mean_preVpost: nx2 matrix with n= # of tseries/pairs, column 1:
% metri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.