sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
1d4783cb400c72822796801036e422b6b431cb8019d52235577db5472503acfc | MATLAB | 6,703 | 209 | function varargout = testFilters(varargin)
% TESTFILTERS MATLAB code for testFilters.fig
% TESTFILTERS, by itself, creates a new TESTFILTERS or raises the existing
% singleton*.
%
% H = TESTFILTERS returns the handle to a new TESTFILTERS or the handle to
% the existing singleton*.
%
% TESTFILTE... |
437ca2cbfe6634fa2e86f475105f2e123445f6069744e2db23e7a8e374b9e70a | MATLAB | 6,706 | 176 |
%{
----------------------------------------------------------------------------
Determine the time window for task relevant neurons
%Start of task
%Sound on
%Sound off
%Before choice
%After choice (0sec)
%After choice (1sec)
%After choice (2sec)
%p = 0.001
%Each epoch, predict the prior, sensory and choice... |
4c465d4b8e721ae77a6aa8f4a08becf118c9c1a5bc226cd4fa1a9964ad660ac7 | MATLAB | 6,711 | 152 | figure(1)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Plot PT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
hold(AX(1), 'on')
hPTModel50 = plot(AX(1), temps_PT, PopPT50, 'b', 'Linewidth', 2);
hPTModel10 = plot(AX(1), temps_PT, PopPT10, '--b', 'Linewidth', ... |
5ca03baef7bfab54a880cd7f5f219b3c0dca80108cc38b1c5216abdc1b7ecb11 | MATLAB | 6,714 | 210 | function [in,extras] = processVarargin(in,v,varargin)
%processVarargin Processes varargin and overrides defaults
%
% Function to override default options.
%
% [in,extras] = sl.in.processVarargin(in,v,varargin)
%
% INPUTS
% =======================================================================
% in : ... |
7897a1983a9461139bfe1e555dff6654c3db91f23d7cacbe0db78f1cde4bb7e2 | MATLAB | 6,726 | 137 | % Test script for R-peak detection with peak_det_likelihood
close all
clear
clc
% Change this path to where you have the .mat data files
% Note: if needed, convert WFDB dat files in bash using this command:
% find ./*/ -type f -execdir wfdb2mat -r {} \;
datafilepath = '../../../../../DataFiles/Physionet.org/files/... |
1124b9bf09a353def7caed6d43a1a8d0bb6667a3b100d390b11f33765e3578c2 | MATLAB | 6,729 | 114 | %% NOTE: Add ambient, add synaptic failure, maybe change ref setup
%% Great Change here:
% Adding E-to-E synaptic delay for 1 ms
% EEDlyRcd is an N*T sparse matrix, each column record the number of
% pending kicks that is waiting, with T_i*dt ms remaining. Each raw record
% all the pending E kicks for one E neuron
... |
a99f1020e1527ee18d30127f0a8c940cd9e3590c2f82880c0021968285b9f444 | MATLAB | 6,736 | 188 | clear all
% this script contains code to reproduce Figure 2c-f, i-j
%% load data
% drag and drop corresponding file (S2 Data)
%% data content description
% open field contains the various behavioral measures from the open field
% foraging task and the corresponding animal id
% fe contains the normali... |
f9976fa25cd441ed9d6e43c33e7307b2700802e14034c7f4c4add5433a261ec5 | MATLAB | 6,736 | 146 | % ----------------------------------------------------------------------- %
% FUNCTION "customcolormap" defines a customized colobar given the %
% positions and the colors that are going to generate the gradients. %
% %
% Input parame... |
33919b65887f37ad59dea43b955617e1a301ba0ff1ba30a67f81af1ea7de9ab8 | MATLAB | 6,742 | 185 |
%{
----------------------------------------------------------------------------
Determine the time window for task relevant neurons
%Start of task
%Sound on
%Sound off
%Before choice
%After choice (0sec)
%After choice (1sec)
%After choice (2sec)
%p = 0.001
%Each epoch, predict the prior, sensory and choice... |
4d8c2443dc24fb7fb1fd52b73e9028488c53f6444e9b68bbf0146fd36c769f8a | MATLAB | 6,747 | 139 | % single cell simulation: to collect mean V (and firing rates)
function [mVLIF,FrLIF] = LIF1Pixel(Fr_MFinv, N_PreSynPix, L4SE,L4SI, L4CE,L4CI, L4IE,L4II,... %8
S_EE,S_EI,S_IE,S_II,p_EEFail,... %5
S_EL6,S_IL6,rL6E,rL6I,S_a... |
58870c2f7026b4b0ace243ab5aba765561ffd9f64eed09d56180cfef2333577d | MATLAB | 6,755 | 260 | % Collapse multiple single-scan NIFTI files into a multiple-scan NIFTI file
%
% Usage: collapse_nii_scan(scan_file_pattern, [collapsed_fileprefix], [scan_file_folder])
%
% Here, scan_file_pattern should look like: 'myscan_0*.img'
% If collapsed_fileprefix is omit, 'multi_scan' will be used
% If scan_file_folder is... |
1285bf20d7011b6077a7ef2f3f96ad20f5d3d03f172897620861fb4fa99e6aaf | MATLAB | 6,757 | 186 |
%{
----------------------------------------------------------------------------
Determine the time window for task relevant neurons
%Start of task
%Sound on
%Sound off
%Before choice
%After choice (0sec)
%After choice (1sec)
%After choice (2sec)
%p = 0.001
%Each epoch, predict the prior, sensory and choice... |
2f3de68ee82331eac5c6a7f8f2b8e7542d5442174b553fe699a3e39238435400 | MATLAB | 6,761 | 190 | function PaintBrodmannAreas_1view(data, ...
nr_ROIs_to_plot, nr_colors_to_plot, colour_range, cbar_label, colourbar_threshold)
% get labels from Arjans selection
mesh_type=[];
load('ROI_MNI_V4_List.mat','ROI');
ROI_indices = select_ROIs_from_full_AAL;
labels_temp = char(ROI.Nom_L);
labels = labels_temp(ROI_indices,... |
c68f20b018eacaa5a6f0f7ee71017d657bb7750888c10dd7e5279322fc7fff68 | MATLAB | 6,761 | 182 | %% Figure 1Aii & S1A
load(fullfile(pwd, 'stat', 'Figure1Aii.mat'))
figure
scatter(galvo_x_dist, galvo_x_raw,'o', 'k')
hold on
scatter(galvo_z_dist, galvo_z_raw,'o', 'r')
plot(galvo_x_dist_fit, galvo_x_fit,'Color', 'k')
plot(galvo_z_dist_fit, galvo_z_fit,'Color','r')
xlabel('Distance (um)')
ylabel('Intensity [A.U.]')
yl... |
47e08ef7f8c7e5cf3582ed7399c436f3693326f60b389ca622ac7f0951594571 | MATLAB | 6,772 | 171 | if ~exist('TxtCnd','var')
Experiment=Experiment(Experiment~='\'); % NAMES PATCH
%% Select Number of Analyzed Rasters ######
% NC = inputdlg('Enter Number of Analyzed Conditions:',...
% 'Conditions', [1 50]);
% NC= str2double(NC{:});
NC=numel(R_Condition);
TxtCnd{1,1}=['Experime... |
6a59b7aa00bd99cd97d92d557dd3306c34dba33ccfc34c3b5295610392a2db7c | MATLAB | 6,773 | 160 | %% Precomputing on Planes: Give input, compute firing rates as functions of inputs
% Output: save([SaveFolder 'MFpV_LDE_' num2str(InputCtgr) '.mat'],...
% 'f_EnIOut','meanVs','SteadyIndicate','FailureIndicate','L4ERcrd','L4IRcrd')
% Input: InputCtgr: Choices from 1-3. Orthogonal, suboptimal, optimal
%... |
37c6a5a72a79315da2c6c38b14aabdf88a8467f3cda1a0e943ab9af70db92c5f | MATLAB | 6,781 | 210 |
%{
----------------------------------------------------------------------------
Determine the time window for task relevant neurons
%Start of task
%Sound on
%Sound off
%Before choice
%After choice (0sec)
%After choice (1sec)
%After choice (2sec)
%p = 0.001
%Each epoch, predict the prior, sensory and choice... |
7f353be73c67a1e14fb96ad811f80aa31cb3cb4801d46a95c104a33a1f39b2a6 | MATLAB | 6,785 | 198 | % Load NIFTI or ANALYZE dataset. Support both *.nii and *.hdr/*.img
% file extension. If file extension is not provided, *.hdr/*.img will
% be used as default.
%
% A subset of NIFTI transform is included. For non-orthogonal rotation,
% shearing etc., please use 'reslice_nii.m' to reslice the NIFTI file.
% It will... |
81dd526b5f0ee89cac0e40cd6b1ca9e94533327beb8cc755668a8bfe3f3f942f | MATLAB | 6,788 | 167 | close all;
clear;
clc;
resultfname_amp = 'testProcessSeizureEEGPhaseAmplitudeFeatures_amp.txt';
resultfname_phase = 'testProcessSeizureEEGPhaseAmplitudeFeatures_phase.txt';
% this is the same as the previous one; except that the feature vectors are
% kept in the frequency domain (look at F, F1, and F2 and how they are
... |
68dd683db066c771da044bd2dc140a91843a54025ad89a20da81c5fc10b1aa5b | MATLAB | 6,792 | 177 | %% Figure 4 - LEMON SPRiNT data
% Load data
maxdims = 0;
mindims = 1000;
work = whos('SPRiNT*'); % files are named SPRiNT001, SPRiNT002, etc.
% Initialize table columns
subject = cell(numel(work),1);
eo_ap_slope_mean = nan(numel(work),1);
eo_ap_slope_std = nan(numel(work),1);
eo_ap_off_mean = nan(numel(work),1);
eo_ap... |
610176a5fc3c7963a4cac80549cf99615aa7a7fd83a44f2698e7a950d4c341f5 | MATLAB | 6,795 | 190 | function SpikeDataAnalysis20180804
clear all;
close all;
% SpikeDayMatrix//útABgraÛèÔA89or89ÛèÔACÛèÔAeg[hx8i>RatioARcellj
%@AllSpikeDataÌñ@èÄ
% PD}EXA^XN
% QDDate
% RDPegPattern
% SDTetrode#
% TD Unit#
% U. Hz@WoffÌÆ«ðÜÞ
% VD RtouchMaxM... |
15aea3e288497aa8422ebad1a67ad2625066f9d3b74d671347cca218f0e8f93c | MATLAB | 6,797 | 179 | function pwcoher = PWCoherence(eeg, fs, onset_time, varargin)
%
% pwcoher = PWCoherence(eeg, fs, onset_time)
% pwcoher = PWCoherence(eeg, fs, onset_time, freq_rng, duration, plot_flag)
%
% *************************************************************************
% * Pair-wise MSC dynamics estimated within 1sec time-s... |
89e10fee2941565ed37b4a9c2932891214f16d3649b845da2115f03dc18204ce | MATLAB | 6,804 | 119 | %% NOTE: Add ambient, add synaptic failure, maybe change ref setup
%% Great Change here:
% Adding E-to-E synaptic delay for 1 ms
% EEDlyRcd is an N*T sparse matrix, each column record the number of
% pending kicks that is waiting, with T_i*dt ms remaining. Each raw record
% all the pending E kicks for one E neuron
... |
0526f416898082c0155b6f16fd08dcd5b9a5a75c10e59aee35e23df398b37666 | MATLAB | 6,805 | 195 | % Script in Lapse-Causes that plots the first figure (and stats) related to
% the LAT task performance.
clear
clc
close all
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Parameters
Tasks = {'LAT', 'PVT'};
RerunAnalysis = true;
Parameters = analysisParameters();
Paths = Parameters.P... |
ffc18e3a8c40efb03633bbdccbd612b8be20159d41c2794052c7b4a4a226b11d | MATLAB | 6,805 | 168 | % [p, observeddifference, effectsize] = permutationTest(sample1, sample2, permutations [, varargin])
%
% Permutation test (aka randomisation test), testing for a difference
% in means between two samples.
%
% In:
% sample1 - vector of measurements representing one sample
% sample2 - vector of m... |
3dfc9a7ab6e4ebb544055423615501432da60ee12623e5887d1303e941b651c4 | MATLAB | 6,807 | 193 |
%{
----------------------------------------------------------------------------
Determine the time window for task relevant neurons
%Start of task
%Sound on
%Sound off
%Before choice
%After choice (0sec)
%After choice (1sec)
%After choice (2sec)
%p = 0.001
%Each epoch, predict the prior, sensory and choice... |
78e9e586a0ea5976cbca7da6aa3d9c80789fa50fc78cfb7cdc75ef93c94f80bc | MATLAB | 6,811 | 193 | function [params,Vsupra, f, I] = sub_and_supra_classify(base_path, date, cell, idx_f, if_plot, if_save)
% Vsupra: representive spike waveform (normalized)
% params: [input resistance, sag ratio, burstyness, min. isi at rhobase]
if nargin < 5, if_plot = 0; end
if nargin < 6, if_save = 0; end
preflix = strcat(strcat(da... |
03bec6cec672a520e907f27310b4c02fda517caa8c134d589ec60c965e72c360 | MATLAB | 6,814 | 179 | classdef DetectMultiTest < matlab.unittest.TestCase
%DETECTMULTITEST Test spike detection from multiple files
properties
hJRC;
hJRC0;
hJRC1;
nSpikes0 = 9891;
nSpikes1 = 9000;
nSpikes = 9891 + 9000;
end
properties (Dependent)
res;
res0;
... |
046c4cac6ff102f3289e8559a93c659886a5643a9ea61676275f4c14484fbf67 | MATLAB | 6,815 | 222 | function ShowAnTopographyResults(out,fig,AskDurationThreshold)
% Copyright 2009-2011 Thomas Koenig
% distributed under the terms of the GNU AFFERO General Public License
if nargin < 3
AskDurationThreshold = true;
end
handles = guidata(gcf);
handles.CurrentView = 'TCT';
guidata(gcf,handles);
if out.MeanInterval ... |
5ebe7232456a1ac5b5c8ae89675b7c15c17587c050e6428c563fb2b878b916bb | MATLAB | 6,821 | 129 | %% For each pixel, use 1E and 1I neurons to represent them
function [mVELIF,mVILIF] = LIFPixels(Fr_MFinv, L4Pix_EventsEIni, L4Pix_EventsIIni, L4EInputIni, L4IInputIni,...
C_EE_Pixel_Us,C_EI_Pixel_Us,C_IE_Pixel_Us,C_II_Pixel_Us,...
S_EE,S_EI,S_IE,... |
09b34ec69b522ca2044318b11eff29daad50f9cf715d6f74042c8ceea9beb572 | MATLAB | 6,831 | 258 | function st = nufft1_build(J, varargin)
%function st = nufft1_build(J, [option])
%| Build 1D LS-NUFFT interpolation coefficients by brute force.
%|
%| in
%| J neighborhood size: [-J/2,J/2]
%| option
%| om [M 1] frequency locations, if not provided build fine table
%| N # of signal values (default: 2^8)
%| K # of DF... |
abb10342dd0f8eb0b3df6bc12fb380198d90e19a4d28e0323e3fd8806325b709 | MATLAB | 6,834 | 166 | % clear all
% close all
% clc
%
% constants;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Load data
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% import_data;
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Settings
%%%%%%%%%%... |
f0d866e66d52186c128321772f5f1fa09e49a3cb671ce82172e5b75a772f237d | MATLAB | 6,835 | 188 |
%{
----------------------------------------------------------------------------
Determine the time window for task relevant neurons
%Start of task
%Sound on
%Sound off
%Before choice
%After choice (0sec)
%After choice (1sec)
%After choice (2sec)
%p = 0.001
%Each epoch, predict the prior, sensory and choice... |
b24f5f1aeb8d7085ec9b63211895b54e26a01554e95540b30f2002e8dfbd812a | MATLAB | 6,836 | 134 | % A script to test event related potential extraction using Robust Weighted Synchronous Averaging
%
% Reference:
% Sameni, R. and Gouy-Pailler, C. (2014). An iterative subspace denoising
% algorithm for removing electroencephalogram ocular artifacts. Journal of
% neuroscience methods, 225, 97-105.
%
% Sameni, R... |
e99db35ec2ef93bce77831b5ef11ddf6f8eefd6bb307795bb98382bc54675188 | MATLAB | 6,836 | 188 | %{
----------------------------------------------------------------------------
Analyzing behavioral data
At least for the correct rate
----------------------------------------------------------------------------
%}
function [minD_trial,maxD_trial,Choice_trial,tone_evidence,trial_evidence,use_trial2,use_trial3,... |
4c8be9cfba83352c6d49f70334bae18dd558ac6df7f21503f5e1759a40e5e494 | MATLAB | 6,844 | 195 | function [LastPitch123 OffDuration] =Accelerate20170428(dpath,fname) %DataLoad24chæèüÏ
% clear all;close all;
%FinishTime(STOP{^)ÌÔ{3000msÁ¦½àÌðWaterOnArrayÉt¯Á¦½B
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% [fname,dpath] = ... |
3828e798cd86a8192d5af025a2dcb8fab680ff13398111d19f27dce27b3ac8a2 | MATLAB | 6,845 | 214 | function [fid_cor phase_cor freq_cor] = correct_freq_and_phase_by_max(FID_in,par,info)
SW_h =info.spectrum.SW_h;
SW_p =info.spectrum.SW_p;
ppm_center =info.spectrum.ppm_center;
NS=size(FID_in,1);
%zero_filling=size(FID_in,2);
nb_pts_orig = size(FID_in,2);
pas_temps=1/SW_h; % pas (en s) entre 2 points complexes succe... |
75bf1498cd7a9c31edb303e0876b1a36fa40075121d6d27be34fcf6385764c0b | MATLAB | 6,846 | 226 | function all_data = PSTH_fun(selpath, save_all_data_2_direct,exp_name)
%%
if ~exist("selpath")
selpath = uigetdir;
end
cd(selpath)
if ~exist("save_all_data_2_direct") %directory to save a version of all PSTH files
save_all_data_2_direct = "E:\2023 - ledramp\call display";
end
spike_times = readNPY([selpath '... |
3eee7e0b1edc8d6a66ff302c9e2c21c6960b6cb4ba3436c16ca061bb0ea35565 | MATLAB | 6,851 | 170 | function [img_clean,img_noisy,img_sim] = create_simu_beads(system_params, smpl_params, img_params, otf_params)
% % necessary field
% system_params = {};
% system_params.NA_ex = 1.17; % NA of the excitation beam
% system_params.lambda_ex = 0.488; % waveleng... |
a77a6b3d2e764d2122b499577dc987cc9206c6b01935c25993c57e2d42fa1bd1 | MATLAB | 6,857 | 193 | function PaintBrodmannAreas_chooseview(data, ...
nr_ROIs_to_plot, nr_colors_to_plot, colour_range, cbar_label, colourbar_threshold,view_vec)
% get labels from Arjans selection
mesh_type=[];
load('ROI_MNI_V4_List.mat','ROI');
ROI_indices = select_ROIs_from_full_AAL;
labels_temp = char(ROI.Nom_L);
labels = labels_tem... |
ff1e3db9d9e98d6293bae58f9d77e242eccfe27a586ac93363da7cdf3c86b926 | MATLAB | 6,857 | 131 | function cannula = getImmTroughPeak(cannula)
%%
% cannula = getImmTroughPeak(cannula)
%
% Anya Krok, March 2022
%% INPUTS
NumStd = 1.5;
%%
params = [];
for y = 1:length(cannula)
%%
beh = cannula(y).s; % extract beh sub-structure within cannula structure
amp = nan(length(beh),2); % initializ... |
129a60c6cd1f90f52c0776454092e872b49e3c0ec1eea26fb6628929cbfa57ab | MATLAB | 6,866 | 223 | function making_volume_csv(mat_file_after_converting, dir_root_OG )
% mat_file_after_converting = "HB329.mat";
% dir_root_OG = 'HB329/';
csv_name = '16bit_allen_csv_20200916.csv';
label_file_name = append(dir_root_OG, '/tubemap/elastix_labels_to_resampled/result.tiff');
load(mat_file_after_converting);
... |
7b33e6757e51d570e9815c9f827411a8ee1565b43e189b4557a93a102bd12048 | MATLAB | 6,872 | 190 | function [LFPsamples_Run TimestampArray filepath]=GetCSC
%timestampsÍ270336¸ÂÁB270msÆvíêéBtimestampsÌ512ÂÌTvB
%270336/512=528. TvOÍ0.528ms²ÆBfs=10^6/528
global StartTime FinishTime fname
% StartTime
% FinishTime
DurationB=FinishTime-StartTime;
% cd C:\Users\B133\Deskto... |
c420ac3c811d3b240c8245913848b4456246286b4e858bcfbedf4f0033679b9f | MATLAB | 6,872 | 141 | % ----------------------------------------------------------------------- %
% FUNCTION "customcolormap" defines a customized colobar given the %
% positions and the colors that are going to generate the gradients. %
% %
% Input pa... |
13584a705a7775aecedc25cbe3d85251fd8476a329c5857832a22970c4187405 | MATLAB | 6,878 | 106 | function Workspace1 = Set_Project_Properties(GUI_Parameters)
Ter = 0;
Workspace1 = [];
H1 = uipanel(GUI_Parameters.Handles.Main_Panel,'BackgroundColor',[0.5,0.5,0.5],'Position',[0.3 0.1 0.4 0.8]);
uicontrol(H1,'Style','text','FontSize',20,'BackgroundColor',[0.7,0.7,0.7],'String','Project Properties','Units','... |
e9f93ac8a1fa5dc561f27368a97d065f6151607c4b739a7d03ca58a5366405c2 | MATLAB | 6,879 | 190 | function [ftrack_out,ftrack_mstaxis,ftrack_lpc_coeffs] = get_formant_tracks(y,fs,faxis,ms_framespec,nlpc_coeffs,yes_preemph,nformants,ftrack_method,yes_verbose)
frames_per_dot = 10;
dots_per_line = 50;
if nargin < 2 || isempty(fs), fs = 11025; end
if nargin < 3 || isempty(faxis), faxis = linspace(0,fs/2,1025); end
if... |
558a169601bcac9f5b888d30139eab466c2cf7e5139a344d195a3ba627048fe5 | MATLAB | 6,882 | 158 | % Two choices here 1. "Thre", then change recoding threshold: 0-1
% 2. "Delay", then change recording time: ms for unit
% both for testmod
function [] = HPC_MFpV_TestVRcrdThre(test,testVal)
if test==0
testmod = 'thre'
elseif test==1
testmod = 'delay'
end
CurrentFolder = pwd
addpath(CurrentFold... |
09b8ca7bbc69d9312ebde81a012f0c838db1882ff1e3ead60fafd05df8ea3592 | MATLAB | 6,885 | 184 | function [clusters, clusterLen] = getClusters(verts, allFaces)
% Identifies and groups connected vertex clusters within a mesh overlay
%
% This function processes a set of thresholded vertices and mesh faces to identify
% connected clusters of vertices. Each cluster represents a contiguous region within
% the ove... |
7b82640f02802a1e686ed23d825ffe7f5ef076d046217a24a0577a68cfcd7872 | MATLAB | 6,888 | 173 | function [erp_tf, synch_eeg, trigger_time_sec, time_vec, freq_vec, varargout] = trigger_avg_TF_erp(eeg, fs, onset_time, varargin)
%
% [erp_tf, synch_eeg, trigger_time_sec, time_vec, freq_vec] = trigger_avg_TF_erp(eeg, fs, onset_time)
% [erp_tf, synch_eeg, trigger_time_sec, time_vec, freq_vec, synch_emg] = trigger_avg_... |
4ebbf072d9a39464936aa5ef3e73174b97710542011095c43830f3053905e165 | MATLAB | 6,893 | 209 | % this script needs to be copied in each HC folder
clearvars
close all
addpath(genpath('/storage/stella/MATLAB_toolboxes/')); % insert the path to NIFTI_studio toolbox
%% combine FAST and FIRST and generate three tissue masks (CSF, GM, WM)
folder = pwd;
brain_all = load_untouch_nii(strcat(folder,'/00_Inputs/structu... |
f0db131e7bb4c1d11df87968d32c27c83af3cd1922515f7f3792869ea722ee9c | MATLAB | 6,896 | 215 | clearvars
close all
addpath(genpath('/storage/stella/MATLAB_toolboxes/')); % insert the path to NIFTI_studio toolbox
%% simple generating three tissue masks (CSF, GM, WM) integrating info from FIRST and FAST (using MNI priors for registration)
folder = pwd;
slice = 86; % just to visualize maps
brain_all = load_unto... |
c8df253c927f257a52aa05a051bbfd8e3c907c79108eb30daae7c7d98cd07516 | MATLAB | 6,903 | 183 | %Shinjini Kundu (c) 2022
%Kundu et al approach to solving for mass-preserving mapping, updated
function [results] = VOT3D_new(I0,I1,f1,f2,f3,step_size,scale)
addpath('freezeColors')
%addpath F:/TBM_codes/freezeColors;
iter = 1;
lambda =3; %10; %51200; %50; %3.5*10^-12;
cutoff = 10^-3; %2*10^-4; %4*10^-4;
if scale=... |
cba97c723fc30780cc545a32c0a3ba599e4f2972af6bb3d5c12acdfb3c96c483 | MATLAB | 6,907 | 222 | function files_out = spmup_find_dropout(varargin)
% Simple routine to loop throughout masks - create the sum of masks rather
% than the intersection, search through slices (z direction) to see if some
% subjects are outliers, and look at total overlap to see again if some
% subjects are outliers - the focus is on Z... |
6ad2cf078ea3fa3e1a1d3b70c86b81a8c0426ef22d1601fbb3b92d70a1d1881a | MATLAB | 6,908 | 187 |
%%
addpath('ConvNet-master\','ConvNet-master\matlab');
% load conv net coefficients
% alternatively, use train_cnn.m to train the convnet from scratch
load(fullfile('example_data','cnn_8_3_15.mat'));
funtype = 'matlab';
vid = VideoReader(fullfile('example_data/example_video.avi'));
Nframes=vid.NumberOfFrames
disp(... |
f8d5da2f3f70aa583593842a08dab8c7704a542caf809f414e93f03a332aaed7 | MATLAB | 6,909 | 180 | function [timelock] = ft_datatype_timelock(timelock, varargin)
% FT_DATATYPE_TIMELOCK describes the FieldTrip MATLAB structure for timelock data
%
% The timelock data structure represents averaged or non-averaged event-releted
% potentials (ERPs, in case of EEG) or ERFs (in case of MEG). This data structure is
% usual... |
78ffeabc216840b3a23ade2468353030a1ccbb2aa02566cea1067fb5a94cb905 | MATLAB | 6,910 | 172 | function parms = mmil_args2parms(options, options_schema, strict)
%function parms = mmil_args2parms(options, options_schema, [strict])
%
% Purpose:
% Take a set of argument-value pairs and a set of argument-value
% defaults, and create a 'parms' structure where all arguments are fields
% of the parms object... |
0157b703078562f4f0d48699d5a460ce8bd204c4a406c109e2bede2ec4266639 | MATLAB | 6,911 | 167 | function [SummaryDataOutput, Hit_allpsth, FA_allpsth] = lick_psth_summary_PV(animals, root, resdir, tag, TrialType)
%LICK_PSTH_SUMMARY_PV Average lick PETH.
% LICK_PSTH_SUMMARY_PV(ANIMALS, ROOT, RESDIR, TAG) plots average lick
% PETH (beam break time stamps aligned to an event) for each animal
% defined in A... |
8aadd9a2aa483b0819d5694732f7723e97573e48ee0c9d549e5367d2e32f8412 | MATLAB | 6,919 | 198 | %% Step 1: Preprocessing
%{
1. Preprocess CCEP in similiar fashion to task data
2. Identify time of stimulation for time locking
3. Clean raw signal to remove stimulation artifacts
%}
%% Step 2: Wavelet decomposition
%{
1. Decompose raw signal into frequency components
2. 59 frequencies log spaced between 1H... |
a4be1cca2ddb29f010bd41a1edac875d85f80baa06162b785160ef996ece2fe4 | MATLAB | 6,925 | 245 | function Negative_W2_Pattern_3_20200302
path=['C:\Users\C238\Desktop\touchcellLtRt_terashita'];
cd(path);
LS=ls;
LtWFRUnit=[];
RtWFRUnit=[];
LtW12Point=0;
LtW12Fire=0;
LtW23Point=0;
LtW23Fire=0;
LtW34Point=0;
LtW34Fire=0;
LtW45Point=0;
LtW45Fire=0;
LtW13Point=0;
LtW13Fire=0;
LtW14Point=0;
LtW14Fire=0... |
95ed3ebb191fc70989ffa9f80bb8f62d0e147af978f3676ac3aa1ea3b21ae175 | MATLAB | 6,927 | 251 | function VoltageAnalysis20170718
%VÍ5ms²ÆÌL^?@ÅãÉx5·éKv è %5ms bin
clear all;close all;
%1-12 left peg
%13-24 right peg
%25 floor
%26 spout
dpath='C:\Users\C238\Desktop';%\ICR_LearnCurve\161105_C8_Day1';
fname='14401_190121';
cd(dpath);
eval(['load ',fname,' -ascii']);
B=who;
eval(['Turn... |
3595e9abf1b6ff6898cb44840f81cd5f6c851e273f0a166a698629fc3866f310 | MATLAB | 6,933 | 112 | function Set_Objects(P)
P.GUI_Handles(1).Main_Figure = figure(12);
clf(P.GUI_Handles.Main_Figure);
set(P.GUI_Handles.Main_Figure,'WindowState','maximized','Color',[.2,.2,.2]);
dp = 0.005;
P.GUI_Handles.Main_Panel_1 = uipanel(P.GUI_Handles.Main_Figure,'Units','Normalized','Position',[0+dp,.3+dp,1-2*dp,.7-3*dp... |
181994ee43a6bfd95bb91a74bbed25afb1f460943e4f0bbbfb87389c3b8e6e9b | MATLAB | 6,937 | 137 | function spike_res = transduction_analysis (app)
MIN_CLUSTER=10;
% MSNA = app.data(app.settings.channel_idx.msna).data;
% data = app.data(app.settings.channel_idx.msna).data(app.settings.interval(1,1)/app.data(app.settings.channel_idx.msna).ts(1):app.settings.interval(1,2)/app.data(app.settings.channel_idx.msna).ts(1... |
042d3f73ad26a4fc18d10a41f820706bf9fb1bd9d2702859cb88475a0a6545ab | MATLAB | 6,944 | 192 | function [vertices, label, colortable] = read_annotation(filename, varargin)
%
% NAME
%
% function [vertices, label, colortable] = ...
% read_annotation(filename [, verbosity])
%
% ARGUMENTS
% INPUT
% filename string name of annotation file to read
%
% O... |
b5cf6070d225070dbe097e3b469b4ccbd7dce0fb64f2802950dcc1e8e533c69f | MATLAB | 6,944 | 214 | function Y = gp_parametric_plot(varargin)
% plotting tool for group level parameteric modulation
%
% FORMAT gp_parametric_plot
% --> called via GUI, use the workspace to get varargin
%
% Y = gp_parametric_plot(Coordinate,GpSPM,flag)
% --> manual call allwong to obtain sets of respon... |
bfe920d8b9008c34e5b805526253b5bfb9bd5946fd8ac0d691ba240cd7101ded | MATLAB | 6,949 | 355 | % program tucker3 performs a 3-way PCA of a 3-dimensional matrix
% Input matrix x must be a "double" unfolded matrix.
% With n objects, v variables and c conditions it is a n*c,v matrix:
% Conditions can be different observations, different years, different
% replicates, different operators, ...
% The order of the rows... |
41f9e04e0bf5ad82e25d03a37fea0a76605accf1943ab6af3912186dbbb0a0ed | MATLAB | 6,955 | 179 | function updateFigPSTH(obj, doCreate)
%UPDATEFIGPSTH
if ~doCreate && (~obj.hasFig('FigTrial1') || ~obj.hasFig('FigTrial2'))
return;
end
if doCreate
[hFigTrial1, hFigTrial2] = doPlotFigPSTH(obj.hClust, [], [], obj.selected);
else
hFigTrial1 = obj.hFigs('FigTrial1');
i... |
ce91c9c2bb968615707f90a9463f53a9fee4c1299a22d34213d7857d659a31f9 | MATLAB | 6,958 | 210 | function [modelfunc,beta,OverallRMSE]=mnl_CalculateNonLinearEvaluation
%This function reads in a multi-stack tiff which contains the same image at
%increasing laser powers. It assumes the first 5 time points are linear and
%will produce a function and covariates which can be used in
%mnl_CorrectImageForNonLinearity to ... |
ebca327b1b446950d77c50d1d6e882b4e8709dbdbfac7d2d8395f1a9f3d40b11 | MATLAB | 6,958 | 197 | function Parameters = analysisParameters()
% parameters for detecting bursts that get called repeatedly from all the
% scripts.
% Lapses-Causes
Parameters = struct();
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Analysis paramaters
% Who, what, when
Parameters.Task = 'LAT'; % main... |
cfc8cba5de302f882fa92a6fd312e0d672e7fe5c9d79bb2c6392669dc2bd8314 | MATLAB | 6,961 | 193 | function pwplv = PWPLV(eeg, fs, onset_time, varargin)
%
% pwplv = PWPLV(eeg, fs, onset_time)
% pwplv = PWPLV(eeg, fs, onset_time, freq_rng, duration, pertnum, plot_flag)
%
% *************************************************************************
% * Pair-wise PLV dynamics estimated within 1sec time-steps for any ... |
e6e8c53bb6ef526e6b4b6e20b08137583c898e108777620fdfb99fc584edf367 | MATLAB | 6,963 | 238 | function [z, objective, distance, times, mses] = ...
SALSA(y,OMEGA,tau,n,varargin)
%%%% Parameter values
%% CONVOLUTIONFILTER isAconvfilter = 1 => A is the convolution filter,
%% of the same size as the image and centered
%% isAconvfilter = 0 => A is either a matr... |
a1f1d56e85486ad2a7c0a0f25030c26d6d18a22a8f162afbb72985375d29f83c | MATLAB | 6,967 | 181 | function [scaledData] = scaleData(array, x, y, incZero)
% Scale Data to a Specified Range with Optional Zero Inclusion
%
% [scaledData] = scaleData(array, x, y, incZero)
%
% This function scales the input data in `array` to a specified range [x, y].
% It provides the option to include or exclude zero values from ... |
17e53b65f68234d1c6aee8a093fce7546947f1b07efaaa191c0a421b4c0dcd84 | MATLAB | 6,969 | 191 | function [data_seg_l,data_seg_h,gt_seg] = XxDataSeg_ForTrain(data_l, data_h, gt, num_seg, Nx, Ny, RotFlag)
addpath(genpath('./XxUtils'));
[r,l,~] = size(data_l);
[r_h,~,~] = size(gt);
sr_ratio = round(r_h / r);
if RotFlag == 0
new_r = Nx;
new_l = Ny;
else
new_r = ceil(Nx * 1.5);
new_l = ceil(Ny * 1.5... |
eefeb65220da19783a17eda4fedc3455064b3d4273ef990f7fc532c2850ba39d | MATLAB | 6,972 | 212 | function rasterTouchDrink20190711
cd('C:\Users\C238\Desktop\CheetahWRLV20180729\119\2017-6-7_20-8-33 11901-51');
dpath=('C:\Users\C238\Desktop\CheetahWRLV20180729\119\2017-6-7_20-8-33 11901-51\');
dpath3=('C:\Users\C238\Desktop\CheetahWRLV20180729\119\2017-6-7_20-8-33 11901-51');
tfile=['Sc4_SS_02.t'];
SpikeAr... |
3f584951cdca07a9132ab2f64825a6eaf2ed00ea1a6e47e35be29bce69272992 | MATLAB | 6,976 | 157 | function [data_quant, bias, gains, max_amp, snr, snr_med, num_quant_levs] = DataScalingQuantization(data, method, params)
%
% DataScalingQuantization - Perform data quantization and analysis on multi-channel data.
%
% Syntax:
% [data_quant, bias, gains, max_amp, snr, snr_med, num_quant_levs] = DataScalingQuantization... |
a8dd738c5befe197ca38ca7b28fca7f1569c705815c73c0c097cb86b2d54b91f | MATLAB | 6,976 | 260 | function burst_res = burst_analysis1(app)
%BURST_ANALYSIS this is the not ready updated version of burstanalysis when
%finished it needs to replace burst analysis
% Detailed explanation goes here
try
plot_flag = isa(app.ax_msna_raw, 'matlab.ui.control.UIAxes');
catch
plot_flag = false;
end
if plot_flag
... |
4537a28e6580b134d030ec0bb7fdc3240b837bb7a0c1667bf70cb7f69b58020d | MATLAB | 6,982 | 225 | function wavelet_analysis(app)
%wavelet_analysis Summary of this function goes here
% Detailed explanation goes here
cla(app.ax_wavelet_sig1)
cla(app.ax_wavelet_sig2)
cla(app.ax_xwt1)
cla(app.ax_xwt2)
cla(app.ax_xwt3)
channel_idx = find(strcmp(app.popup_signal1.Value,app.popup_signal_spect.Items));
[data,ts,name1, un... |
845268dde381f6a52bbf862bebe9197a96bffc024a560b4c55b801ddd2430025 | MATLAB | 6,984 | 225 | function wavelet_analysis(app)
%wavelet_analysis Summary of this function goes here
% Detailed explanation goes here
cla(app.ax_wavelet_sig1)
cla(app.ax_wavelet_sig2)
cla(app.ax_xwt1)
cla(app.ax_xwt2)
cla(app.ax_xwt3)
channel_idx = find(strcmp(app.popup_signal1.Value,app.popup_signal_spect.Items));
[data,ts,name1, un... |
d31fd49ea96c520bf60429070533a30801f308daf4f2b506bf176009b0aa0612 | MATLAB | 6,984 | 225 | function wavelet_analysis(app)
%wavelet_analysis Summary of this function goes here
% Detailed explanation goes here
cla(app.ax_wavelet_sig1)
cla(app.ax_wavelet_sig2)
cla(app.ax_xwt1)
cla(app.ax_xwt2)
cla(app.ax_xwt3)
channel_idx = find(strcmp(app.popup_signal1.Value,app.popup_signal_spect.Items));
[data,ts,name1, un... |
3b30488731096ed007ae378de4557d53292828effe54645983d385b3d1feaa50 | MATLAB | 6,997 | 158 | %% Make Helmet Info Locs TSV File
clear all
close all
cd R:\OPMMEG\Users\Ryan\App\Helmet_info\ % Helmet info path
fnames = dir('*.mat');
for nnn = 1:size(fnames,1)
Helmet_info_file = [fnames(nnn).folder '\' fnames(nnn).name];
Helmet_info_file_save = [Helmet_info_file(1:end-4) '_locs.tsv'];
load([Hel... |
81d52e05105bbd737ca2dbb2c0b59b3803002f866f7468299681fdf5ed3542ba | MATLAB | 7,018 | 158 | %% Process Parameters for Photometry Analysis
%Created By: Pratik Mistry
%Created On: 31 January 2019
%Edited On: 26 September 2019
%
%Description: This is a script with different variables whose values can be
%adjusted depending on the photometry signal that is being processed. The
%name of this file can and sh... |
e3a753d590a0337cd3e4f7f6279864df69e3dfde344d08e0168cb4da87ea2ed7 | MATLAB | 7,019 | 176 | function [hemi, hemi2, d, d2, tmpOut] = vol2fsaverage(f, varargin)
% Converts volumetric data to fsaverage surface space.
%
% This function converts volumetric neuroimaging data to the fsaverage
% surface space used in FreeSurfer. The function supports various conversion
% options, including unthresholded maps, thres... |
2b40f9ee90821c0c494c894bf9a8cf192d242e26b594c62fe3bdc4c97895a038 | MATLAB | 7,027 | 194 | function [params,irange,domain,resnorm] = cubehelix_find(map,posn,prms)
% Return parameter values for the Cubehelix colorscheme that matches the input colormap.
%
% (c) 2015 Stephen Cobeldick
%
% So you have a nice Cubehelix colormap but you can't remember the exact
% parameter values that were used to define it,... |
f5b5b57fe47d2263277aa1024dc9bc3fa157f8d699bf384c98fbd891b979855c | MATLAB | 7,028 | 170 | function Positive_Negative_Both_RLt_Pattern_Sum20201208
path=['C:\Users\C238\Desktop\touchcellLtRt_Hirokane'];
cd(path);
LS=ls;
SumRLtouchPoint=zeros(1,19);
SumRLtouchFire=zeros(1,19);
X=[];
SumRLtouchUnit=[];
SumRtouchUnit=[];
SumRLtouchPointUnit=[];
SumRtouchPointUnit=[];
for i=1:length(LS(:,1)... |
365dcbb9d5edbd5ded5ab6be079b81f866b26b1c5fa1e0f80c9a6bd9eb008ae6 | MATLAB | 7,034 | 237 | function [p, Ase, Bse] = npperm(A, B, iter, correction, circ, trial_level)
% Last Updated by Tylor J Harlow 9/12/2023 Analytic assistance from Matthew B Jane
% and Scott C Bressler for benhoch function.
%
% This function performs non-parametric permutation testing of
% time series data. The function is designed... |
f837294fdaf541174d0d3d3b77132d60b99e6ee4ea2fd0171c4b348c550fb7d4 | MATLAB | 7,036 | 173 | close all
clearvars -except Behav_path Path_figures Path_variables MEG_path
SubjectID={'S01' 'S02' 'S05' 'S15' 'S19' 'S20' 'S22' 'S24','S21','S25','S23'};
Drug=[3 1 1 2 3 2 3; 3 1 3 2 1 2 0; 2 1 1 3 2 3 0; 1 3 3 2 2 1 0; 2 3 1 2 1 3 0; 1 2 3 1 3 2 0; 3 1 2 2 1 3 0; 3 1 1 2 3 2 0; 2 1 1 2 3 3 0; 3 2 1 3 1 2 0;2 3 2 1 ... |
b0f8174f6eec814e9653cad585158d7250e36da888eca4c77d2bd91831a5f2fb | MATLAB | 7,045 | 187 | % Load NIfTI / Analyze header without applying any appropriate affine
% geometric transform or voxel intensity scaling. It is equivalent to
% hdr field when using load_untouch_nii to load dataset. Support both
% *.nii and *.hdr file extension. If file extension is not provided,
% *.hdr will be used as default.
% ... |
cb3a6d9f859763c55ac9ac9aee3237eb7ce435e4790efdee38191d225daf5d0a | MATLAB | 7,048 | 222 | function RepeattouchLR
global CCresultRtouchWon CCresultLtouchWon RpegTouchallWon LpegTouchallWon SpikeArrayWon tfile pegpatternname trimFolder2
%SpikeArrayÅLPegTouchAllARpegTouchallðACµ½NXRIO
%SpikeArrayÅLPegTouchAllðAC·é
duration=5000;
CrossCoL=[];
CrossCoR=[];
%¼ûü
fo... |
f172e12363297414fa903a02cdbb7d778e1c42396cda9fecf088d8152994c4ec | MATLAB | 7,053 | 173 | %% Prepare spike tirain data (for Figure 3,4,5,6,7,8)
% need to change the folder adress into the correct address
% please open the program (auc_folders.m / fof_folders.m / mpfc_folders)
makeSpikeTrain('auc_folders');
makeSpikeTrain('fof_folders');
makeSpikeTrain('mpfc_folders');
%% Prepare intermediate data ... |
6a1e83a7a6f92bfb0cbdc306b55a6121825088a6eb922efcffe8f99b3b8ebf8c | MATLAB | 7,054 | 156 | function [spMap,XBinned,yBinned,spMap_features,probability_sampled] = computeSPMap(feature,coordinates)
% computeSPMap Applies a series of perturbations to the spatial system
% described in the original manuscript. Perturbation strengths are
% spatially ranked to produce a spatial perturbation (SP) map. Features ar... |
acc1c667b097759dd2af78392b0067e5af9bb0316c3251e9b3ca42fb23b4c8d4 | MATLAB | 7,054 | 95 | function WindowApply20210107
global RtouchSpikeOnUnit LtouchSpikeOnUnit LtPositiveSpikeOnKaisuu RtPositiveSpikeOnKaisuu LtPositiveHistogramXaxis RtPositiveHistogramXaxis...
LtPositiveFiringRate RtPositiveFiringRate LtPositiveSpikeOffKaisuu RtPositiveSpikeOffKaisuu
%%%%%%%%LtouchSpikeOnUnitÌfigureì¬
LtP... |
e753044fca02ce6cfd7592eeeda38b16f5b51a631f7c54a97669ff6998827b82 | MATLAB | 7,055 | 213 | % this script needs to be copied in each MS folder
clearvars
close all
addpath(genpath('/storage/stella/MATLAB_toolboxes/')); % insert the path to NIFTI_studio toolbox
%% combine FAST and FIRST and generate three tissue masks (CSF, GM, WM)
folder = pwd;
brain_all = load_untouch_nii(strcat(folder,'/00_Inputs/structu... |
54c34a32152bd7c5d516c4fc9f50824f304c8161e091d504b20d2266f1f3146a | MATLAB | 7,059 | 170 | function [ OUT ] = twoD_MCS_LBPD_D( P, thresh, permut, threshMC, perm_max, t1, t2 )
% It individuates clusters in a binary 2D matrix and tests their
% significance by Monte Carlo simulations.
% This function is designed to work with binary data.
% INPUT: -P: n x n of values (e.g. p-values obtained
% ... |
fb15bf125ab1df0e655253c183f8fd380cc866398d339290940506109929c4e1 | MATLAB | 7,059 | 123 | %% NOTE: Add ambient, add synaptic failure, maybe change ref setup
%% Great Change here:
% Adding E-to-E synaptic delay for 1 ms
% EEDlyRcd is an N*T sparse matrix, each column record the number of
% pending kicks that is waiting, with T_i*dt ms remaining. Each raw record
% all the pending E kicks for one E neuron
... |
4882443e2515482855c6cd45088325fe65b36decdd67df1f46ee03ca7a3a525d | MATLAB | 7,063 | 164 | close all;
clear;
clc;
resultfname_amp = 'testProcessSeizureEEGPhaseAmplitudeFeaturesXCorrBased_amp.txt';
resultfname_amp_wavelet = 'testProcessSeizureEEGPhaseAmplitudeFeaturesXCorrBased_amp_wavelet.txt';
% this is the same as the previous one; except that the feature vectors are
% kept in the frequency domain (look at... |
afbc1a0a758b8a246e466f39da5e37e8ea6ad4d51458db14017f7b44cc8c1d22 | MATLAB | 7,064 | 164 | clear
close all
% Control
load(fullfile('ImP003_4p0\2023_04_08-14_40_41', 'Zscore_data.mat'));
load(fullfile('ImP003_4p0\2023_04_08-14_40_41', 'StimOnset.mat'));
load(fullfile('ImP003_4p0\2023_04_08-14_40_41', 'StimOffset.mat'));
load(fullfile('ImP009_4p1\2023_12_19-10_54_17', 'Zscore_data.mat'));
load(fullf... |
1829fc2d8498c550f33d90695f8888d9101957fd1cbe0754356a52492bef5249 | MATLAB | 7,083 | 125 | %% NOTE: Add ambient, add synaptic failure, maybe change ref setup
%% Great Change here:
% Adding E-to-E synaptic delay for 1 ms
% EEDlyRcd is an N*T sparse matrix, each column record the number of
% pending kicks that is waiting, with T_i*dt ms remaining. Each raw record
% all the pending E kicks for one E neuron
... |
c097f9fcd875a690d628044fa26d094c5253f9113848f71b9d379fae35620bb2 | MATLAB | 7,091 | 185 | function spectmean = CREx_SpectCalc_multitap(EEG,chansoi,freqs,figinfo,datafrac)
% Function to analyse spectrum using multitapers.
% Needs to call the function : mtspectrumsegc().
%% Define the parameters
params.triallen=(floor(EEG.times(end)*datafrac)/1000+abs(EEG.times(1)/1000)); %length of th... |
5ff6faef477006db6a8b61b855993b9afec85d3d8ffb9eeb889d15deadec8da7 | MATLAB | 7,099 | 236 | % this script calculates the average value of Free Water fraction in
% selected WM tracts and brain tissues in the pool of Healthy Control
% subjects
clearvars
close all
addpath(genpath('/storage/stella/MATLAB_toolboxes/'));
addpath('/storage/stella/Analysis/matlab_scripts/');
%% Extracts values from the txt files and... |
725c5597fe4ac15d1f24d6c0f01e7405e600517da94be8745b7c227424560796 | MATLAB | 7,107 | 234 | function wavelet_report(app)
%WAVELET_REPORT Summary of this function goes here
% Detailed explanation goes here
cla(app.ax_wavelet_sig1)
cla(app.ax_wavelet_sig2)
cla(app.ax_xwt1)
cla(app.ax_xwt2)
cla(app.ax_xwt3)
[form_idxs,~] = listdlg('PromptString',{'Please select fileformat ',...
''},...
'SelectionMode'... |
419da4d674d7a60c96b835bf91b42fe41aaecc8dec80d66f79799fefe6675071 | MATLAB | 7,114 | 270 | classdef ellipticalFit<conicFit
%A class for executing and managing 2D ellipse fits
properties (SetAccess=protected, Hidden)
majorDiam
minorDiam
end
properties (SetAccess=protected)
center
end
properties (Dependent,Hidden)
ab
end
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.