sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
3969fc88d5d0ce9732fdf33172b2d4361a66a55ab665a12c8739bc172ef480ec | MATLAB | 10,104 | 234 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% computes control energy and stability for two state;
% different choices: can compute control for the whole network and each
% region, or for a subset of regions (e.g. a network such as the rich cl... |
0146f0da4b423526a1a6e834cf4e69af1b7d41a4c5c9bae9c8e2e913fbbe4e4a | MATLAB | 10,112 | 240 | function [t] = plotHypnogram(cfg, MuseStruct)
% PLOTHYPNOGRAM creates statistics based on hypnogram and markers in MuseStruct
%
% use as
% [t] = plotHypnogram(cfg, MuseStruct)
% This file is part of EpiCode, see
% http://www.github.com/stephenwhitmarsh/EpiCode for documentation and details.
%
% EpiCode is free so... |
a6c5920956edb5dfb65126b9040e9092fd90523220b6d7f6f7fda8b187a6797f | MATLAB | 10,128 | 311 | % Author: Woojae Jeong
%% Post preprocessing after artifact removal
% Start eeglab
eeglab;
% Start BrainStorm
if ~brainstorm('status')
brainstorm nogui % Start BrainStorm without GUI
%brainstorm % Start BrainStorm with GUI
end
% Preprocessing pipeline Emotional
gui_brainstorm('EmptyTempFolder'); % Empty ... |
3b983ebaba147f820d2e7cb4fc6f430a6321b3383252e2691c5ae6eb6aa21852 | MATLAB | 10,138 | 220 | function [stats] = spikeTrialDensity(cfg, SpikeTrials, force)
% SPIKERATESTATSEVENTS calculates spike statistics
%
% use as
% [stats] = spikeTrialDensity(cfg, SpikeTrials, force)
% or, if need to only load precomputed data :
% [stats] = spikeTrialDensity(cfg)
%
% This file is part of EpiCode, see
% http://www.git... |
d52ed8de2dbb95672db9f0cafcd5ed2aba23bc24a14e764d4d8a043404bd5f95 | MATLAB | 10,173 | 187 | function plot_spike_waveforms(cfg, markerlist, spikewaveformstats, spikestats, spikewaveforms)
% Plot spike waveform data. If the argument spikewaveforms is omitted, then
% it only plots average data.
%
% Use as :
% plot_spike_waveforms(cfg, spikewaveformstats, spikestats, spikewaveforms)
%
% INPUT :
% - cfg.pre... |
aefee415a17b9daca008df17bf2611edd4556d252866fa5787f1901ddcc3ad1e | MATLAB | 10,290 | 279 | %% Welcome & Introduction ----------------------------------------------------
% On-Demand Seizures Facilitate Rapid Screening of Therapeutics for Epilepsy
% Authors: Yuzhang Chen, Brian Litt, Flavia Vitale, Hajime Takano
% DOI: https://doi.org/10.7554/eLife.101859
% This code is to be used with the pre-processed sour... |
f424da1fe019952c574f02aa2dd8028b21cf66f8251c3f3c6a9ba679209c9108 | MATLAB | 10,318 | 320 | %%
% plotyy() with units. If provided, the first argument must be a cell array
% of the form {u, xU, yU} where u is the units structure, and xU and yU
% are strings identifying the **target** x and y units respectively. That
% is, the input is assumed to be in standardized units, and will be
% converted ... |
fffb15b27b7efdffb285da11f6675e5febaa102f00f81166fb7dff85567e2598 | MATLAB | 10,318 | 267 | imagesavedir = '/network/lustre/iss01/charpier/stephen.whitmarsh/data/images';
dat = readtable('pattern_quantifications.xlsx');
% distance between discharges - absolute time
dat.interdischarge = [nan; diff(dat.start)];
% add counter for every discharge within pattern
nr = 0;
for i = 1 : find(~isnan(dat.diff),1,'last... |
a7e9a50f00856f6293bac48416ebf3adf083ce962582bf7993208310246bcd3b | MATLAB | 10,335 | 367 | function varargout = spm_prf_fcn_DoG_polar_angled(P,M,U,varargin)
% Gaussian PRF model with Precision width parameter
%
% D - Degrees of visual angle used as units
% C - Constrained PRF width
%
% -------------------------------------------------------------------------
% FORMAT [y,Z] = spm_prf_fcn_gaussian(P,M,U)
% Ret... |
e0aa13a6b09f7e164f835c4dda83416cf12f57d3dad23dd20a2d7dc7aeae0168 | MATLAB | 10,362 | 334 | function [Cmean,Cgaussian,Dir1,Dir2,Lambda1,Lambda2]=patchcurvature(FV,usethird)
% This function calculates the principal curvature directions and values
% of a triangulated mesh.
%
% The function first rotates the data so the normal of the current
% vertex becomes [-1 0 0], so we can describe the data by XY inst... |
ae551c8d8e195a5ef774a671fdfc5c1f333e96e5599eb13ab89a2f50e2adc0a1 | MATLAB | 10,364 | 184 | function cfg = writeSpykingCircus_parfor(cfg, MuseStruct, poolsize, force)
poolobj = parpool(poolsize);
fname_output = fullfile(cfg.datasavedir,[cfg.prefix,'SpykingCircus_trialinfo_parts.mat']);
if exist(fname_output,'file') && force == false
fprintf('\nLoading trialinfo: %s \n',fname_output);
temp = load(fn... |
916f670a06fbd700165ce91877a9a758c8a2fb83997d5b95dac241985ef29663 | MATLAB | 10,371 | 304 | function outpict = extractbg(inpictarg,varargin)
% EXTRACTBG(INPICT, {OPTIONS})
% EXTRACTBG(FILEPATH, {OPTIONS})
% Extract background image estimate from a video or a multiframe image.
% This tool uses simple luma or color distance thresholding, and was initially
% based on the FEX submission 'Bac... |
b04dd657b4a18c07e6b9702e5be652edaf43832a107a4bd7f75c8bf025e7a9e4 | MATLAB | 10,383 | 367 | function [W] = mc_undist_loop_wouter_fast2(V)
nx=V.nx;
ny=V.ny;
tim1=V.im1';
tim2=V.im2';
mask_V = tim1;
mask_V(V.tmask' <= 0) = NaN;
indx_mask = ~isnan(mask_V);
tim1_mask = tim1(indx_mask);
b00_best=0;
b01_best=0;
b02_best=0;
b10_best=0;
b11_best=0;
b20_best=0;
indx = ~isnan(tim2+mask_V);
tim2r_OK = tim2(ind... |
f7f006c4af12a724e64b0307cfd4a3b154eb78adcee34d32fc548ecda923fe06 | MATLAB | 10,422 | 201 | function [MuseStruct] = addMuseBAD(cfg,MuseStruct)
% ADDMUSEBAD converts MuseStruct markers into BAD MuseStruct markers
%
% Use as
% [MuseStruct] = addMuseBAD(cfg, MuseStruct)
%
% For example, convert seizures identified by 'Crise_Start' and 'Crise_End'
% markers into BAD__START__ and BAD__END__ markers, so those p... |
abb4f4ec0ec2d2b420f0d2cdf8f7119b4225cf831f622764f4957845f42c1650 | MATLAB | 10,424 | 181 | function [MuseStruct_micro, MuseStruct_macro] = readMuseMarkers(cfg,force)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% function readMuseMarkers
%
% Crawls and searches through patient- and recording-directories to
% extracts marker timings (time and samples) created by Muse. These ca... |
cbd1e3f7d73e781a5710d002021a3ecc6b7582ea0af00c2d4ddabe89e07d531d | MATLAB | 10,440 | 295 | % written by Nicolas Clairis - march 2016, adapted january 2017 for
% NeuroSpin study
clear all; close all; clc;
subid = input('subject identification number? ','s');
nsession = input('session number (training:0;task: 1 to 8) ?');
IRM = 1; % 0 outside fMRI or 1 inside fMRI
nbsession = 8; % nber of rating runs (without... |
fbaee62609979ed5f92135fe02bef8c6ea9c517222dfa48e2b2d7ae23704be6c | MATLAB | 10,442 | 283 | % multiRun(X_data_male, y_data_male, X_data_female, y_data_female, x_names, y_names, numComponents, nRuns)
%load data from csv as table GTEx version 8
T= readtable('Male+Female.csv'); %Male+Female.csv contains both Male and Female samples with rows(samples) and columns(genes).
%T should be (the number of samples by ho... |
312bab1bac0ea49e5a2b2c35c6beab3613a860cafbea2709186540348cd5c9f0 | MATLAB | 10,443 | 285 | %% COMPUTE_TFR_TAPPING_MS
%
% Time–frequency analysis for the MS tapping study (FieldTrip).
%
% Steps:
% 1) Loop over three groups:
% cond=1 : MS_F (fatigued)
% cond=2 : MS_NF (non-fatigued)
% cond=3 : HC (healthy controls)
% 2) For each subject:
% - Load preprocessed FieldTrip da... |
8a6dfa67e94c0ee2ea8e7367332da7facb6ed85805702435329366509b6bc304 | MATLAB | 10,456 | 293 | % Expectation suppression study, Hannah McDermott
function [dt, blocks, savethis, logfile] = ES_EEG(ID) % ID should be a number
datapath = 'C:\Users\admin\Documents\MATLAB\experiment_Logs';
mkdir(datapath)
% temp = dir(fullfile(datapath,strcat('ID_',num2str(ID),'*')));
% if length(temp)>0
... |
17a99e4a2386bc418c51577e2249811a57ef022395ba1ee24ad3afe2da85eb9f | MATLAB | 10,467 | 292 | function Figure2(cfg_fig)
if nargin == 0
cfg_fig = [];
end
cfg_fig.colorscale = ft_getopt(cfg_fig, 'colorscale', 0.2);
n = 100;
cmap = parula(n);
cmap = [repmat(cmap(1, :), round(n*cfg_fig.colorscale), 1); cmap; repmat(cmap(n,:), round(n*cfg_fig.colorscale, 1), 1)];
cfg = pnh_... |
1e3021c178e5b248e7c466be01b22ce44daea5e5758c3481bbc5a5e12ed8ccb5 | MATLAB | 10,495 | 313 | function [D,E,R,EXTRA]=nt_cca_mm(x,y,ssize,ldaflag,nccs)
%[D,E,R]=nt_cca_mm(x,y,ssize,ldaflag,nccs) - calculate metrics for match-mismatch task
%
% D: d-prime
% E: error rate
% R: correlation coefficient over entire trial
% EXTRA: struct with additional info:
% .D_match: matrix of euclidean distances for matchi... |
dbff654e1b46888458434551dc232d67ca7d7ffcc2a9982be54f665ac9a5ac75 | MATLAB | 10,524 | 198 | function [dict_out, varargout] = learn_spatially_filtered_dictionary(data_obj, dict_init, corr_kern, params)
% [dict_out, varargout] = learn_spatially_filtered_dictionary(data_obj, dict_init, corr_kern, params)
%
% Function to learn a dictioanry for spatially ordered/ graph-based data using a
% re-weighted l1 spatial ... |
465bfe7560a5502575726e900d570deb2179ec5f5f8fc99142df3cc18e1926d6 | MATLAB | 10,577 | 229 | function [marker, hyp] = readHypnogram(cfg, MuseStruct_micro, MuseStruct_macro)
% readHypnogram reads hypnogram from MuseMarkers
%
% use as
% [MuseStruct, marker, hypnogram] = hypnogramStats(cfg, MuseStruct, force)
% This file is part of EpiCode, see
% http://www.github.com/stephenwhitmarsh/EpiCode for... |
5fec31ab22e06cc328951ce738c6e4f3e36990607f7f02d4e25f94ac7a929623 | MATLAB | 10,580 | 214 | function cset = ccmap(varargin)
% CMAP = CCMAP({MAPNAME},{STEPS})
% Custom colormap generator originally for MIMT docs processing
%
% MAPNAME is one of the following:
% MIMT maps:
% 'pastel' is a soft yellow-magenta-teal CT used for imblend() contour maps (linear luma)
% 'pwrap' is a closed version of 'pas... |
a2c23a296bbebdc937506ca6f610f37c7373f3679db5ac529f4b20ffb7dd47f6 | MATLAB | 10,603 | 348 | function outpict = erraccumulate(inpict,varargin)
% ERRACCUMULATE(INPICT,OPTYPE,{OPTYE},{METHOD},{KEYS})
% Repeatedly perform selected processes on float and integer copies of an image
% then extract and stretch the difference. This is a lazy and overcomplicated way
% to turn images into complete garb... |
609bf25dca3f925936bddacadf09bdc16acaf8d6bcdb5f3d95fe15038009c746 | MATLAB | 10,614 | 213 | function detectSpikes(cfg, MuseStruct_micro, MuseStruct_macro, force, writeMuseMarker)
% This file is part of EpiCode, see
% http://www.github.com/stephenwhitmarsh/EpiCode for documentation and details.
%
% EpiCode is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Pu... |
3e1e5251cf674853b968ef21bd6e72a5f8dfbf810a3a6ac116c00d65bd47e80f | MATLAB | 10,622 | 246 | function preictal_project(ielec)
restoredefaultpath
if ispc
addpath (genpath('\\l2export\iss02.charpier\analyses\vn_preictal\scripts\EpiCode\shared'))
addpath (genpath('\\l2export\iss02.charpier\analyses\vn_preictal\scripts\EpiCode\external'))
addpath (genpath('\\l2export\iss02.charpier\analyses\vn_preicta... |
2e65e6677968de39eb7d342fce17ac7040e241c894904945f0c5bd730f0a14b0 | MATLAB | 10,625 | 226 | function [stats] = spikeTrialDensity(cfg, SpikeTrials, force)
% SPIKERATESTATSEVENTS calculates spike statistics
%
% use as
% [stats] = spikeTrialDensity(cfg, SpikeTrials, force)
% or, if need to only load precomputed data :
% [stats] = spikeTrialDensity(cfg)
%
% This file is part of EpiCode, see
% http://www.git... |
bb3b757545ba82f9101019a9887550c609b9a35aa0cfdc3ef1aa7946d1306216 | MATLAB | 10,643 | 303 | function EEG = natview_eeg_preprocess_pipeline(fileNameSET,outputDir,saveIntermediates,options)
%% PURPOSE: This script preprocesses EEG data using EEGLAB functions
% Simultaneously EEG and fMRI data was collected for the
% NATVIEW_EEGFMRI dataset in a Siemens TrioTim 3T MRI scanner and
% ... |
497608308a62fbc6b387b786ea26a84fb37a2edb1c6e35dbf26095cc40091448 | MATLAB | 10,660 | 230 | function [stats] = spikePSTH(cfg, SpikeTrials, force, LFP)
% SPIKERATESTATSEVENTS calculates spike statistics
%
% use as
% [stats] = spikeTrialDensity(cfg, SpikeTrials, force)
% or, if need to only load precomputed data :
% [stats] = spikeTrialDensity(cfg)
%
% cfg.spike.psthbin.(markername) : bin size of the psth... |
27e13c5084a83edfe1fc0e29f737628e206213b139ecce4d7ad17c3c5018dbb0 | MATLAB | 10,664 | 290 | %% demo_002 fields of the options struct - Which options can one set?
% This demo explains all fields of the options struct, e.g. which options
% you can set for the fitting process as a user.
% to have some data we use the data from demo_001
data = [...
0.0010, 45.0000, 90.0000;...
0.0015, 50.0000, ... |
6d42f8cd398eb97cccd550b829c73e34f3c83b529a40fde998dd67a368463d9d | MATLAB | 10,667 | 365 | function [p,data]=nt_dataview(data,p)
%[p,data]=nt_dataview(data,p) - view data sets
%
%
% DATA: matrix, struct, file or directory to view
% P: parameter structure
%
%
VERBOSE=1;
if nargin < 1;
% look for file in entire machine
[p,data]=nt_dataview('/');
return
end
if nargin < 2; p=[]; end
if isempt... |
44dd4305d38486bfe99d66ddc55d4b2f7341329394e76bb5965a5fd9b5ab58bb | MATLAB | 10,670 | 386 | function [W] = mc_undist_loop_test(V)
nx=V.nx;
ny=V.ny;
tim1=V.im1';
tim2=V.im2';
b00_best=0;
b01_best=0;
b02_best=0;
b10_best=0;
b11_best=0;
b20_best=0;
adj01_best = 0;
adj02_best = 0;
adj10_best = 0;
adj11_best = 0;
adj20_best = 0;
mask_V = V.tmask' > 0;
tim1_mask = tim1(mask_V);
[X,Y] = meshgrid(1:nx,1:ny);... |
cbe056983295311ee5f7d0890471d76830a22fa84b8254ca07767aeb3eeff00e | MATLAB | 10,675 | 328 | function simulate_data(filename,expType,obsType,levelType,N,sigmoidName)
% this function simulates data and saves it to a file
% function simulate_data(filename,expType,obsType,levelType,N,iSigmoidGen,iSigmoidFit)
% the function is based on the simulation functions for the paper
addpath('..')
warning('off','psignifit:... |
edc0244a79c6ba9ed0716ed341e1a436544e465a81080d518f9a18f890ae0a10 | MATLAB | 10,678 | 236 | function [SpikeWaveforms] = readSpikeWaveforms(cfg, SpikeRaw, force)
% [SpikeWaveforms] = readSpikeWaveforms(cfg, SpikeTrials, force, parts_to_read)
% Cut continuous data into trials for each spike sample.
%
% ### Necessary input
% cfg.name = label(s) of the analysis
% cfg.prefix ... |
60175b3814952f7a66ad7809b9f05677c60b12edfe04fb71e87718571549adf7 | MATLAB | 10,725 | 297 | % =========================================================================
% Title: Electrophysiology Regression & Longitudinal Modeling
%
% Author: Gabriele Mancini
% Date: 2025-12-10
%
% Description:
% Supplementary analysis pipeline focusing on single-feature regression
% and group-specific prediction effects. Th... |
db362069a9102cd41bd698cb85523e8ce24a65175d8b0ad1ac6dd4409991bb15 | MATLAB | 10,726 | 341 | function gifwrite(varargin)
% GIFWRITE(INARRAY, {DISPOSALMETHOD}, FILEPATH, {DELAY}, {WRITEMETHOD}, {LOOPCOUNT}, {DITHER})
% GIFWRITE(INARRAY, MAP, {TRANSPARENTIDX}, {DISPOSALMETHOD}, FILEPATH, {DELAY}, {WRITEMETHOD}, {LOOPCOUNT})
% Write image stack to an animated gif
%
% INARRAY: 4-D image array
%... |
65f17a06b78ea204546713cb1e0fd469b6b50d1fca61442bdff32d3ec646923a | MATLAB | 10,771 | 213 |
%% Section A: Load data
clear, clc, close all
load('Table_297_subjs_demographics_biomarkers_2024_05_03.mat')
n_subjs = size(T_subjects, 1);
% (Loop below is a no-op; kept for context)
for s = 1:n_subjs
subj = T_subjects.Subject_ID{s};
end
%% Create table with demographic and CSF variables
T = tabl... |
3d4415a2de9e15c5e9ec142a3a0d0d75bc7e0908f9d31daeff4725c4e5873634 | MATLAB | 10,818 | 250 | % DTX sedated rats, EEG analysis
%% Set parameters
if ispc
addpath \\lexport\iss01.charpier\analyses\lgi1\Git-Paul\fieldtrip;
addpath \\lexport\iss01.charpier\analyses\lgi1\Git-Paul\EpiCode\development
addpath (genpath('\\lexport\iss01.charpier\analyses\lgi1\Git-Paul\EpiCode\projects\dtx'));
addpath (g... |
4953a2b5bdaeb90c7e0c9cea71d62ae0db97ec7f8e326ab4c57aba431f1f9245 | MATLAB | 10,832 | 318 | function varargout = peakfinder(x0, sel, thresh, extrema, includeEndpoints, interpolate)
%PEAKFINDER Noise tolerant fast peak finding algorithm
% INPUTS:
% x0 - A real vector from the maxima will be found (required)
% sel - The amount above surrounding data for a peak to be,
% identified (defaul... |
5ce6001038979ec2f73a4bf184f2d4680d82cedcae3a846b5d1f13c5e1b73add | MATLAB | 10,856 | 312 | clear
close
diagram_path = './../Systems/Pyramid_astro_exp_decay/diagram/';
diagram_name = 'diagram';
%% FIG. 8
fig = figure;
tlo = tiledlayout(17,1,'TileSpacing','compact');
lwd = 0.4;
c1 = load(strcat(diagram_path, 'experiment1Bfinal.mat'));
t = c1.t;
[par_Is,par_Id,par_gsd,par_gCa,par_p,par_rIP,par... |
c0424681f976a63085b24fe76ff51e82f73ed223d932e0dfb8f027a5c3be5eed | MATLAB | 10,861 | 166 | function [dat_micro, dat_macro] = readLFP(cfg,MuseStruct_micro,MuseStruct_macro,force)
%% Make overview of data as segmented by markers aligned to (first) peak
fname = fullfile(cfg.datasavedir,[cfg.prefix,'data_aligned.mat']);
if exist(fname,'file') && force == false
fprintf('************************************... |
d7571048671757f43d5612b5708bbc83fa85c26b5133f26f259c9d77c04522b7 | MATLAB | 10,861 | 214 | function cfg = writeSpykingCircus(cfg, MuseStruct, force, varargin)
if isempty(varargin)
write = true;
else
write = varargin{1};
end
fname_output = fullfile(cfg.datasavedir,[cfg.prefix,'SpykingCircus_trialinfo.mat']);
if exist(fname_output,'file') && force == false
fprintf('Loading trialinfo: %s \n',fnam... |
eba09d72057e84591e9b9929a83acb43800ececbcba0d49f131ade997e01ce63 | MATLAB | 10,863 | 359 | function varargout = spm_cpm_fcn_direct(P, M, U, varargin)
% Directly estimates response for a given input function.
%
% D - Degrees of visual angle used as units
% C - Constrained PRF width
%
% -------------------------------------------------------------------------
% FORMAT [y,Z] = spm_pr... |
87580012aad4a36590c83f15aeb5a1377d9dfd3a92e72f1afea0f9c762fa45be | MATLAB | 10,888 | 336 | function [y,yy]=nt_inpaint(x,w)
%function y=nt_inpaint(x,w) - weighted interpolation based on correlation structure
%
% y: interpolated data (only over w==0, a la STAR)
% yy: interpolated data (all times, a la SNS)
%
% x: data matrix
% w: weight vector or matrix
%
%
% Noisetools.
nt_greetings;
PCA_THRESH=10^-15;
... |
ef37d63af432971cb724f93ed9a4159380e1c57bd84623ae0eef0f4bb56c9995 | MATLAB | 10,918 | 194 | function [SpikeWaveforms] = readSpikeWaveforms(cfg, SpikeRaw, force)
% [SpikeWaveforms] = readSpikeWaveforms(cfg, SpikeTrials, force, parts_to_read)
% Cut continuous data into trials for each spike sample.
%
% ### Necessary input
% cfg.name = label(s) of the analysis
% cfg.prefix ... |
ed56aeefb1e0293a2454801bf6be63b49e9a4a3cc7a99d53d9d5bbcf1ab7dd9e | MATLAB | 10,920 | 167 | function [dat_micro, dat_macro] = readEEG(cfg,MuseStruct_micro,MuseStruct_macro,force)
%% Make overview of data as segmented by markers aligned to (first) peak
fname = fullfile(cfg.datasavedir,[cfg.prefix,'data_aligned.mat']);
if exist(fname,'file') && force == false
fprintf('************************************... |
116ef0e98d5fe8f9e801de6e474e2883a9b60ad43b7e4661ccb8ad658004fcb3 | MATLAB | 10,922 | 274 | function plot_beta_roi_topography()
% PLOT_BETA_ROI_TOPOGRAPHY
%
% This script computes and plots scalp topographies of beta-band ERD, ERS,
% and peak-to-peak (ERS - ERD) for broad frontal, left and right ROIs
% for selected subjects and conditions.
%
% It was used as an exploratory tool to identify channels showing ma... |
52d7a8c9de0be8396c5533f2f5afa4f03371da872b1c2bf58c71f51e4eb4a149 | MATLAB | 10,927 | 269 | %APCLUSTER Affinity Propagation Clustering (Frey/Dueck, Science 2007)
% [idx,netsim,dpsim,expref]=APCLUSTER(s,p) clusters data, using a set
% of real-valued pairwise data point similarities as input. Clusters
% are each represented by a cluster center data point (the "exemplar").
% The method is iterative and search... |
b919c2ec1b2f1237942caaad1edd431d91f586c981466305293e2309f523e155 | MATLAB | 10,940 | 255 | function spiketriggeredplots(cfg,dat_microFs,SpikeTrials,SpikeRaw)
%% read data on high-Fs
for ichan = 1 : size(cfg.fnames_ncs,2)
cfgtemp = [];
cfgtemp.dataset = cfg.fnames_ncs{ichan};
dat_microFs_all{ichan} = ft_preprocessing(cfgtemp);
end
dat_microFs_all_concatinated = ft_appenddata([],dat_microFs_all... |
5d0d4f3763c785d90b3a014fa5104e61ae2035698557e06a0c0a62860f8e5d6a | MATLAB | 10,978 | 392 | function [] = mc_undist_wouter2(edir)
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
home;
fprintf('Motion Compensation Undistortion: ''mc_undist_wouter2.m''\n');
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
seq=100101;
% % seq=110111;
% % seq=111111;
options... |
7eb52c21f7e15ec491d98c5cec6048b6821ed81d4cd3f0180c10e0bf47a839c3 | MATLAB | 11,000 | 218 | function [SpikeRaw, SpikeTrials] = readSpykingCircusPSG(cfg,MuseStruct,force,varargin)
% READSPYKINGCIRCUSPSG reads Spyking-Circus results: spike-times and templates.
%
% use as
% [SpikeRaw, SpikeTrials] = readSpykingCircusPSG(cfg,MuseStruct,force,varargin)
%
% Necessary input:
% cfg.prefix = prefix to ou... |
c12397f45fb1a68259dab5db809b5f337b3055d16a5d511d0dd52b98a0b6b64f | MATLAB | 11,006 | 168 | function plot_PSTH_stats(cfg, psth_data)
nrows = 1;
for ipart = 1 : size(psth_data, 2)
for markername = string(fields(psth_data{ipart}.psth))'
nrows = max([nrows, size(psth_data{ipart}.stat.(markername), 2)]);
end
end
for ipart = 1 : size(psth_data, 2)
ncols = numel(fieldnames(psth_data{ipar... |
aae157c905511958bd8fc6ae0687acb0ed8149459d6364fea96635a372f278df | MATLAB | 11,009 | 297 | function mov_localizer(subjID)
%% Version: Nov 25, 2015
%__________________________________________________________________________
%
% This script will localize theory-of-mind network areas and pain matrix
% areas by contrasting activation during scenes in which characters are
% engaging in mentalizing (mental) and a... |
c7e2aea4eec37823578d52d6de4f126028d9c0a8be5f00ab62367cf5170df0d0 | MATLAB | 11,025 | 319 | % EXTRA EXAMPLES
% depending on your filesystem, your pwd and where you stick this script,
% you may need to change the path strings used for input/output.
% some of these may be configured for viewing on an inverted display
% if something looks inverted, just check the call to imshow() or imshow2()
% as i am likely... |
4efcb52ffb1224cdabebecb57e91433f350cb6fe3b585d304ced72744b6e3600 | MATLAB | 11,130 | 199 | function [stats] = plot_spikestats_preictal(cfg, stats, spikedata)
% field added to stats for outputs : isi, waveform measurments, descriptive
% stats of the firing for all the windows of stats
% Mandatory input :
% Optional inputs
cfg.spikewaveforms = ft_getopt(cfg, 'spikewaveforms', []);
cfg.statstime ... |
7e5adca7049b9164d3d30d4a7c98f09c8cefef22b7685e731c75186401b316f5 | MATLAB | 11,214 | 238 | % constrainedSmoothResample Generate a n-by-d-by-nSamples matrix R of random numbers sampled from
% a data distribution D of size n-by-d, preserving the column mean and
% covariance structure D^T D.
%
% Inputs
% ========
% D : n-by-d ma... |
de732e4ff7b58ef73191ccaf2e361bcefe245b6364d5f6cadfcaba614c134944 | MATLAB | 11,250 | 290 | function [As_across_bins,As_across_bins_index,assembly,Assemblies_all_orders]=CADopti(spM,MaxLags,BinSizes,ref_lag,alph,No_th,O_th,bytelimit)
% this function returns cell assemblies detected in spM spike matrix binned
% at a temporal resolution specified in 'BinSizes' vector and testing for all
% lags between '-MaxLa... |
37fbc62a65ba6ac2436f9f8cecf6a4c20e8c23f0f25c5db4efe399ae572b23d4 | MATLAB | 11,293 | 325 | function out = randisum(rrange,s,sz,varargin)
% A = RANDISUM(RANGE,S,OUTSIZE,{DISTRIBUTION},{VARIANCE})
% Generate an array of random integers with a specified sum.
%
% RANGE is the range of allowed output values, [RMIN RMAX]
% If specified as a scalar, it will be interpreted as RMIN, and RMAX will be NaN.
% ... |
db4d709c046bcf689b2573ac5120813a78b0763bc7087c97fcfa68a95fb8a7f7 | MATLAB | 11,304 | 175 | function [config] = wod_setparams
disp('setting parameters');
if ismac
error('Platform not supported')
elseif isunix
rootpath_analysis = '/network/lustre/iss01/charpier/analyses/wod';
rootpath_data = '/network/lustre/iss01/charpier/raw/rat-iso/DATA_Antoine/Extra_Neuralynx';
os ... |
d3f623084a9945f71242a2d94f2c8548dcc31dc5faa2a9720db99f3bbcdbd6c2 | MATLAB | 11,305 | 213 | function [dat, dat_avg] = stats_unit_behaviour(cfg, force)
set(groot,'defaultAxesTickLabelInterpreter','none');
hyplabels = ["REM", "AWAKE", "PHASE_1", "PHASE_2", "PHASE_3"];
fname_out = fullfile(cfg{1}.datasavedir, 'stats_unit_behaviour.mat');
%% load data
if force == false && exist(fname_out, 'file')
load(... |
47428ba73b89ac323c41f5d782c440d93db605589260752550163d78c95b4c58 | MATLAB | 11,320 | 266 | %% Paths %%
saveDir = '.'; % Set the path where the output should be saved to
installGraFT
%% Loading data %%
% Neurofinder data was cropped and processed using the GUI, but original
% files can be downloaded using the following public repository links from
% OSF.io.
u... |
1e954c887ded7433823b613cc68eba362e821222df0c47af7dd1413c27413c93 | MATLAB | 11,338 | 238 | classdef RandomConnectomeTestVisualizer
methods (Static)
function [hAx,hPl] = plotRandomTestCorrelations(nullBatchRunner,options)
arguments
nullBatchRunner NullModelAnalysisBatchRunner
options.ParentAxes = [];
options.StdErrorBar = "off"; % or "on... |
cf285e4c557fbbaeb8d119f878a3f54f23466b1bf3e76ddc7688b1bb70be60b6 | MATLAB | 11,377 | 354 | %% main script to analyze spatial remapping of place cells between two contexts
% all discrimination session
workdir_d = ["F:\Included miniscope Mice\M119\TrainingD11\" "F:\Included miniscope Mice\M120\TrainingD11\" "F:\Included miniscope Mice\M292\TrainingD6\" "F:\Included miniscope Mice\M319\TrainingD7\" "D:\G... |
5be286288e5bcec51612aba1916497cebd3f157e024175f8fb7000fdc520f4f0 | MATLAB | 11,443 | 340 | function [x0,y0,iout,jout] = intersections(x1,y1,x2,y2,robust)
%INTERSECTIONS Intersections of curves.
% Computes the (x,y) locations where two curves intersect. The curves
% can be broken with NaNs or have vertical segments.
%
% Example:
% [X0,Y0] = intersections(X1,Y1,X2,Y2,ROBUST);
%
% where X1 and Y1 are equ... |
90e343434b44aa50e360a41dca761d30ceee686d86dc3ee5cf00773350c0f30a | MATLAB | 11,503 | 248 | function [SpikeRaw, SpikeTrials] = readSpykingCircus_alldata(cfg)
fname = fullfile(cfg.datasavedir,'all_data_spikedata_concatinated.mat');
if exist(fname,'file') && cfg.force == false
load(fname,'SpikeRaw','SpikeTrials');
else
%% use spiking circus output
% find spiking-circus path
temp ... |
20a9985f72044a71b91aff10d6017c06d8ce0effc8ff6a9a652c39b8382c2ea5 | MATLAB | 11,593 | 247 | function [SpikeTrials] = readSpikeTrials_windowed(cfg, MuseStruct, SpikeRaw, force)
% [SpikeTrials] = readSpikeTrials_windowed(cfg, MuseStruct, SpikeRaw, force)
% Make a Fieldtrip spike trials structure based on equal overlapping
% windows.
%
% ### Necessary input:
% cfg.prefix = prefix to output files
% cf... |
951cff538a378792fd2602860ee6c1e9275acb5ebf50c26bc36f8d28f29ee99d | MATLAB | 11,655 | 123 | function [or_data outliers info] = apply_peirce(orig_data)
% Apply_peirce implements outlier rejection using Peirce's method as laid out by
% Stephen M. Ross, Journal of Engineering Technology, Fall 2003. Original
% method is designed for normally distributed observations.
%
% Output:
% or_data: outlier_rejected... |
f8af0be85472fea46980498e78614cd8ee3b59235f0e19ff41c559df2416689f | MATLAB | 11,666 | 206 | function [MuseStruct_micro, MuseStruct_macro] = readMuseMarkers(cfg,force)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% function readMuseMarkers
%
% Crawls and searches through patient- and recording-directories to
% extracts marker timings (time and samples) created by Muse. These ca... |
6ed1caab27ab34e3be5642dd35ff0036dc5333520815fb6f30432e748b9ae739 | MATLAB | 11,669 | 211 | function dat = plotGrandAverageWindowedModel(cfg, force)
set(groot,'defaultAxesTickLabelInterpreter','none');
hyplabels = ["REM", "AWAKE", "PHASE_1", "PHASE_2", "PHASE_3"];
fname_out = fullfile(cfg{1}.datasavedir, 'AllDataCombined.mat');
%% load data
if force == false && exist(fname_out, 'file')
load(fname_o... |
34d777a1af829caee2fa66aa5279be3b0a6235307e796dbc1389241e347d3e81 | MATLAB | 11,673 | 225 | function [S, tau_mat] = dictionaryRWL1SF(mov, D, corr_kern, params, S, varargin)
% [S,tau_mat] = dictionaryRWL1SF(mov, D, corr_kern, params, S)
%
% This function performs a mixture of 3-D Stochastic filtering that can
% take out Poisson or Gaussian noise.
%
% 2015 - Adam Charles, Gal Mishne
%%%%%%%%%%%%%%%%%%%%%%%%... |
7c7b97798b91be81a4b1563b118d3b98af371b779317e063c73d9c691a41d04d | MATLAB | 11,700 | 210 | function dat = stats_unit_behaviour(cfg, force)
set(groot,'defaultAxesTickLabelInterpreter','none');
hyplabels = ["REM", "AWAKE", "PHASE_1", "PHASE_2", "PHASE_3"];
fname_out = fullfile(cfg{1}.datasavedir, 'stats_unit_behaviour.mat');
%% load data
if force == false && exist(fname_out, 'file')
load(fname_out, ... |
e3f4ae764b4b4782a22ff33f657633f1cc0719b319b56d9287ca6391c3f32cda | MATLAB | 11,725 | 357 | function [w,y]=nt_outliers(x,w,thresh,niter)
%[w,y]=nt_outliers(x,w,thresh,niter) - detect outliers based on weighted correlation structure
%
% w: weights (indicates outliers)
% y: interpolated data
%
% x: data matrix
% w: initial weights
% thresh: threshold for declaring an outlier [default: 2]
% niter: number ... |
ffe5b819728beab8d0993633ed22fa0db35dac6bb326070ee2788871ac89ec32 | MATLAB | 11,772 | 386 | %% NARPS Mixed Gambles Protocol (more info in README.md)
%% Modified for IBC by Himanshu Aggarwal - April-May 2021
%% Email - himanshu.aggarwal@inria.fr
%%
%function protocol(sub_id,run_number,inputDevice,experimenter_device,Scan)
clear all; %%%NEW
Screen('Preference', 'SkipSyncTests', 1);
Screen('Preference', 'Visua... |
e42fe589f5c2910416d6505839981a1e2835b558adc3e76a71c41e983623f62c | MATLAB | 11,782 | 314 | function grangerLFP(suffix)
% LFP COHERENCE - Compute LFP-LFP coherence for given time and
% frequency values.
%
% CDH - added this so it does nothing.
% return
% Read parameters
Params = read_params(suffix);
freq = Params.freq_start_1 : Params.freq_step_1 : Params.freq_end_1;
... |
a507471187e43a26ebc85e1decaee8d829f1619835f39c83c042a50be9a48985 | MATLAB | 11,787 | 323 | %
% BDP BrainSuite Diffusion Pipeline
%
% Copyright (C) 2019 The Regents of the University of California and
% the University of Southern California
%
% Created by Chitresh Bhushan, Divya Varadarajan, Justin P. Haldar, Anand A. Joshi,
% David W. Shattuck, and Richard M. Leahy
%
% This program is free sof... |
e6d4fe7a1078f34d10f5259dd9d80bd96aa4dfd68ea43b64efdf4d2d7084b584 | MATLAB | 11,822 | 233 | function [allData] = get_experimenter_tables(save_path, settings)
%%% Generate result tables for each experimenter for a given brain slice - V2 (MGG) %%%%
% Define ROI names
roi_names = settings.roi_names;
roi_no = settings.roi_no;
cell_categories = settings.cell_categories;
%% Load and concatenate animal ... |
901b5bf6fedef76dd576ad8de42b98584df23dce24886050716835a0b396247b | MATLAB | 11,855 | 280 | %% VM stimulation analysis
% @author: speressotti
% ====> CHECK IF AB PARAMETER IS ACTIVE <=== %
%%
clc;
close all;
clear all;
%% Analysis folder
analysis_folder = '/Users/sofiaperessotti/Docs/VMstm_Matlab/Analysis';
addpath(genpath(analysis_folder));
%% Root data folder
base_folder = '/Users/sofiape... |
356f78127f33723242a32ca169aa1b7dfe6c6545f11b0c683ab755f9dbbe75b8 | MATLAB | 11,884 | 308 | function plotGroups(values, members, groups, memberName, groupName, bar_pCorr, plotTitle, ylabelStr, plotStyle, parent, showVarNames, markerSize, barType, barCenter, barBottom, barTop, plotLines, sortValues, groupSize, Outliers, connectPoints)
nArgs = 21;
if nargin < nArgs
connectPoints = false;
end
if nargin < ... |
41606787be27090d098cb2828816b6317e248726ba168730a19e6b0c0911d110 | MATLAB | 11,898 | 342 | function [valueRange, xCenters, yCenters, colorBars] = draw(varargin)
% DRAW Draw a histogram using image(), with the expected y-axis
% orientation (small values at the bottom), and normalizing the bin
% contents to fit within a 256 colormap range.
%
% The syntax is:
% draw(histo, [xCent... |
0110e55d10c957861b1929db1fba1d42288f71764e57bde214a0e50a2610f59f | MATLAB | 12,027 | 375 | function fk = fkgen(kstyle,varargin)
% FKERN=FKGEN(TYPE,{SIZE},{OPTIONS})
% Generate a filter kernel. This is similar to FSPECIAL with additional
% options and support for atypical filter types of questionable utility.
%
% TYPE is one of the following:
% -Blur filters:
% 'gaussian1' is a simple 1-D ga... |
35905d3237c3a5b1fb7c98af657a73638c2bf7c5a57189a654ef2d6a3e34fadb | MATLAB | 12,028 | 352 | %% script - main vector remap 2
%workdir_d = ["F:\Included miniscope Mice\M119\TrainingD11\" "F:\Included miniscope Mice\M120\TrainingD11\" "F:\Included miniscope Mice\M292\TrainingD6\" "F:\Included miniscope Mice\M319\TrainingD7\" "D:\Grouping First\M231\TrainingD9\" "D:\Grouping First\M314\Training_Separation... |
0f9028ea2e3a931ac9b31fdd004bfc0b181b643ba2847551366f39fbcc826c2c | MATLAB | 12,045 | 388 | %% NARPS Mixed Gambles Protocol (more info in README.md)
%% Modified for IBC by Himanshu Aggarwal - April-May 2021
%% Email - himanshu.aggarwal@inria.fr
%%
%function protocol(sub_id,run_number,inputDevice,experimenter_device,Scan)
clear all; %%%NEW
Screen('Preference', 'SkipSyncTests', 1);
Screen('Preference', 'Visua... |
a17e634425328a9af581dda2342744cc0cada228c7e6ad41153049dcd93cc5ad | MATLAB | 12,076 | 411 | % function [] = mc_undist_wouter2_20120524(fname_epi, fname_mask)
%
% - fname_epi: file filter for epi files, like
% /data/local/DIR/Monkey/session/*_epi*.nii
% Loops over all files that match fname_epi
%
% - fname_mask: file filter for the mask, like
% /data/local/DIR/Monkey/session/*_msk.nii
% Takes the first file t... |
7ca4d6c123522a0e6285ad30c79001a8f02c6a0f105f5fc8011d91bfcf6ab544 | MATLAB | 12,140 | 412 | % function [] = mc_undist_wouter2_20120524(fname_epi, fname_mask)
%
% - fname_epi: file filter for epi files, like
% /data/local/DIR/Monkey/session/*_epi*.nii
% Loops over all files that match fname_epi
%
% - fname_mask: file filter for the mask, like
% /data/local/DIR/Monkey/session/*_msk.nii
% Takes the first file t... |
dffb4f8cce742330893461d7009d9bf6ce82fb6b691e47404f06a44b084cf711 | MATLAB | 12,147 | 214 | function [stats] = preictal_plot_spikestats(cfg, stats, spikedata)
% field added to stats for outputs : isi, waveform measurments, descriptive
% stats of the firing for all the windows of stats
% need plot_morpho.m to plot spike morphologie and compute halfwidth,
% peak-trough and trough-peak
% the field cfg.plot.toi... |
96ac7523adff52da26591609bfd0f0f8d9b83c5484aaed5226b8cc1401885246 | MATLAB | 12,278 | 347 | function Ok = InstallMex(SourceFile, varargin)
% INSTALLMEX - Compile and install Mex file
% The C, C++ or FORTRAN mex file is compiled and additional installation
% routines are started. Advanced users can call MEX() manually instead, but some
% beginners are overwhelmed by instructions for a compilation sometimes.
% ... |
515f99a8e2536b911125a5fa8ab5c5e0f54e64f4088998681cc79e4e251cf0f8 | MATLAB | 12,362 | 219 | function [SpikeRaw, SpikeTrials] = readSpykingCircus(cfg,MuseStruct,force,varargin)
% READSPYKINGCIRCUS reads Spyking-Circus results: spike-times and templates.
%
% use as
% [SpikeRaw, SpikeTrials] = readSpykingCircus(cfg,MuseStruct,force,varargin)
%
% Necessary input:
% cfg.prefix = prefix to output files
... |
6f3024cc1f09f2d6e347bbad48c9cb56df96639e8ab362fe4c17352243cfe41d | MATLAB | 12,390 | 306 | %% demo_006 additonal functionality
% This demo shows some convenience functions we added, which are not
% directly used for the final fitting of psychometric functions.
% We will need some fitted function for illustration. Thus we first fit our
% standard data from demo_001.m again:
data = [...
0.0010, 45.0... |
03902f7974aab07a0137698b78d2702bf4dc291afeedfb3730d0693a1dcbba6e | MATLAB | 12,428 | 396 | function varargout = spm_cpm_fcn_gaussian(P, M, U, varargin)
% Gaussian cognitive field model, with eucldiean coordinates and hard
% constraints. Supports n-dimensional parameter spaces, where the field for
% each parameter has a location and width parameter.
%
% mu_xx - Degrees of visual angle used... |
8e10b8c0c88511379577158f45a87272f44b8d829a6fcf0e18ea3a1d425db639 | MATLAB | 12,453 | 301 | function [SpikeRaw, SpikeTrials] = readSpykingCircus_selected(cfg,MuseStruct)
addpath /network/lustre/iss01/charpier/stephen.whitmarsh/WhitmarshEpilepsy
addpath /network/lustre/iss01/charpier/stephen.whitmarsh/fieldtrip/
addpath /network/lustre/iss01/charpier/stephen.whitmarsh/WhitmarshEpilepsy/mlib6/
ft_defaults
%% ... |
da0a10b74a0a8456a2d2e1783b66913df95df196fd5b37eb8a62f844bafb989b | MATLAB | 12,523 | 240 | function [cfg] = writeSpykingCircus(cfg, force)
% WRITESPYKINGCIRCUS writes a concatinated data file for SpykingCircus and
% sampleinfo is returned for later (cutting results back up)
%
% use as
% writeSpykingCircus(cfg, MuseStruct, force, varargin)
%
% third argument "force" is to force recalculation of samplinfo -... |
218833feb4ee7ff3273a5f9ef89130203b1852ae0d06dc3f5abb9a351351162f | MATLAB | 12,532 | 283 | clear;clc;close all;
% 所有被试的总文件夹,注意修改,Flight或者airTraffic
dir_base = '\Flight';
% 在被试总文件夹下创建group_glm2文件夹,用于汇总结果
mkdir([dir_base, filesep, 'group_glm2'])
GLM = 1;%是否做一阶分析并提取感兴趣区域信号值,不用改,1表示要做,0表示不做false
specify_DCM = 1;%是否构建spDCM模型,spm中单状态,none等之前界面点的
estimate_DCM = 1;%是否评估spDCM模型,做的是spDCM就改为... |
90195091481ae39a6bb49f2829a093a0cd248b4a265ce32f70ab06ebf05c136c | MATLAB | 12,535 | 242 | function [cfg] = writeSpykingCircus(cfg, force)
% WRITESPYKINGCIRCUS writes a concatinated data file for SpykingCircus and
% sampleinfo is returned for later (cutting results back up)
%
% use as
% writeSpykingCircus(cfg, MuseStruct, force, varargin)
%
% third argument "force" is to force recalculation of samplinfo -... |
884c4bce37a66b422697bb50f6519e793a889bd5d3e193b6baf7f962f04c0a4f | MATLAB | 12,568 | 203 | function [stats] = spikeTrialStats(cfg, SpikeTrials, force, postfix)
% SPIKERATESTATSEVENTS calculates and plots spike statistics
%
% use as
% [stats] = spikeTrialStats(cfg, SpikeTrials, force, postfix)
%
% This file is part of EpiCode, see
% http://www.github.com/stephenwhitmarsh/EpiCode for documentation and deta... |
a8bf69025c6f99812763ab66cadb6b8b8f18bbb4762e221edd4da46f53350d9e | MATLAB | 12,676 | 283 | function [SpikeTrials] = readSpikeTrials_windowed(cfg, MuseStruct, SpikeRaw, force)
% [SpikeTrials] = readSpikeTrials_MuseMarkers(cfg, MuseStruct, SpikeRaw, force)
% Make a Fieldtrip spike trials structure based on equal overlapping
% windows.
%
% ### Necessary input:
% cfg.prefix = prefix to output files
%... |
76375d583c61dc4fa423a54352dbb6dcdeb030d2c6654282cc30d790d44333fe | MATLAB | 12,803 | 311 | %PARAMETERS
% nodestdThresh. This is the standard deviation threshold for exclusion of
% skeleton nodes based on prePeriod activity
nodestdThresh = 1;
%set filepath
filePath = cd(uigetdir);
%find files matching expression 'normalizedSkeleton'
fileList = dir('*normalizedSkeleton*');
numFiles=length(fileList);
%Declare ... |
35c35e2d64503647c0b6e783c5b8305c4c37aa44c7c410c923ac983ee8546715 | MATLAB | 12,843 | 345 | function outpict = adapthisteqFB(inpict,varargin)
% OUTPICT=ADAPTHISTEQFB(INPICT,{OPTIONS})
% Adjust the contrast of an image using a contrast-limited adaptive histogram equalization (CLAHE)
% technique, such that it has a specified intensity distribution. Instead of adjusting the entire
% image based on glo... |
00bb8768111a16fcd59cfefd10cfab9b0473022839680e234b78a6687330b50b | MATLAB | 12,849 | 283 | %%
%**************************************************************************
%
% accumulate_volume collects blocks of [ADC, N_coils] acquisitions.
% input: bucket of data from AcquisitionAccumulateTriggerGadget
% when no trigger dimension is specified => full volume.
% header: header stru... |
2b8ad395326d5baeb7a65cef488cb8ac5e05a166413a0ffb1847d0343a0a0d5c | MATLAB | 12,900 | 354 | % main_makeAllFigures.m
set(groot, 'DefaultAxesFontName', 'Arial');
set(groot, 'DefaultTextFontName', 'Arial');
colorList = orderedcolors("gem");
%% Directory
cd(strcat(projectRoot,"/results/figures"));
dt = datetime('now','Format','yyyyMMdd_HHmmss');
dtstr = string(dt);
mkdir(dtstr)
cd(dtstr)
%% Make Object
FM = FigM... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.