sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
d16027ab9a31675871312f207503c5dc1463eace8e31852b25d03316d2b7c9a2 | MATLAB | 2,564 | 57 | function firDesignMat = converTaskTimingToFIRDesignMat(taskDesignMat,firLag)
%Taku Ito (02/19/2018)
%Takes in a timepoint x task regressor matrix (task design matrix filled with 1s and 0s), and returns a design matrix for FIR regression
%
%PARAMETERS:
%
%taskDesignMat - timepoint x t... |
6361372e81297cd6a28b56071f37db3f1839cd2e0a94a1137394350866d0b87c | MATLAB | 2,565 | 66 | % *************************************************************************
% * Test program for calculating popular phase related quantities, i.e. *
% * Phase Shift (PS), Phase Lock (PL), Phase Reset (PR) and Instantaneous *
% * Frequency (IF) in SINGLE-Channel mode. Refer to the User Guide for *
% * further deta... |
f1d44f86947e9f0cc7b5f52b5371dfa596a0355efac47cab193104f08010b49b | MATLAB | 2,565 | 47 | %-----------------------------------------------------------------------
% Job PART2
% spm SPM - SPM12 (7771)
% cfg_basicio BasicIO - Unknown
%-----------------------------------------------------------------------
%%
matlabbatch{1}.spm.spatial.preproc.channel.vols = {
XXX_1_XXX
... |
a868ea87fe6695747be6dfa24d052c4fa5d3fbfaf2548702da02acfd18205fb1 | MATLAB | 2,566 | 89 | [cols,alpha] = chooseColors;
this_cols{1} = cols(3,:); % t2xy vs. t2y
this_cols{2} = cols(4,:); % t2xy vs. t1x
td_accs = td_accs(:,[2 1],:);
%% plot mean acc over time for using all 5 dims
% custom plot of CIs. color CIs and make violin gray
temp_mean = [];
for config = 1:2
dc_means = cellfun(@(x) squeeze(mean(x... |
ef149907fe268813d9cc71163472b09fa1be974d5dd552f8b40aab65b1e383da | MATLAB | 2,569 | 107 | clear
clc
close all
load('D:\Data\LSM\Preprocessed\Clean\Waves\Sleep\P15_Sleep_NightPre_Welch.mat')
Data = EEG.data;
SampleRate = EEG.srate;
WelchWindowLength = 4;
WelchOverlap = 0.5;
SmoothSpan = 2;
% calculate power
% [EpochPower, Frequencies] = oscip.compute_power_on_epochs(Data, ...
% SampleRate, EpochLength... |
7bad330830c0f22e1eb9c4c242e58f58472ca8fcffb6bca5a7df04ed993a4b6b | MATLAB | 2,570 | 92 | function [x_SAVE, y_SAVE, eb_SAVE] = entiresessionPlotFormatV2(DataAVG,Dts,varnamesDATA,setupParam,TrialParam,allTrials)
% Setup group info (if there are groups)
allTrialsID = allTrials.ID;
if setupParam.CompareGroups == 1
% GroupParam = TrialParam.GroupParam;
groupnames1 = fieldnames(allTrialsID);
group... |
652e85292de5dec4f65fcac2c05412f46838b04846db0f3ea2467c2d959cc5c3 | MATLAB | 2,571 | 63 | function densities(h,data)
%% Draw energy density and volume density per hyperstructure, in bar plot
% autocorrelatemap() and crosscorrelatemaps() depend on this function.
load('structures','groups');
t = {'Normalized Energy Density','Normalized Volume Density'};
no = length(data.exp_id); % Number of experiments... |
fcd8d9a1c1e07bd57af1107154b2bfefe0605af6a8381617760364493ffb5e68 | MATLAB | 2,572 | 94 | function [d,A] = kshortestpaths(L,K,source,target,trim)
%% Calculate K shortest paths (KSPs) in a graph using Yen's algorithm.
% https://en.wikipedia.org/wiki/Yen%27s_algorithm
%
% [d,A] = kshortestpaths(L,K,source,target)
%
% Input:
% L: length matrix (e.g. dot inverse of adjacency matrix, uni- or
% bilatera... |
31e1450e6baba2271cdbae5c1b724b63554c1ed196ad26785e773cc00339f84c | MATLAB | 2,574 | 101 | function [binary threshold globalcosteffmax costmax ef]=threshold_global_cost_efficiency_bu(w,th)
%define the threshold in a a network as the max value of global cost efficiency versus cost
%adopted from Bassett & Bullmore Cognitive fitness of COST EFFICIENCT BRAIN
%FUNCTIONAL NETWORKS PNAS, 2009
%needs efficie... |
9f08fa58cb42aeabb81025f50f0d4f73414be6a2c735abca1c40b27e60f4203b | MATLAB | 2,577 | 65 | function ap = absPath(pathname, basedir)
%ABSPATH Get the absolute path of pathname (file or directory)
% Returns empty str if pathname can't be found
if nargin < 2 || ~exist(basedir, 'dir')
basedir = pwd();
elseif ~isAbsPath(basedir)
basedir = fullfile(pwd(), basedir);
end
if... |
24bd1dbd5d58d2e41322e71c24278808257c20df2bc77e0d76714928104fa8d3 | MATLAB | 2,578 | 76 | function [spikes] = readTfile(filepath) %[header, spikes] = readTfile('C:\CheetahData\2008-11-6_18-7-10\Sc7_SS_01.t')
% slCharacterEncoding('US-ASCII')
% slCharacterEncoding('Shift_JIS')
% filepath='C:\Users\kit\Desktop\2008-9-25_20-28-25\Sc1_SS_01.t';
% filepath='C:\Users\kit\Documents\MATLABoriginal\Sc2_03.t';
... |
7b7af524c0b1512e6c32096ff91cd38fb51021b1cbf1755833abbff3b655d5c9 | MATLAB | 2,578 | 91 |
if (ispc)
kDatasetFolder = 'C:/Users/sergeyd/Workspaces/SVHN/data';
else
kDatasetFolder = '/media/sergeyd/OS/Users/sergeyd/Workspaces/SVHN/data';
end;
%load(fullfile(kDatasetFolder, 'svhn.mat'), 'TrainX');
%ds = TrainX;
%load(fullfile(kDatasetFolder, 'svhn.mat'), 'TestX');
%ds = TestX;
t = 3;
if (t == 1)
... |
01471a146eb3a8cc71f35fe63bdacf8802642fbd8e882320d4b0ad45222e2098 | MATLAB | 2,579 | 106 | % Copyright (c) 2008-2026 the MRtrix3 contributors.
%
% This Source Code Form is subject to the terms of the Mozilla Public
% License, v. 2.0. If a copy of the MPL was not distributed with this
% file, You can obtain one at http://mozilla.org/MPL/2.0/.
%
% Covered Software is provided under this License on an "as is"
%... |
01ce44b64613af3eb83cc4c20713d3d4cb83065034ff0637d3f3ced5d0c6e9d7 | MATLAB | 2,579 | 40 | constants;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Vehicles - same growth GompExp
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Model_vehicle1.model = @(param, time, resection_time) model_burden_nb_PT(... % param: mu, alpha, beta
[param(... |
735768ad6d50eb2689dffb137dab82af1e597b8863d76cc13cfbeb16ebe3c7fc | MATLAB | 2,579 | 77 | function [ lfp_threshold ] = ripple_detection_determine_threshold( amp_st_cell, rm_duration )
% Usage:
% [ lfp_threshold ] = ripple_detection_determine_thrashold( amp_st_cell, rm_duration )
% Input:
% amp_st_cell amp_st in ripple_detection_preprocess return value in cell array
% rm_duration Period of... |
467fcb1c9d967c9e4364013908cc433bd4cb549e563f2f4edeb2d9e9aecd66c7 | MATLAB | 2,580 | 58 | function MakeMultimerProb20160526
%½èÅ100000ñÆ©½ÊÌärðµÄA»ÌyAªðìém¦ðZo·éí@
% %züÌû@@C
% %ÝF¯ÌñÅwè·éêAC=0A×EyA ½èÌñðMatchingÅwèB
% %ðwè·éêAC=1A{ÍConnectionsÅwèB½dÓð·×ÄJEg·éB
% %×EÌð... |
b09cef1a3452512604309ef4d1c26b0778d1726b3f64860ace19b465c6dfea97 | MATLAB | 2,582 | 70 | % Copyright 2024 Eelke Spaak, Donders Institute.
% See https://github.com/Spaak/rift-phase-and-visibility for readme/license.
% Belongs with:
% Spaak, E., Bouwkamp, F. G., & de Lange, F. P. (2024). Perceptual foundation and extension
% to phase tagging for rapid invisible frequency tagging (RIFT). Imaging Neuroscie... |
ba308fd6e372471bd73e3d3090a9fea6eb829834dcfa90f75f213a77d04f47b6 | MATLAB | 2,584 | 84 | close all
clc
clear
results = load('J:\ECGData\Arrhythmia\AllDataSmootherResultsArrhythmia01_Backup.txt');
snr_list = 30 : -3: -12;
snr = results(:, 7);
snr0 = results(:, 8);
snrimp1 = results(:, 9);
snrimp2 = results(:, 10);
snrimp3 = results(:, 11);
optparam = results(:, 12);
snrimp1_mean = zeros(1, length(snr_lis... |
179501bdb37a57bb68c9396cdab799b546f42932051f75edc38de86bf44bafa2 | MATLAB | 2,586 | 54 | function arr = Rect_Scan(im,Step_Parameters,Parameters1);
% 1---------2
% | | ------>
% 4---------3
% Step_Parameters.Step_Coordinates is the rotation origin coordinates (x,y).
% a is angle of the vector (in degrees). The rotation will be around this angle.
% All the variables are in degrees or micrometers.
... |
e3c2f06628c567a21458301345ecab850720a9fd3e73d51ae19b30bc99a66532 | MATLAB | 2,588 | 73 | function davg = spmup_comp_dist2surf(anat,c1,c2)
% Compute the average surface to the brain. Will return a default value of
% 50 mm if this fails.
%
% Adapted from motion finger print functions and script (mw_mfp.m) from Marko Wilke
% https://www.medizin.uni-tuebingen.de/kinder/en/research/neuroimaging/software/
% see... |
7f820c29ac120811324f853e01d2c465b5501bf210becd07f3a94732715ec72d | MATLAB | 2,592 | 115 | function fi=change_exam_number(fi)
cur_suj_name = fi(1).sujet_name;
ns=1;
exa = fi(1).examnumber;
exanum = str2num(exa(2));
fi(1).examnumber='E1N1';
fi(1).sujet_name(1:19)='';
for k=2:length(fi)
exa = fi(k).examnumber;
exanum = str2num(exa(2));
if strcmp(fi(k).sujet_name,cur_suj_name)
ns=ns+1;
... |
76a545d69ea33e8923e916d998ffaff1accaba088f581b3a7bbb5a53211f899a | MATLAB | 2,594 | 62 |
function [P_observ_cond_to_state,P_observ_cond_to_state_comp] = gmm_pdf( P_all , mu_all , sigma_all , observations_time_series , state_numbers , dimension_numbers_index , num_gmm_component )
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%this function work for diogonal covariance matrices
%%%%%%... |
980f7d35027cb9dded57cf06c1752d5f466cc3e0f36f582ec7221476e30e3159 | MATLAB | 2,600 | 66 | function [e, n] = adaptive_filter_multi_lag(x, mindelay, maxdelay, taps, mu)
% adaptive_filter_multi_lag - Adaptive Noise-Canceller/Line-Enhancer with variable delay line length.
%
% Syntax: [e, n] = adaptive_filter_multi_lag(x, mindelay, maxdelay, taps, mu)
%
% Inputs:
% x: Input signal.
% mindelay: Minimum... |
c7ce1b60daaf64b53484bad7f41a7fe9e9635439bb8ce69da3a77e487aa816c1 | MATLAB | 2,603 | 74 | function [LengthThresh]=mnl_EvaluateFragmentsColourConsistency5(FragmentValues,ColourConsistencyThreshold)
% Attempt to explore how consistent the colour is for a trace.
%
%Inputs
% FragmentValues - Structure created by mnl_SplitTracesIntoFragments
%
%Outputs
% LengthThresh - The length at which the colour is sufficien... |
e59be11c812f01e48e2c1366fc3f2c4b648362f0827085d51bbfe480453a5a09 | MATLAB | 2,604 | 59 | function [rewYes, rewNo, lickNew] = extractRewardedTrials(rewDelivery, lick, varargin)
%Extract index for rewarded and non-rewarded trials based on whether animal
%licked within specified window
%
% [rewYes, rewNo, lickNew] = extractRewardedTrials(rewDelivery, lick)
% [rewYes, rewNo, lickNew] = extractRewarded... |
3ddf7a442f9df0d1e0c23e70e5b7128c97b343267e92fc9156e8e3d12f5e200c | MATLAB | 2,605 | 64 | % Matlab function that is applying the QT detector over signals retrieved
% in CSV form and saves the results in CSV as well.
clear all; close all; clc
%------------------------
%method = 'WaveFilt'
% method = 'GPFiltPrio'
method = 'GPFiltPost'
%------------------------
% Read the GP filtered signals from the csv fil... |
406ae3fae9c976c18dc2ed1316eb818bde3714316274b7becf183c54323e91c9 | MATLAB | 2,605 | 127 | function [y1handle, y2handle, h] = fill_between(x, y1, y2, where, varargin)
% function originally written by Ben Vincent, July 2014. Inspired by a
% function of the same name available in the Matplotlib Python library.
% Save current axes so it can't change during runtime
ca = gca;
% Check hold status so we can retur... |
15fa8eac72429376d30db28b698b78f2b16db16c269944ac4c39aafeb10665b1 | MATLAB | 2,606 | 42 | function Categories_Filter_Lables(GUI_Parameters)
if(GUI_Parameters.General.View_Category_Type == 2) % Vertices plot.
Vertices_Angles_Strings = {'[1,1,1.5]' ; '[1,1,2]' ; '[1.5,1.5,2]' ; '[2,2,2.5]' ; '[2,2,3]' ; '[2,3,3]' ; '[2,3,3.5]' ; ...
'[2,3,4]' ; '[2,3.5,4]' ; '[2,4,4]' ; '[3,3,4]' ; '[3,3.5,4]'... |
1978c5dce9ce7f7a04bcd4554828aacb76d48f5d375eca3b9a537d4b233e02c4 | MATLAB | 2,606 | 79 | function perturb_hopf_syncbynode_UWS(node)
load Modelling_Workspace_UWS.mat
P2emp=nanmean(P2emp);
PERTURB=0:0.01:0.2; %% This is synchronisation protocol
we= 0.04; %% Insert here G value from optimal UWS model fitting
ITER=10;
N=214;
a=-0.02*ones(N,2);
C=squeeze(Coptim(find(abs(WE-we)<0.0001),:,:));
... |
201b7de0d7c3d076becce1867a0b206bcd834ed1fd258f6db31fd93b31889ffb | MATLAB | 2,606 | 91 | function rr = rrprocess(n, hrmean, lfhfratio, hrstd, sfrr, flo, fhi, flostd, fhistd)
% rr = rrprocess(n, hrmean, lfhfratio, hrstd, sfrr, flo, fhi, flostd, fhistd);
% N: approximate number of heart beats [256]
% hrmean: Mean heart rate [60 beats per minute]
% hrstd: Standard deviation of heart rate [1 beat per minut... |
dd80aec3a2cc0ef78689987c4ff1d5d83c5e2d1a2925789c62f838eed296ff8d | MATLAB | 2,606 | 73 | % Copyright 2024 Eelke Spaak, Donders Institute.
% See https://github.com/Spaak/rift-phase-and-visibility for readme/license.
% Belongs with:
% Spaak, E., Bouwkamp, F. G., & de Lange, F. P. (2024). Perceptual foundation and extension
% to phase tagging for rapid invisible frequency tagging (RIFT). Imaging Neuroscience,... |
79e94f75a59513a56fbe4a35901a6427202c50e3c2e35f9ec15954477c75212a | MATLAB | 2,608 | 117 | % Sample code for active noise cancellation
%
% Reza Sameni (C)
% Email: rsameni@shirazu.ac.ir
% Web: www.sameni.info
%
% Created October 2004
% Modified June 2018
clear;
close all;
clc
% audio signals
% load SampleSpeech10kHz
% fs = 10000; % Sampling rate of speeches (s1 and s2) is 10kHz.
% fetal E... |
307a4618c79a959af33a7294bf12ecdc7590991f7b58c4892a6fc62ce471bddf | MATLAB | 2,609 | 59 | % Sample code for two stage matched filter peak detector and rule based
% correction
%
% Fahimeh Jamshidian Tehrani
% Email: jamshidian.t@cse.shirazu.ac.ir, fahimeh.jt@gmaill.com
%
% Created March 2018
%
% Open Source ECG Toolbox, version 1.0, November 2006
% Released under the GNU General Public License
% Copyright (C... |
0665699cc30fbc14e319dd82bed7aa4f47ac478f1f382a66fc776477f4561aa9 | MATLAB | 2,610 | 95 | function [meanPerf, semPerf, pCorrect, cond, meanError, semError, confMatrix, Mdl_out] = doLDA(dataStruct, options)
%% input args
% datastruct is of format: struct(icondition).data(time,unit,trial)
%%
nConds = numel(dataStruct);
nTrials = size(dataStruct(1).data,3);
if options.kfold>=nTrials
options.kfold=nTria... |
2d7cf6e14f768682b24017638f20f3ec449445fb6c41da7f5d5ec0dc30e038a3 | MATLAB | 2,613 | 116 | clear all
% this script contains code to reproduce Figure S7a-c, note that data for
% reproduction of Figure S7c is saved in S3 Data
%% load data
% drag and drop corresponding file (S8 Data)
%% data content description
% D contains the region acronyms
% I_anes contains segemented data from anesthetized... |
b42f843d8f6086dfb105adda292a4ad1b567ad16f7fc5973accbcb183b818568 | MATLAB | 2,613 | 68 | %% Function to create Venn diagrams for 2 Conditions
% For change in cell activity
% For active or inactive in conditoins
% Input
% R_Condition Cell of Raster Matrices
% Names of Conditions: Experimental Conditions Cell String
% UI asks for pair of conditions : CTRL vs EXP
% Output
% Set of Nuerons according... |
932f5917910a30cbb53129567337cd400145d6a4487c1f30119a7eb78e57df0a | MATLAB | 2,614 | 64 | % Script to Process Calcium Fluorescence Signals (CSV records)
% It detects Calcium Transients from CSV data of a single slice (EXPERIMENT)
% Input (same directory):
% Coordinates:
% ALL (XY).csv Coordinates from 4th row x,y,r
% or
% ROIs (ImageJ file)
% Fluorescence Data:
% CONDITION_A.csv
% ...
% ... |
af4aa63776b141b0e5eb794883b38f13b556a3536b4aa5202e79e2d37a7f9855 | MATLAB | 2,615 | 54 | function GoStop20190322
global StartTime FinishTime fname SpikeUnits TurnMarkerTime OneTurnTime RPegTouchAll LPegTouchAll DrinkOnArray dpath3...
MedPegTimeR MedPegTimeL RpegTimeArray LpegTimeArray RpegTouchall LpegTouchall WaterOnArrayOriginal WaterOffArrayOriginal...
RpegTimeArray LpegTimeArray DrName UnitDataUnite... |
0f9b623820c76b8f1d9038a1638cfd95642260fe0fb9b436a5545a9bc0fe4fd0 | MATLAB | 2,617 | 72 | function entropy_res = entropy_analysis(app)
%entropy_analysis Summary of this function goes here
% Detailed explanation goes here
channel_idx = find(strcmp(app.popup_entropy_signal.Value,app.popup_signal_spect.Items));
[data,ts,name, unit] = current_signal(app, channel_idx);
data(:,2) = ts(1):ts(1):ts(2);
tmp =fi... |
718fcbbe54999d4bf492f016120152dd304160f614f8f8e3a01b9a6560a30248 | MATLAB | 2,617 | 82 | %% compare magnitude vector
clear
clc
[file1, path] = uigetfile('all_magnitude_vector.mat');
cd(path)
dataset1 = load(file1);
dataset1 = dataset1.all_magnitude_vector;
[file2, path] = uigetfile('all_magnitude_vector.mat');
cd(path)
dataset2 = load(file2);
dataset2 = dataset2.all_magnitude_vector;
win_n... |
df6f92151391c66fa749fd621120a12cbb764dad107fdfe322c8064b673ac95e | MATLAB | 2,617 | 56 | function spikeData = extractFeatures(obj, spikeData)
%EXTRACTFEATURES Extract features from filtered spike traces
if obj.hCfg.useGPU
S = gpuDevice();
end
obj.hCfg.updateLog('extractFeatures', 'Extracting features', 1, 0);
if obj.hCfg.nPeaksFeatures >= 1
% try to compute in GPU iff ... |
3d967a37f98793d0d22b47a35f1b9051d9b738b455fe345dfc9afe6794282f3e | MATLAB | 2,621 | 84 | function Stats = hedgesG(Data1, Data2, StatsP)
% Data1 and Data2 are P x m x n matrices resulting in m x n stats matrices
% with Hedge's g m x n matrix and confidence intervals m x n x 2. If only
% Data1 is provided, then it should be a P x m matrix, and g values will be
% calculated for every pairwise comparison
Dims... |
040f39f0f6bc5f8c6fc8543125235c79ffb9fa0dc8b06ae36e196788a0957522 | MATLAB | 2,622 | 86 | % plot clusters from all data file WITH IR
clear
clc
ploting =1 ;
window = 2; %(on, sus, off)
sus_window = 650:1250;
nd2reduce= [9;7;5];
%%
[file, path] = uigetfile('*.mat','MultiSelect','on');%When the user clicks the load psetion button, a window should open to enable the user to select a file.
cd(path)
datafile = f... |
8dcdfc02fdcbb98517e7def0e2f505a3d4c8a0b2817e62fd8093785c50c62999 | MATLAB | 2,622 | 55 | % This is a simple script which runs the control endocardial model for 100
% beats and plots membrane potential and calcium transient.
%% Setting parameters
clear
% Param is the structure of model parameters that the user may wish to
% change compared to default simulation. The full list is given in the
% function O... |
578e002c310852db988c64ee1edd764d806e7841c8efd402b6600119a923018c | MATLAB | 2,623 | 55 | function GUI_Parameters_General = Update_Categories_Filter_Values(GUI_Parameters_General,ColorMap)
% This function generates a column vector of the values and labels of the current selected categories.
C = get(GUI_Parameters_General.Categories_Filter_Handles,'Value');
if(GUI_Parameters_General.View_Category_Type... |
f095b4ee18a6271ca1d73431c154a72f7a5f6974a605e06a56a82102918b6e2f | MATLAB | 2,625 | 57 | clear
close all
clc
N = 10000; % number of noise ensembles
M = 10; % number of samples in each random sampling batch
sigma = 1.0; % the true noise std
x = sigma * randn(1, N); % the noise ensembles with the selected STD
Itr = 100; % number of times to randomly sample from the large random sample set
nvar_est_ML = z... |
49247f5c9b2b3e86bdc725e2c1e9b9dbdc09ef81584d709ef0e1c64a64dce5ef | MATLAB | 2,628 | 82 | % Dsol0 is in units of uM
% Dmem0, Rclus0 and Rdilute0 are in units of /um2!
% Length scale h is in units of um (e.g. 0.001um)
% time is in s it is either [T0 Tfinal] or an array of time pts.
%
% k in units of uM(-1)s(-1)
%kb in s(-1)
%VAratio is units of um
%Add in a reaction where dynamin within the cluster rec... |
132e9f587031224672f10a1a8027c1917f56d5a7df31a9c2d216fa4882a788a8 | MATLAB | 2,629 | 74 | function file_path_out = convert_mat_file(file_path_in)
dot_idx = find (char(file_path_in)=='.',1,'last');
file_path_out = [file_path_in(1:dot_idx-1) '_tmp.mat' ];
file_in = load(file_path_in);
file_meta.n_records = size(file_in.datastart,2);
file_meta.n_channels = size(file_in.datastart,1);
file_version = 1;
for i = ... |
43052f9f9fa24aba8d4e048e83a127324e013ca7377b78765faa67bf40299414 | MATLAB | 2,632 | 39 | clear
cd D:\Canada_2020\CLSA
clsa_base=readtable('D:\Canada_2020\CLSA\data\clsa_dru_bl_cog1.csv');
clsa_snps=readtable('D:\Canada_2020\CLSA\data\CLSA_dosage.csv');
clsa_snps(:,'ADM_GWAS3') = [];clsa_snps(30098:end,:) = [];
clsa_base.CCC_HEART_COM(clsa_base.CCC_HEART_COM>3)=NaN;clsa_base.CCC_HBP_COM(clsa_base.CCC_HBP_C... |
83ace21ea8ee2b935bfee88aac3441dd3de3aa1517d1f750297d31bec259f9b7 | MATLAB | 2,633 | 66 | %% Plot percentage change in light-evoked firing rate across clusters
clc
clear
cd 'I:\My Drive\ELYASHIV\PFC_paper_results_after_revision\effect size\f5'
PFC=readtable('magnitude_index_PFC.csv');
PHb=readtable('magnitude_index_PHb.csv');
PFC_m=100.*(PFC{:,2}); % percentage of firing rate change in th... |
e265305d44c01e907e0f1d2282aa0a99e4afb60e0480664469b1376ca5ef70c8 | MATLAB | 2,633 | 66 | function [ av_trials,err_trials,trans_data,trans_data_err,err_trials_full,trans_data_dr,tone_idx] = prepare_data_task_subspaces(p, traces, evs, bvs, tis, speed_control)
%% calc scale factors per subject
for sub = 1:p.nSubjects
all_tr = cat(2,traces{sub,:});
vars(sub) = nanstd(all_tr(:));
e... |
78a85f85d32f3b066efdb167138bd5cb50bccb7ab37ed79a36c8c0b770565171 | MATLAB | 2,635 | 67 | function [spikeTimes, spikeAmps, spikeSites] = detectPeaks(samplesIn, siteThresh, keepMe, hCfg)
%DETECTPEAKS Detect peaks for each site
samplesIn = jrclust.utils.tryGpuArray(samplesIn, hCfg.useGPU);
nSites = size(samplesIn, 2);
[spikesBySite, ampsBySite] = deal(cell(nSites, 1));
hCfg.updateLog('de... |
831f283a39e62ea160dd4ef3ccfe0b0787d64ee7c7175b8de83fc568d6a3368c | MATLAB | 2,635 | 94 | function [peaks, peak_indexes] = peak_det_simple(x, ff, flag, varargin)
%
% peak_det_simple - A basic R-peak detector
%
% Syntax: [peaks, peak_indexes] = peak_det_simple(x, ff, flag, omit_close_peaks)
%
% Inputs:
% x: Vector of input data
% ff: Approximate ECG beat-rate in Hertz normalized by the sampli... |
c47cb63435d854cced48c703928c33b1383914275788596f3bb2869c7f6da187 | MATLAB | 2,636 | 62 | function plot_arrows_text_met(AX, resection_time, max_time)
if ~exist('max_time', 'var')
max_time = Inf;
end
font = 18;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Arrows on top of the plots
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
create_blank_sp... |
eb64f1d8831fc18e78492a96826144ab9f69fc049b16f97d3724d547f959031c | MATLAB | 2,639 | 120 | function [out, eig1] = ir_nufft_dpswf1(varargin)
%function [out, eig1] = ir_nufft_dpswf1(varargin)
%|
%| Compute discrete prolate spheroidal wave function (DPSWF) in 1D
%|
%| required
%| 'J' # of filter taps
%| 'N' signal length
%|
%| optional
%| 'K' over-sampled FFT length (default: 2*N)
%| 'M' midpoint (default N if... |
fcd6b3b7317ceb09fc158c5e3c18234deac6d51a4a144f8a552a0beaa8ebdeef | MATLAB | 2,639 | 77 | clear all
close all
clc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Load data and build models
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
import_data;
build_models_met_PT;
i_remove = [1:6, 34:55, 133:170];
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
2628f3f676d083a9334686c1a1f217bd2582ea25fbd40394583e6e4af8b62ea6 | MATLAB | 2,640 | 32 | for i=1:68
%Outcome=(thicknessFS(:,15) + thicknessFS(:,49))/2; % 6 40 entorhinal %15 49 hippo %28 62 sup front % Outcome=AD_ordered.x4282_2_0;
Outcome=thicknessFS(:,i);Outcome=clean(Outcome, 4);
ix= AD_ordered.eid==0 | ~strcmp(ancestries_ordered.pop,'EUR'); %isnan(whitebritish_ordered)|
T=table(APOE, PHQ2, age... |
27253e21f2f1abdf86670d345b9cbc19bc87369c10ec63d39314c137059cf9dd | MATLAB | 2,642 | 69 | % *************************************************************************
% * Test program for calculating popular phase related quantities, i.e. *
% * Phase Shift (PS), Phase Lock (PL), Phase Reset (PR), Phase Difference *
% * (PD) and Phase Difference Derivatives (PDV) in MULTI-Channel mode. *
% * Refer to the... |
9dd231ca3595ff91ed6110e81c991f05bc8c0ae5997791a574ebeaa443ea1a49 | MATLAB | 2,642 | 91 | function [tr,wave,intensity] = loadSpectrometerFile(file)
labs = {
'Date: ',
'User: ',
'Spectrometer: ',
'Trigger mode: ',
'Integration Time (sec): ',
'Scans to average: ... |
58cface44543f6e3b1f4831cf1becc5eb868ce22a4d3cf0d8537c524ff5e4fff | MATLAB | 2,643 | 58 | % Function to get frames in waves that are above or below
% Standard Deviation of Noise
% Input
% xdenoised: denoised signal (smoothed)
% noise: noise array (xoriginal-xdenoised)
% Output
% Frames of Waves: Peaks (above noise) and Valleys (below noise)
function [LOWwavesFrames,ZeroCrosses] = getwavesframes(xdeno... |
43fad940597c8971d8e8c1989978d31901bc86110154b74426e2c48b7c897805 | MATLAB | 2,646 | 81 | function [design,censoring_regressors] = spmup_censoring(varargin)
% routine that computes robust outliers for each column of the data in
% and return a matrix of censsoring regressors (0s and a 1 per column)
%
% FORMAT [design,censoring_regressors] = spmup_censoring(realignemt.txt,data)
% [design,censoring_reg... |
67b51cd021a35c4478770575ca4f99a46951ec9d9de199b2ef02ee4180187f8d | MATLAB | 2,647 | 67 | function figuresize(w , h , u )
%FIGURESIZE Set a figure to a specific size
%
% When saving a figure as a PDF, it is necessary to set the
% figure size appropriately. This function sets the "paper size"
% sufficient that the figure is saved with a tight bounding box.
% It will also set the figure size on screen corresp... |
981f6fe1b3fa36b04004379bd9312ac4c7b3ada247dff0a1be09849a315f4aeb | MATLAB | 2,647 | 65 | % *************************************************************************
% * Test program for Instantaneous Phase estimation using the Transfer- *
% * Function Perturbation Phase estimation method (TFP) [2] through *
% * analytic representation, IIR filters and forward-backward filtering. *
% * Refer to th... |
de0f2a1ba41a4f83220d7a438ae8e20d71c08a6958c1da9efe9f25b46ba3f7de | MATLAB | 2,648 | 1 | function [Ty,diff,p,tcrit]=rst_yueneeg(a,b,percent,alpha)
% function [Ty,diff,p,tcrit]=yueneeg(a,b,percent,alpha)
%
% Computes Ty (Yuen's T statistic).
% Ty=(tma-tmb) / sqrt(da+db), where tma & tmb are trimmed means of a & b,
% and da & db are yuen's estimate of the standard errors of tma & tmb.
% Ty is distributed ap... |
846a0f5defd0ab65adf4004ac2d4585539d83ab92296d79b85fb2daebe2a428e | MATLAB | 2,651 | 95 | function h = phaseplot_ax(ax,x,y,phase,sz,varargin)
% Plots arrows indicating the phase on current axis.
%
% [h,yy,zz] = PhasePlot(x,y,phase,sz[,ArrowParameters])
%
%
%
% Note: Arrows will get skewed if you resize the axis.
%
% (c) Aslak Grinsted 2003-2014
% http://www.glaciology.net/wavelet-coherence
% --------------... |
816f3f310e1918581950bfd1cab46ab3cfa3d35545bfdf0eb2974353d72faf54 | MATLAB | 2,653 | 92 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%% This script is used to test whether the functions in this %%%%%%%%%%
%%%%%%%%%% package can run smoothly. %%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
7577998e2aac2d522e3b6ffc87ad6a881935b33e4f3eddaa2a8f2113484032f4 | MATLAB | 2,654 | 94 |
%% load data
clear
p = params_2DAA;
fpath = fullfile(p.processed_data_dir,'allData.mat');
load(fpath,'tis','bvs','traces','evs')
[cols,alpha] = chooseColors;
z_cutoff = 2;
%%
pad_pre = 25;
pad_post = 75;
profiles = {};
for sub = 1:11
tone_avs = [];
shuttle_avs = [];
for ce = 1:size(traces{sub,1},1)
... |
aba4de50d0fb83b255566a22aad2b8824c877313ca134e4d1db5d8e7629e640b | MATLAB | 2,654 | 71 | function [ mean_proj_a,mean_proj_e,dim_vars,dim_ves, d_primes ] = ...
analyze_dims_over_sessions(p,av_trials_all,err_trials_all,trans_data_all,trans_data_err_all,dims,q,trial_idx_ses)
n_dims = size(dims,2);
% analyze summary dims over sessions
% - calc mean projections for a and e per session
% - ... |
c8393c2b38b07e9bbb0c3918ac34792a1f453a58e6594b102cbd8dacb9bfd469 | MATLAB | 2,655 | 115 | function ob = fatrix2_horzcat(blocks, varargin)
%function ob = fatrix2_horzcat(blocks, [options])
%|
%| horzcat: B = [A1, A2, ...]
%|
%| in
%| blocks {cell} cell array of the (fatrix2) blocks
%|
%| option
%| 'dim_cat' dimension along which to concatenate idims
%| all other idims must match
%| default is ndim+1 if ... |
ee8e4849d77ba266173b43c2985d53908da7f3d6f36e148c1a001185de0ebded | MATLAB | 2,655 | 72 | function layers = calcweights(layers, passnum)
n = numel(layers);
batchsize = size(layers{1}.a, 4);
for l = 1 : n
if strcmp(layers{l}.type, 'n')
meander = layers{l}.d;
if (layers{l}.is_dev == 1)
meander = meander .* repmat(layers{l}.w(:, :, :, 2), [1 1 1 batchsize]);
stdevder = layers{l... |
0822364e8086fb3ce50a75883f97b24546fb40ace8c826d9ea63b9d22459ea07 | MATLAB | 2,656 | 107 | function [binary threshold globalcosteffmax costmax ef]=threshold_global_cost_efficiency_dir(w,th)
%define the threshold in a a network as the max value of global cost efficiency versus cost
%adopted from Bassett & Bullmore Cognitive fitness of COST EFFICIENCT BRAIN
%FUNCTIONAL NETWORKS PNAS, 2009
%needs effici... |
f32002ec3648b701d282907576da92ea9d23dd7828fab71441c219087d6deb1d | MATLAB | 2,658 | 75 | function y = notch_filter_cls(x, ff, gamma)
% notch_filter_cls - A constrained least squares notch filter
%
% Syntax: y = notch_filter_cls(x, ff, gamma)
%
% Inputs:
% x: input signal (channels x time)
% ff: mains frequency divided by the sampling frequency
% gamma: regularization factor
%
% Output:
% y: the den... |
8d48cd9bf0cd9ed9624bfee77b650457266de26fb110c1b97b151cbb97089443 | MATLAB | 2,663 | 105 | clear
clc
close all
data_struct = load('../../../../DataFiles/PhysioNetChallenges2023/Sample_files_new/BIDMC_updated/ICARE_0097_20000102_185034.mat');
% data_struct = load('../../../../DataFiles/PhysioNetChallenges2023/Sample_files_new/ULB_updated/ICARE_0066_20000101_211200.mat');
fs = data_struct.sampling_rate;
data... |
26f16d5b0598b789a320f99eae7b6466666f5fa4d3b1f2b7ba2d97de5d158fc2 | MATLAB | 2,664 | 77 | function keyPressFigProj(obj, ~, hEvent)
%KEYPRESSFIGPROJ Handle callbacks for keys pressed in feature view
if obj.isWorking
jrclust.utils.qMsgBox('An operation is in progress.');
return;
end
hFigProj = obj.hFigs('FigProj');
factor = 4^double(jrclust.utils.keyMod(hEvent, 'shift')); ... |
ab1d3443af934421d413e90e9e7d5b2c3a7dbec2b520a0e1296734d8e362cabc | MATLAB | 2,665 | 86 | clear
p = params_2DAA;
fpath = fullfile(p.processed_data_dir,'allData.mat');
load(fpath,'evs','tis','bvs','traces')
[cols,alpha] = chooseColors;
%% run DR and decoding procedure for different trial samples
fpath = fullfile(p.data_dir,'subspace_decomposition_one_subspace');
saveData = 1;
saveFigs = 1;
n_rep = 80; % ~25... |
dac855d7efcdbdba904dbf89d17aa9eea5c6325c0dc861e880ad06b0e95f84d1 | MATLAB | 2,665 | 86 | function hAxis = plotROI(gmSurfaceMesh,pathnameROI,varargin)
%This function plots an Array Designer ROI on the GM surface mesh
%
%############################### INPUTS ###################################
%
% gmSurfaceMesh = the gmSurfaceMesh
% structure directly
%
% pathnameROI ... |
0c08d2c00177f6f58b4b0069515df2ce8e2bb193c37077f85beecd51ce5bc476 | MATLAB | 2,666 | 99 | % Create Colormaps according to the number
% of conditions and ensembles in each condition
% Using CBREWER function, and some rules in the code for 7 connditions:
% Set1,Dark2,Accent,Set3,Set2,Pastel2,Pastel1
%
% Input
% NGroups: Cell of 1xN conditions and each elemente the scale of
% N Ensembles in... |
816bd83ca268078ccd4a102f3ff54d0cdf17145570d3ead6994e6f187a4dcf34 | MATLAB | 2,666 | 68 | % The purpose of this script is to reproduce all the results in the
% manuscript. Just click run and enjoy!
% Note: it's more preferable to run section by section, or your screen will
% be flooded. Don't say I didn't warn you :)
% You can directly run the scripts individually instead of using this
% automated ... |
31c8e6a67166f9187ee4bcce2c539aaa8463b3af61f90a26026cf74bc0f2343f | MATLAB | 2,667 | 86 | function [bound_coeff,vertex_coeff] = eq_diam_coeff(dim,N)
%EQ_DIAM_COEFF Coefficients of diameter bound and vertex diameter of EQ partition
%
%Syntax
% [bound_coeff,vertex_coeff] = eq_diam_coeff(dim,N);
%
%Description
% [BOUND_COEFF,VERTEX_COEFF] = EQ_DIAM_COEFF(dim,N) does the following:
% 1) uses the recursive zona... |
d258312894a9d2d47ea34eb388e7bb432f6fc51ab0ec312d5e8ebc18cc3055b7 | MATLAB | 2,670 | 77 | function [sqrl] = Holsclaw_Param_Vec(sqrl_old, st_ind, xDat, a, b)
%% This function is a Gibbs sampling step to sample new values for the log linear coefficients
%% in the Holsclaw et al. paper for sampling from heterogenous HMMs.
%% Inputs:
% Xi_old: The values of the Xi parameter for the previous iteration
% Z: Th... |
573de55319b3af3ab87dd4c33f187cb50f4d6102bc14c108f5b93b74eecc0e34 | MATLAB | 2,672 | 79 | function [sqrl] = Holsclaw_Param_Vec(sqrl_old, st_ind, xDat, a, b)
%% This function is a Gibbs sampling step to sample new values for the log linear coefficients
%% in the Holsclaw et al. paper for sampling from heterogenous HMMs.
%% Inputs:
% Xi_old: The values of the Xi parameter for the previous iteration
% Z: Th... |
034f5a7d3f465e28fbc5e35afd3985493a6bd1846f9e26d50c6944fa61d38702 | MATLAB | 2,673 | 56 | function data = processReward(data,params)
%Process Reward Delivery
%
% Usage:
% data = processReward(data,params);
%
% Description:
% This function will pull onset and offset times from reward
% experiments
%
% Input:
% data - TLab data structure
% params - A structure c... |
26f3d31c4ca50fd5fb118591b5684a066fbc80b96514437ae94b10fd869d683f | MATLAB | 2,677 | 121 | function plot_adjust_phase(action)
persistent fid1m info hdl
mean_line_broadening=0;
if isstruct(action)
hdl = [];
fid=action.fid;
info = action(1);
ns = size(fid,2);
fid1 = fid(:,1:ns);
fid1m = mean(fid1,2);
if (mean_line_broadening)
spec = info.spectrum;
t=[0:spec.dw:(spec.np-1)... |
77b78fd71a52c8f52d97ec71c27ac437517f178f44417a95e6f849c0879a0b2b | MATLAB | 2,677 | 67 | function [feature_vec, feature_info] = ecg_mean_phase_beat(data, r_peak_impulse_train, num_phase_beans, Flag_baseline_alignment)
% function [feature_vec, feature_info] = ecg_mean_phase_beat(data, r_peak_impulse_train, num_phase_beans, Flag_baseline_alignment)
% Extract features related to the morphology of the... |
c7694a24e043fd29974b079bd8e6e6313e77bfd8694b72afe7555c5f00332cae | MATLAB | 2,678 | 73 | %% save all_data files to breain render table
clc
clear
[file, path] = uigetfile('*.mat','MultiSelect','on');%When the user clicks the load psetion button, a window should open to enable the user to select a file.
cd(path)
datafile = fullfile(path, file); %save path
flip_ml = 1; %if to flip the ML axes (x);
midline = 5... |
702fb71b423b3b6c9d61982eef46068dfd11795feb02e90195bb307f66da214e | MATLAB | 2,680 | 67 | %Author: Tatjana Schmitt 2019-2023
function [boundaries, complete_boundaries_map] = borders_map(edges_turning_points_maps)
% smoothes coordinates and combines to one map
number_of_ones = zeros(1, size(edges_turning_points_maps,2));
for ii = 1:size(edges_turning_points_maps,2)
number_of_ones(1,ii) = sum(edges... |
443a7c88982760c8a143655470531aa3789c8716006b63bfc0120977e81d5beb | MATLAB | 2,681 | 79 |
function new_par = update_parameters(new_par, par, type,NaN_fill)
% This function overwrite or create fields from par in new_par. The fields
% used will be only the ones with type 'type' present in 'par'.
% new_par a struct() could be empty.
% par a struct() with parameters.
% type a string: 'detect' for parameters ... |
64c8cad9ab65e1f6932b5b5bd1448f06ce454026e939349310037d1f6222ca05 | MATLAB | 2,681 | 44 | cd('I:\My Drive\ELYASHIV\PFC_paper_results_after_revision\per_mouse\f6i')
clear
clc
x = importdata("all_ints_with_tags.mat");
%%
sp = split(x.file_name,["_R", "_L",'_r','_l']);
x.mouse = sp(:,1);
per_mouse_per_tag = grpstats(x,["mouse", "tag"],"mean",DataVars=["Is_reponsive","Is_reponsive_and_IR"]);
per_mous... |
09c000b253795bfec0f0d5d701bd805a1696a29e44ef86d98de7b25c73e1964a | MATLAB | 2,682 | 75 | %% Calcium Imaging Analysis Operator (manually select ROIs)
% CIAO_02b_selectROIs allows you add a manual selevtion regions of
% interest.
% We assume that there is a 03_Data_Processed folder within the main animal
% folder that contains a mat-file for each stimulus, the meta_info.mat
% file, and the img_segmentation.m... |
28785a859dda2164f79de49d629837ceb6a3fcc593b28d4dbf9786ed19ef3bad | MATLAB | 2,684 | 85 | classdef dat_wc_reader < handle
properties
sr
min_index
max_segments
raw_filename
sr_infile
t0_segments
max_index
segmentLength
spikes_file
end
methods
function obj = dat_wc_reader(par, raw_filename)
obj.sr = [];
... |
2eca43b22a1d42f1062c2452d2cee3508bce5f9f95f9e15ed333f496ec733e50 | MATLAB | 2,684 | 77 | %% save all_data files to breain render table
clc
clear
[file, path] = uigetfile('*.mat','MultiSelect','on');%When the user clicks the load psetion button, a window should open to enable the user to select a file.
cd(path)
datafile = fullfile(path, file); %save path
flip_ml = 1; %if to flip the ML axes (x);
midline = 5... |
3eb7c33e8451b314f27f9c10f394cea3c0723d8628fc0dc71245d7cc3fabb4f6 | MATLAB | 2,684 | 82 | function [maxTIMES1, maxTIMES2, maxTIMES1id, maxTIMES2id, maxAUC1, maxAUC2, maxAUC1st, maxAUC2nd] = peaksearchBOLDresponses(BOLDresponse1, BOLDresponse2, ROIname, timedur, stim)
% This program is intended to search location peak of the BOLD signal.
%
% input:
% BOLDresponse1
% BOLDresponse2
% ROIname
% resultp... |
a306494d505b3a73add20b125ab10642ebfc50004d7041cfe7002b3128fc022e | MATLAB | 2,685 | 82 | function [maxTIMES1, maxTIMES2, maxTIMES1id, maxTIMES2id, maxAUC1, maxAUC2, maxAUC1st, maxAUC2nd] = peaksearchBOLDresponses2(BOLDresponse1, BOLDresponse2, ROIname, timedur, stim)
% This program is intended to search location peak of the BOLD signal.
%
% input:
% BOLDresponse1
% BOLDresponse2
% ROIname
% result... |
126aca0c2ba440b606624a7924e73376aac7e31617ba4a2ca1069436d4f6b852 | MATLAB | 2,687 | 58 | %% Copy and MNI denoised functionals
%
% Script to take the output from FSL preprocessing pipeline and save
% MNI-space versions in a dedicated directory for further analysis.
% Re-samples voxels etc. to fit MNI mould, standard is 2mm voxels.
%
% -------------------------------------------------------------------------... |
e762c84f21a589f2e542fd1f9267c157cd9ebb25ca5d6fb602f52d862772870d | MATLAB | 2,688 | 77 | function [A, AA, B] = pica_matrices_double_peaks(x, peaks, peaks2)
% pica_matrices_double_peaks - Calculates covariance and lagged-covariance matrices
% required for the pseudo-periodic component analysis algorithm (PiCA).
%
% Usage:
% [A, AA, B] = pica_matrices_double_peaks(x, peaks, peaks2)
%
% Inputs:
%... |
918c801a0ec288bf4cb8e8fdeabddb3b6855a393549bece332b83cc2592136b0 | MATLAB | 2,689 | 79 | function sData = smooth_frequencies(Data, Frequencies, FrequencyDimention, SmoothSpan)
% smooth_frequencies(Data, Freqs, FreqDim, SmoothSpan)
% function for smoothing data by "smoothSpan".
% horrible mess, to fix once I figure out how
% for Lapse-Causes
Dims = size(Data);
if SmoothSpan == 0
sData = Data;
retu... |
cefdce958e75b2010859c50367e719b42003768f39987f9e0c31bf0c3ccb3a04 | MATLAB | 2,689 | 95 | % Copyright (c) 2008-2026 the MRtrix3 contributors.
%
% This Source Code Form is subject to the terms of the Mozilla Public
% License, v. 2.0. If a copy of the MPL was not distributed with this
% file, You can obtain one at http://mozilla.org/MPL/2.0/.
%
% Covered Software is provided under this License on an "as is"
%... |
1504a79fc209ab4d6b720e98544cadad1ab194d3fc5b1b12a2fb8c0d83297d64 | MATLAB | 2,690 | 85 | function hAxis = plotParcellation(pathnameHeadModel,parcellationNumber,varargin)
%This function plots a parcellation on the GM surface mesh
%
%############################### INPUTS ###################################
%
% pathnameHeadModel = the path of the HeadModel (contained in
% Arr... |
b882632ca72db226bbdfbffd21143d4532c7ed57d32bc27d300a1db37f9b5578 | MATLAB | 2,690 | 66 | function update_intervall_popup(app)
%update_intervall_popup updates the selection options for all popup menues
%for the selection of specific intervals. to be called after intervalls
%were edited
% Detailed explanation goes here
if ~isempty(app.burst_ints)
names = {'full'};
for i = 1 : length(app.burst_ints)... |
6ea9f0bad4175a42fce4485528b5e9ce1dd52f10ff240af5167ac32680b90079 | MATLAB | 2,691 | 91 | function Plot_Brains_SigResults(FS,A,FRP,nodes_name,coord_node,atlas,options)
atlas_name = options.atlas{atlas};
for n = 1:length(nodes_name)
Name = nodes_name(n);
NodeName(n,:) = string(Name);
end
% TO save data
cd '/netapp/vol7_u923/SEME/SEME_dc/pipeline/Corredoretal_MSCD_2023/Re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.