sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
43068908f95474dd0c77a07ab9fa8fecc73f38635ae26257e3d9840406dbd335 | MATLAB | 2,295 | 68 | function output = getThreshold ()
% This function creates a threshold button
% that allows the user to interactively place a horizontal line (threshold)
% on a plot. The function then waits for the user to click on another
% button labeled "Get Y Value". When this button is pressed, the
% function returns the ... |
6fc624a5d0b3ead46c41a79d5871cc562c452b90b2f8936b77030d4909e97ff9 | MATLAB | 2,295 | 79 | function phyData = loadPhy(loadPath)
%LOADPHY Load and return Phy-formatted .npy files
phyData = struct();
if exist('readNPY', 'file') ~= 2
warning('Please make sure you have npy-matlab installed (https://github.com/kwikteam/npy-matlab)');
return;
end
loadPath_ = jrclust.utils.absPath(loadPath);
if isempty(lo... |
5b14f37fc3b14b6796dd2aadf3c1cd155e8d7376a40af6979336ef98c47aeb2f | MATLAB | 2,296 | 57 | function [My_CNN,X,Y] = NN_Index()
% Architecture
% https://uk.mathworks.com/help/images/ref/dncnnlayers.html
% https://uk.mathworks.com/help/images/ref/denoisingnetwork.html
% https://uk.mathworks.com/help/images/train-and-apply-denoising-neural-networks.html
% https://uk.mathworks.com/help/images/ref... |
0ea17ece01d53a232779141150376b1595c7d76f07ea84c45ec087fd15739d17 | MATLAB | 2,297 | 48 | %% Figure 3A-C, Figure 3F-G
load(fullfile(pwd, 'datasets', 'highcond_multibranch_decode.mat'))
addpath(genpath('plotting'))
idx_cell = 15; % 3; %for figure 3F&G
idx_trials = [11,8,5]; % [3,2,1]; %for figure 3F&G
dt = 5e-5;
t = -500*dt:dt:dt*(size(data(data_decode(idx_cell).idx(idx_trials(3))).EPSP_singleclust, 1)-1-5... |
5d27041080980a43da19749d15bddefd14618023866d722fd7e56c7785f3d9d0 | MATLAB | 2,297 | 76 | % Save PMDFs into .txt file
% pi pj vk value dove value è quello che leggo nel voxel vk se metto due optodi in pi e pj
% Ovviamente, mi devi scrivere solo le quadruple per cui value >= 1e-9.
pathnameLoad = 'C:\Users\brigadoi\Dropbox\Array_Designer\Fluence_Preprocessing\DS\';
pathnameSave = 'C:\Users\brigadoi\Drop... |
d7fd26c735fa1f6c612a0ce4d89723ff63e21a2d3fe4a016fc747c8ca3942034 | MATLAB | 2,299 | 78 | function qtInt = qtIntGausFit_v3(ecg, fs, varargin)
% Estimate the Q-T interval by fitting Gaussian functions.
%
% Syntax:
% qtInt = qtIntGausFit_v3(ecg, fs)
% qtInt = qtIntGausFit_v3(ecg, fs, rpeaks)
% qtInt = qtIntGausFit_v3(ecg, fs, rpeaks, betaQ, betaT)
%
% Inputs:
% ecg: Vector of single ECG data.... |
441913890480b51a170e8fe568dd6bfc6a4d10692b6185fbcc0db82ac269c477 | MATLAB | 2,300 | 70 | function results = stepwise_regression(app)
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
ds = app.edt_reg_downsampling.Value;
channel_idx = find(strcmp(app.popup_signal_to_predict.Value,app.popup_signal_to_predict.Items));
[data_p,ts_p,name_p, ~] = current_signal(app, channel_idx);
na... |
89d99f5ae7fa80d72fe49bfcc13ad3179d29fd0f27676ff000276663b43083ca | MATLAB | 2,302 | 100 | function [idx,X] = get_idx(M,nSites)
% GET_IDX Concise index sets for a modularization.
% IDX = GET_IDX(M,NSITES) for modularization M and total number of observable components NSITES
% (without the reference variable s_ref) returns the indices of the elements of the
% NSITES-by-NSITES moment ratio matri... |
353f484dbc86dbdb8010b94373adde47d6413982c14e07040f4663aae90a932c | MATLAB | 2,304 | 78 | function qtInt = qtIntGausFit_v2(ecg, fs, varargin)
% Estimate the Q-T interval by fitting Gaussian functions.
%
% Syntax:
% qtInt = qtIntGausFit_v2(ecg, fs)
% qtInt = qtIntGausFit_v2(ecg, fs, rpeaks)
% qtInt = qtIntGausFit_v2(ecg, fs, rpeaks, betaQ, betaT)
%
% Inputs:
% ecg: Vector of single ECG data.... |
410cc8384000aed529d3ed4bb16f03b22e1b3b18db5797e340bfddad2f71501d | MATLAB | 2,304 | 73 | function [d,p] = shortestpath(L,source,target)
%% Calculate the shortest path in a graph using Dijkstra's algorithm.
% This function calculates the shortest path from a node i to node j (or
% all other nodes) in the network. The length of a path is defined by the
% sum of the inverse projection of the nodes along t... |
a1d05f7b92585bc961a84646379e61ca82cea6b4ad12e4de874284397f3778a2 | MATLAB | 2,304 | 70 | function success = saveFiles(obj)
%SAVEFILES Save files to disk
dlgAns = questdlg(['Save clustering to ', obj.hCfg.resFile, ' ?'], 'Confirmation', 'Yes');
if strcmp(dlgAns, 'Yes')
obj.cRes.curatedOn = now();
res_ = jrclust.utils.mergeStructs(obj.res, obj.cRes);
res_ = rmfield(res_, ... |
609fbeb07ab22d62e34e5be97a890b60fb293057e02a8113ba1fbff5c9a8277e | MATLAB | 2,311 | 28 | function Square_coloring(PX, color, PY, Bace )
hold on;
xlimit = get(gca, 'XLim'); % ftHgXWÝè
ylimit = get(gca, 'YLim'); % ftHgXWÝè
colordflt = [1.0 1.0 0.9]; ... |
8f62f6d9dc1583953fadc1ce89697b241eba54072f8b1bfd4eaaa13ff06eb751 | MATLAB | 2,311 | 77 | function [eventwindowData_SAVE,entiresessionData_SAVE,eventwindowDts_SAVE] = eventwindowStackEventsV2(ProcessedData,Dts,varnamesDATA,setupParam,TrialParam,Fs)
%% Setup trial/data info
ST1 = {'Raw'; 'Recentered'; 'DecayAdj';};
inUseST = fieldnames(ProcessedData);
STidx = zeros(1,numel(ST1));
for i = 1:numel(ST1)
... |
60f0eb823200cd8c74be49491559830e8cc3eb0545e13435cc91254dfda67e43 | MATLAB | 2,312 | 86 | function [ind, peaks, ch] = ChannelIndex10(x,f,fs, varargin)
% Channel selection based on fixed template matched filter
%
% Reza Sameni
% September 2010
if nargin > 3 && ~isempty(varargin{1})
num_peak_det_itr = varargin{1};
else
num_peak_det_itr = 1;
end
% % % th = 0.5;
% % % h0 = load('BPFilte... |
e857a874c9fcaf72b9e44eacea6fd39a96ac5188561b02e10d1468198c969c94 | MATLAB | 2,312 | 72 | function perturb_hopf_syncbynode_MCS(node)
load Modelling_Workspace_MCS.mat
PERTURB=0:0.01:0.2; %% This is synchronisation protocol
we= 0.07; %% Insert here G value from optimal MCS model fitting
ITER=10;
N=214;
a=-0.02*ones(N,2);
C=squeeze(Coptim(find(abs(WE-we)<0.0001),:,:));
TSmax=295;
NSUB=29; %n... |
3e7351488c0d18f77b0036d3197b7a18fd7e66bdd3326c03ac61026abcf3159f | MATLAB | 2,314 | 66 | % Function to Sort Neurons According to the combination of Ensamble
% Participation
% Input
% labels_frames: ensamble ID in each frame
% signif_frames: significant frames (ensamble activation)
% Experiment: Raster: Frames x Cells [transposed!!!!!]
% NG: Number of ensembles
% Output
% New_Order: Sorted In... |
d296f3dee77cef51c817a433bfc333a712e21a7126456fbb9ac091b0878ad662 | MATLAB | 2,314 | 77 | function saveRes(obj, forceOverwrite)
%SAVERES Save results struct
if isempty(obj.res)
return;
end
if nargin < 2
forceOverwrite = 0;
end
forceOverwrite = forceOverwrite | obj.hCfg.getOr('testRun', 0);
% don't overwrite unless explicitly permitted (or testing)
if exist(ob... |
d29c5b3e112be030ff68b7018ac0e3c0549f9c3182014204b13d1f157e25a69a | MATLAB | 2,314 | 49 |
ct_rg=readtable('D:\Canada_2020\UK_biobank\reports\AD\genetics\EURnoWB\METAL\sumstats.txt');
h2=ct_rg.h2_obs(1:34); h2_se=ct_rg.h2_obs_se(1:34);
ct_rg_square=reshape(ct_rg.rg, [34 34]); %tmp=reshape(ct_rg.p, [34 34]); ct_rg_square(tmp>0.05/(34*34))=0;
ct_rg_square(1,:)=[];ct_rg_square(:,1)=[];%ct_rg_square(eye(33)==1)... |
4f395bc43a083dbaef1c421a634d87c5f299dfcfb50e37355568ca53915eeac9 | MATLAB | 2,315 | 69 |
% Plot baseline (pooled across intensities) for PFC vs PHb
clear all
cd 'I:\My Drive\ELYASHIV\PFC_paper_results_after_revision\effect size\f5\i_base_line'
PHb_tmp=load('all_baselines_PHb.mat');
PFC_tmp=load('all_baselines_PFC.mat');
PHb_baseline_tmp=table2array(PHb_tmp.all_cells(:,12));
PHb_cluster=table2... |
7c89e86f3273c84b4eeec40366ae0164f67d53a1e1fd6960f79727ab0a0b2a84 | MATLAB | 2,317 | 98 | function parse_data_tdt(Block, max_memo_GB)
%This code required OpenDeveloper (Tucker-Davis Technologies)
folder = fileparts(Block);
if isempty(folder)
Tank = pwd;
else
Tank = folder;
end
with_memory=true;
try
memory;
catch
with_memory=false;
end
if with_memory
[userview,systemview] = memory;
memo_avaib... |
43c008e976044b3f8ab7f3ea63627f1f38001308f0aac4bc53cc6ebf20f9408c | MATLAB | 2,319 | 83 | function covar_out = covardlg(covar_in,use_rec,anocovas)
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
uif = uifigure('Position',[100,100,800,600],'Color',[0.80,0.95,0.90]);
% uif.CloseRequestFcn = @(src,event)my_closereq(src);
col_ed = [false,false];
col_name = {'record', 'interval'}... |
2ebec22fcaa2b396134221b69675fd670e326102e36a5d6e55a5e636284bd3dd | MATLAB | 2,321 | 87 |
%% issue:
% miniscope and behavior recordings are too long
% probably due to trigger issue
% miniscope is longer than behavior
% what probably happend:
% - miniscope was running before exeriment started
% - bcam recorded frames when initializing experiment
% - bcam was turned off properly
% - miniscope kept running
... |
31f406c01b6405bd623e6fe013c697b9e46c6823331658ef465780a8454a715f | MATLAB | 2,321 | 84 | function mmil_write_csv(fname,data,varargin)
%function mmil_write_csv(fname,data,[options])
%
% Required Input:
% fname: output file name
% data: 2D data matrix of numbers or cell array of numbers and/or strings
%
% Optional Parameters:
% 'row_labels': cell array of row labels
% {default: []}
% 'col_labels': ... |
4f84d076a4d903aa4727e20df6e1a5bb78d372260f6b59e0f90a19c7909492fa | MATLAB | 2,321 | 83 | function [states] = multiHolsclaw_State_draw(Y, xDat, Omega, rho, sqrl )
%% Inputs:
% Xi : parameters controlling the transition probabilities and the log linear regression term
% Z : Matrix with the Markov property, binary matrix showing which states are present at each time point
% Exo : Exogenous variables used in t... |
e7f6cdc3701e64298fe284b66005db24af7d51c3fdc866f93b4804087fa5f3fd | MATLAB | 2,321 | 47 | %% mean-field w/o ref. We use parameters and mean Vs to estimate firing rates
% Input: C_EE,C_EI,C_IE,C_II connectivity matrices
% N_EE,N_EI,N_IE,N_II number of presynaptic neurons
% S_EE,S_EI,S_IE,S_II synaptic strength
% S_EL6,S_IL6,rE_L6,rI_L6 L6 Input
% p_EEFail Synaptic failu... |
539713a21e31837f66872015a4bddac62e952c38e3e036e02a881df3a99f7061 | MATLAB | 2,322 | 48 | %% mean-field est With ref. We use parameters and mean Vs to estimate firing rates
% Input: C_EE,C_EI,C_IE,C_II connectivity matrices
% N_EE,N_EI,N_IE,N_II number of presynaptic neurons
% S_EE,S_EI,S_IE,S_II synaptic strength
% S_EL6,S_IL6,rE_L6,rI_L6 L6 Input
% p_EEFail Synaptic ... |
10cca4c40b837743034bb17ad129d5b7de8ccfdcc8d14cccdafc0d3cb8fdd75d | MATLAB | 2,324 | 72 | classdef calling_function_info < handle
%
% Class:
% sl.stack.calling_function_info
%
% See Also:
% sl.warning.deprecated
%
% IMPROVEMENTS:
% ===================================================================
% 1) We might eventually add on a workspace grab of the ... |
700f112de21d1752bd4d2d49e447a577c65cbb05e6fd63d9a21e83e60b2d8256 | MATLAB | 2,327 | 78 | function fig6_compare(folder, save)
%% Figure 6: Sex difference in connectivity
% Subplots/information:
% - Scatterplots comparing in total node in/output
% - Boxplots with ratios
%% Load
if nargin == 0
folder = 'diff';
end
load('structures', 'structures');
load(fullfile(folder, 'data'), 'm1', 'm2', 'ids', 'cat')... |
521cade4704c3f3c5b8a84bd3e010ba149cc4551a5ecd6c141c0a01c7833f9a2 | MATLAB | 2,328 | 62 | %% Doing Gaussian blur to inputs: L6, lgn, etc...
% For new version of network for paper2
% Input: OD_SMap (n_S_HC * N_HC)^2 matrix, representing the spatial ord dom
% L6S_Drive: Input to each domain
% FiltSig: Spatial sigma, should be proportional to mat size
% Trunc: Truncating. relative to sigma... |
ce4c333632cd33f355aa18a2c885cbafd436c43f1e9a24bf0247670fbe0ea854 | MATLAB | 2,328 | 83 | function [states] = multiHolsclaw_State_draw_par(Y, xDat, Omega, rho, sqrl )
%% Inputs:
% Xi : parameters controlling the transition probabilities and the log linear regression term
% Z : Matrix with the Markov property, binary matrix showing which states are present at each time point
% Exo : Exogenous variables used ... |
ad81870ab325159049675efde09413d80a6d1d7eb0f97cbf0ee76abce76757b0 | MATLAB | 2,332 | 59 | function ITS20191031
global SpikeArray RpegTouchallWon LpegTouchallWon TurnMarkerTime fname tfile ITS FLName dpath3
bin1=20;
phaseR=zeros(1,bin1);
for i=1:length(RpegTouchallWon)-1
for j=1:length(SpikeArray)-1
if RpegTouchallWon(i)<SpikeArray(j)&&SpikeArray(j)<RpegTouchallWon(i+1); %%^b`Ô... |
2c85bcec974c564f4f738ac38d5bb4fabc820449051a0f6b66e70a5603b3ceff | MATLAB | 2,336 | 50 |
%% SVM Place decoding
% Load the sample data from the provided MAT-file
load ensemble_sample_data.mat
% Initialize a matrix to store accuracy results, with dimensions corresponding to the third and second dimensions of the input data
accuracytotal=nan([size(all_sessionsfloor_iteration,3) size(all_sessionsfloor_iterat... |
866694d557849d5b59399aff00c90f2afad2c21cd4236e1594f943a92ee88794 | MATLAB | 2,337 | 64 | function normalize_bursts(app)
%NORMALIZE_BURSTS Summary of this function goes here
% normalizes the burst amplitude ant integral by the amplitude
% of the highest burst in the "baseline_interval"
ts = app.burst_res.ts(1):app.burst_res.ts(2):app.burst_res.ts(3);
if app.chkbx_normalize.Value
bsln_int = find(... |
045402c048ede80ad53aea780e82cfe1558c7fdb201022bb14857cb6ebc82fd6 | MATLAB | 2,341 | 87 | clear, close all
load data.mat
%% Prepare figure
startt = t(1);
endt = 6.5;
f = figure(1);
f.Position(3:4) = [350 800];
f.Color = [1 1 1];
tile = tiledlayout(6,1, "TileSpacing", "compact", "Padding","compact");
Vexc = unique(dVexc);
ax1 = nexttile;
ax1.LineWidth = 1;
time = t(dVexc == Vexc(1));
curr = ... |
f3f4ada83adea250a9787dcdc22526f58dfa6b7f470781dfc69cf6d73f7dd59d | MATLAB | 2,342 | 92 | function [binary threshold globalcosteffmax costmax ef]=threshold_global_cost_efficiency(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 efficiency... |
af09046eab8a561c70dbec513badaaf7faec01e8e075d46628f2f7274b7ca9bb | MATLAB | 2,345 | 90 | function c = get_water_content()
marsbar('on');
anat_dir = '/home/romain/data/spectro/hipo/repro_study/anat';
aref = get_subdir_regex(anat_dir,'HIPO_..$','t1mpr','seg8');
c1 = get_subdir_regex_files(aref,'^c1.*img');
c2 = get_subdir_regex_files(aref,'^c2.*img');
c3 = get_subdir_regex_files(aref,'^c3.*img');
i... |
0b3c6aea422fd3854ea45cab9e14e5b5f2b6a3984fdd2602ffbaee7294c86e26 | MATLAB | 2,346 | 50 | %% Plot Stuff -------------------------------------------------------------
[Ntotal,~]=size(XY_selected);
[Nmerged,~]=size(XY_merged);
% Get Indexes of Selected Ones that CoLocolize:
[~,~,MergedIndx]=intersect(XY_merged,XY_selected,'rows');
NotMergedIndx=setdiff(1:Ntotal,MergedIndx);
MetaDataColocaliation.PositiveCells... |
8196f2bd2e5d3a0f7618e65704294d14a55efaeef8fa06cebddad039dafb292f | MATLAB | 2,346 | 88 | %% before and after lfp cimogenctics
clc
clear
%load all files to one big file
[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)
mkdir('statistics')
datafile = fullfile(path, file); %save path
%%
NDname... |
c70fc0a6b0ba5785b832a65551600039e92f14072bef26a6c1cae3ea0c8ec942 | MATLAB | 2,347 | 75 | function res = deleteUnit(obj, spikeClusters, unitID, metadata)
%DELETEUNIT Speculatively delete a unit, returning a snapshot of the
%spike table and metadata fields.
if nargin < 4
metadata = struct();
end
res = struct('spikeClusters', [], ...
'metadata', []);
indices =... |
f28edb469e1ea534f6755fd90b00b82bd0c5400803e1e4a6ea5212a806a96974 | MATLAB | 2,350 | 67 | %% Function to load fluorescence signals from videos
% using the ring acquisition method
% Input
% mov: video of grayscale pixels
% XY: Coordinates of active signals
% If ImPatch/fSIENN ROI File
% r: vector array of circle's radius
% If ImageJ ROI File
% r: cell of pixels in ellyptical ROIs
% Output
% Flu... |
b1fcfda45b1b66f58ae0b70114ec4a95a4e459cc51cb43be8bee44b50d27c831 | MATLAB | 2,351 | 66 | function [data] = JT_processFP(data,params)
%Process Fiber Photometry
%
% [data] = processFP(data,params)
%
% Description: This function is designed to process fiber photometry data
% for the lab. The function performs demodulation (if selected),
% filtering, baselining, and downsampling for all photomet... |
c0aa093c32a33af810c2bb369e39d78d88c4d41b3b4cbe244ee08fad610c6e6e | MATLAB | 2,351 | 72 | % Funtion that reads Names and Directory of Videos
% and loads coordinates
% Input (same directory) from dialogue:
% ALL (XY).csv
% Condition_A_00.avi
% Condition_A_01.avi
% ...
% Condition_B_00.avi
% ...
% Condition_Z_XX.avi
% Output
% Names_Conditions
% NumberofVideos (per condition)
% FN{}: Str... |
0a326c765d2942139b1bd878b606071c290d0debfda88bcfde05ccbc911827a2 | MATLAB | 2,354 | 90 | % Comparing different multichannel fetal ECG denoising methods
% Reza Sameni, copyright 2018
%
clear;
close all;
load('FOETAL_ECG.dat'); data = FOETAL_ECG(:,2:end)'; time = FOETAL_ECG(:,1)'; clear FOETAL_ECG; fs = 250;
L1 = size(data,1);
L2 = size(data,2);
% BW removal
bl = LPFilter(data,1.5/fs);
x = data - bl;
% ... |
033c1d61fc7417a0ad8604e581ef09d8e26411a3fa2caced0d98c7e61cea0423 | MATLAB | 2,357 | 86 | function [confusion_matrix, correct_or_not] = odor_response_classifier(data, shuffle_labels)
%% Odor response classifier
% Input:
% data: struct with binned spike counts for odor trials
% data.(odor) is a matrix with dimensions: units x time x trials
% data.time is a vector spcifying the time bins
%
% Ou... |
7ae1822e3e12fe5fc9b8a4cad6cac68c1a7b20f7c3550eb7f66d50aa6d84d046 | MATLAB | 2,359 | 54 | %% Script to plot Hebbian Stairs: *************************************
% Sequence of neuronal ensembles
% Ouput Figure of same axis limits
% N conditions
% Hebbian Sequence (vector)
% Color of Ensembles
%% #####################################################################
if exist('Features_Condition','var')
... |
a293cbff9fcf9b60e3fae5dc5734b948f8eb44a6d0e2b7055b8f9ecdca0a19ac | MATLAB | 2,359 | 54 | function [peth] = getClusterPETH (st, events, peth)
% Peri-Event Time Histogram (PETH) - alignment of spike times to event time
%
% [peth] = getClusterPETH(st, events, peth)
%
% INPUT
% Note: all inputs must be in same time scale (e.g. seconds)
% 'st' - cell array with spike times
% 'events' - vector wit... |
ffd3b65b9a42dcf5831eb2589f03952386e436691c097f70f21389cb40d9dc00 | MATLAB | 2,359 | 66 | function [f,df,u,du]=IOT1D(J0,J1);
% The goal is to find the mass preserving transform of a 1D pdf into another one
% df(x)*J1(f(x))=J0(x)
% Input:
% J0,J1= PDF functions (Normalized 1D functions of the same
% size). Note that J0 is the template signal.
% Output: ... |
053678bc435ccb6a56b9de3091cb725109f2916571ace29478a277e25c6280f5 | MATLAB | 2,360 | 68 | function [ cols,alpha ] = chooseColors( input_args )
% chose colors for different session types
% HAB
% FC
% EXT
% AA
% AA vert
%%
alpha = .4;
cols(1,:) = [1 1 1]; % white
cols(2,:) = [1 .5 0]; % orange
cols(3,:) = [0 .5 1]; % blue
cols(4,:) = [.3 .8 .3]; % green
cols(5,:) = ... |
6788a55e411d22912a7fcc90cbac0527a0d236026f61098ff9ff68e1b395a6f3 | MATLAB | 2,360 | 96 | function c = get_water_content_servier(cmet)
marsbar('on');
pp.verbose=0;
anat_dir = '/servernas/home/najib/copyservier';
%suj_dir = get_subdir_regex(anat_dir,'rett')
c=cmet;
for npol = 1:length(cmet)
suj = cmet(npol).suj;
for ns = 1:length(suj)
sujname = suj{ns};
ii=findstr(sujname,'_');
s... |
c264b9cd69c03ba394c41c43ea8905d80daa451e8cc0bfab20574f4a5f38c8d9 | MATLAB | 2,361 | 68 | function validateParams(obj)
%VALIDATEPARAMS Validate parameters and compute others
if obj.nSites == 0
obj.error('No siteMap specified', 'Bad probe configuration');
end
if size(obj.siteLoc, 1) ~= obj.nSites
obj.error('Malformed probe geometry', 'Bad probe configuration');
return... |
d17e9e31f4f4dd80eb9207de0205af0e36f48f919e8b71f3e4d47850759cf5cf | MATLAB | 2,361 | 61 | %% all magnitude index
%% load all data files
clear
clc
[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
%% calulate
count = 0;
window_names = {'ON', 'Sustani... |
1d97fea7b910d4ddf56a74cd8eb03096e83eb0396a8d77744dd59ad9d0148a4d | MATLAB | 2,362 | 71 | load fisheriris
Mdl = fitcdiscr(meas,species, 'DiscrimType','quadratic')
figure, % nexttile
gscatter(meas(:,1), meas(:,2), species);
hold on
scatter(Mdl.Mu(:, 1), Mdl.Mu(:, 2), 100, 'xK', 'LineWidth', 1.5)
hold off
% nexttile
% gscatter(meas(:,1), meas(:,3), species);
% hold on
% scatter(Mdl.Mu(:, 1), Mdl.M... |
d69f6096fd5f4323010529818b8f3ca49a0bdcd33438e7293d632ea2d4f1a36a | MATLAB | 2,363 | 60 | function [SBJ]=optim_Arb(maxi,mode,PreBehav,PreBlck,MainBehav,MainBlck,list_sbj,param_init)
tt = clock;
path_local = '/PATH/TO/LocalDIR/';
for ppi = 1 : 6
rng(floor(tt(6)*1000));
param_init(ppi) = randi(20)*(mode.param_BoundU(ppi) - mode.param_BoundL(ppi))/20 + mode.param_BoundL... |
a83984639235e2353c664395655699e9c8214a46d613eec59c0efb7720a49c25 | MATLAB | 2,364 | 73 | 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 = ... |
ebdcb84835884f30f6a2e8b2ee3ad4fc99a58574429a9a55816c096936aae711 | MATLAB | 2,364 | 73 | 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 = ... |
0f423b2c3a419417e0fce6eec5990d6f855cac5ea9f6814ddc894571009ab105 | MATLAB | 2,365 | 63 | function [ref] = findRef(modFreq,refSig,Fs)
%Find reference signal
%
% [ref] = findRef(modFreq,refSig,Fs)
%
% Description: This function goes through all the reference signals in
% the refSig cell and tries to find the signal that corresponds to the
% input modulation frequency using an FFT with a +/-5Hz... |
61a4312facf60ef48917d27da02904a0e0b85d2175cb0ef0745e15623d46f537 | MATLAB | 2,367 | 65 | function [spk] = getSpikeProp(clusters)
%Cluster temporal properties from spike times
%
% Description: This function will use cluster spike times to compute
% temporal/spiking properties for each cluster.
%
% [spk] = getSpikeProp(clusters)
%
% INPUT
% 'clusters' - structure containing cluster spike time ... |
852f20afc6025ed4c228f9c200bfdcef86d4639c002b43b45b3ccfaa4d3508e1 | MATLAB | 2,368 | 55 | [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
old_int_encoding = [];
new_int_encoding = [];
all_cells = 0;
for i = 1:length(datafile)
load(dataf... |
053833a80c63aa231e7465e7abadb7dc890a8adc8dd1fd2037ccdb2bdd2cf4f0 | MATLAB | 2,371 | 65 | function [pval, stats, distRatio] = checkResponsive(stimTrials, blankResp, distType)
%% info
% function determine whether PSTH is responsive
% logic: if a unit is responsive to a stimulus individual trial responses
% should be more similar to the average stimulus response (excluding that
% trial) than to the average b... |
e48daf3b18a52e0ca697f31b08f64a1940ec68aa08339ee9df273e9bad45a8e7 | MATLAB | 2,371 | 63 | function Workspace1 = Add_CB_Branch(Workspace1,Figure_Handle,H_Ax1)
% assignin('base','Workspace1',Workspace1);
Scale_Factor = Workspace1.User_Input.Scale_Factor;
R1 = Workspace1.Parameters.Auto_Tracing_Parameters(1).Rect_Length_Width_Ratio;
R2 = Workspace1.Parameters.Auto_Tracing_Parameters(1).Rect_Step_Length... |
70bc389d18df0e48b789e6e1c59715ec6529c0425a2e8a57cddca62e79797cfa | MATLAB | 2,372 | 72 | % function cluster_combineCoils(reconParsFile)
% _skipMoCo version strips out all MoCo to speedup getting through ASPIRE
% pipeline for testing
load(reconParsFile)
run([RETROMOCOBOX_PATH '/addRetroMoCoBoxToPath.m']);
% run([MIRT_PATH '/setup.m']);
addpath(SPM_PATH);
% parfor doesn't like some stuff... have to make ... |
8239d95dbb61b3284a55f92d4340d03e51425ec836c31e26cda610cf8f17afb6 | MATLAB | 2,372 | 29 | function [Distance_Matrix_Num,Distance_Matrix_Length] = Vertices_Recursive_Walk(Vertex0_Index,Vertex_Index,Previous_Vertex_Index,N1,L1,Segments1,Fs,Distance_Matrix_Num,Distance_Matrix_Length)
F1 = find([Segments1.Vertex1] == Vertex_Index & [Segments1.Vertex2] ~= Previous_Vertex_Index); % Find all the segments that a... |
53b9184a79b625af0a9835e1761f79c6fc67dfff0c0d5dfef1eb931202c5ddf9 | MATLAB | 2,377 | 72 | function results = stepwise_regression(app)
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
ds = app.edt_reg_downsampling.Value;
channel_idx = find(strcmp(app.popup_signal_to_predict.Value,app.popup_signal_to_predict.Items));
[data_p,ts_p,name_p, ~] = current_signal(app, channel_idx);
na... |
5cfceb5745c76eb68965b421ebdff513e5dbdebac49debb992d50372ce687762 | MATLAB | 2,378 | 61 | function [F, pValue, SSR_Y, SSR_XY, df1, df2] = granger_causality(X, Y, maxLag)
% This function calculates Granger's causality test to determine if X Granger-causes Y.
% X and Y are the time series data.
% maxLag is the maximum number of lags to be considered in the VAR model.
% Ensure that X and ... |
3a800db3c1b764204d22b3cdf3279c2ddcd124686fa18afe38dde07372235317 | MATLAB | 2,379 | 64 | % Construct a symmetrical input map!
function [PixInptCtgr,PixInptCtgrUse] = SymInptCtgr...
(N_HC,N_HCOut,n_S_HCsur,n_I_HC,NPixX,NPixY,ODNum,...
L6smear,LGNsmear,Trunc,FigOn,PixNumOut,LGNlist,L6list)
[NnSsur.X,NnSsur.Y] = ...
V1Field_Generation(N_HC,1:n_S_HCsur^2*N_HC^2,'e',n_S_HCsur,n_I_HC);
NnSPixels... |
aa450acf2adeef7f4b6dc14cb0bc7739826c3466cc00856fd1673ed675e34957 | MATLAB | 2,379 | 82 | %% Raw LEMON dataset
% preprocesses RAW LEMON dataset
% 1. import data
% 2. ADD EEG positions
% 3. Resample EEG 250 Hz
% 4. High-pass
% 5. Make PSD to verify quality
cd('/Volumes/Seagate Portable Drive/LEMON/ftp.gwdg.de/pub/misc/MPI-Leipzig_Mind-Brain-Body-LEMON/EEG_MPILMBB_LEMON/EEG_Raw_BIDS_ID')
files_EO=dir('sub*... |
2f46596da44b85643d5204e9b5409e6cdd316bbe39f38d7b40769ea37395dac8 | MATLAB | 2,381 | 77 | function M = spmup_auto_mask(varargin)
% Routine to compute a mask from V, a time-series of memory mapped images.
% This gives a similar (but more inclusive) mask than SPM. Data are
% smoothed and the average is used as the mean above threshold * by all
% voxels that have non zeros differences in the time series
%
% F... |
0dd6fdd85b78907eda5a29459e953053024be3d95f4f9bb6786f0a6efbc2f8d0 | MATLAB | 2,383 | 68 | function map = loadmap(var,src,experiments,nodelist)
% This function creates a weighted, directed graph based on the projections
% data. For every experiment a source node (injection site) is determined
% and the connection strength from source node to target nodes is equal to
% the projection strength. Target stru... |
00c1532a39e604ba54fc9c0c7baae5453555550326a65c2ab98494646272dcb3 | MATLAB | 2,386 | 84 |
%{
----------------------------------------------------------------------------
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... |
dd5508cb36074812f970374e44fb97a0d8dd62512f373795e2fe3c77aff6a23d | MATLAB | 2,386 | 73 | %% Script that re-generate Video, Signasl & Raster animation:
% Load .mat File
% Set Video, Condition and Coordinates
%% Get Video Intel:
% It require to load Experiment
% W & H must be the same in all experiments
CurrentPath=pwd;
fprintf('>>Getting Video Frames Size.')
[FileName,PathName] = uigetfile('*.avi',['Selec... |
3ead0a54e79bfea3d2e36b5a93ce38f42ceedf182cb6f8c8ecd750f182b56967 | MATLAB | 2,389 | 78 | %
% Test program for generating single-channel ECGs with additive colored
% noise
%
% Dependencies: The synthetic ECG generator and noise generator package of
% the Open Source ECG Toolbox
%
% Open Source ECG Toolbox, version 1.0, November 2006
% Released under the GNU General Public License
% Copyright (C) ... |
3190128a9c39d3f9ae2c3a4246591723d56501934ba03a946e1ed4218f98b448 | MATLAB | 2,390 | 85 | function cell2csv(fileName, cellArray, separator, excelYear, decimal)
% Writes cell array content into a *.csv file.
%
% CELL2CSV(fileName, cellArray, separator, excelYear, decimal)
%
% fileName = Name of the file to save. [ i.e. 'text.csv' ]
% cellArray = Name of the Cell Array where the data is in
% separator... |
4644662ccd345f621f736d1a3bb0a1ee65e711b27c62f2c1ab14fb68b7d97661 | MATLAB | 2,392 | 78 | function validateFigs(obj)
%% validates figure list and positions, and fills in with defaults if no positions specified
if ~isempty(obj.figPos)
if numel(obj.figList)~=numel(obj.figPos)
error('Error parsing params: size of figList does not match size of figPos in param file!');
end
... |
792a14d28fe8d0f08d5d92e9f34157956c0c71c5b4e429084a8fd54cbeeddce0 | MATLAB | 2,393 | 68 | function get_heuristic_sorting(p)
% heurisitc approach for automatic annotation: we sort cells by various
% criteria and generate a sorting which reflects the 'quality' of the
% different extracted cells
for sub = 1:p.nSubjects
tic
thisSub = p.subjects(sub);
% load event data
fpat... |
b1fe0a6c65fcc582211176a5f53f565f5761ef613d96e696e26ce16a41961f4b | MATLAB | 2,393 | 51 | function FourierAnalysis(SpikeTime,StartTime,FinishTime)
global fname dpath DrName TurnMarkerTime OneTurnTime TimestampArray...
LFPsamples_Run AllTurnLFP AllTurnLFPplus fs ValidTurn
%timestampsÍ270336¸ÂÁB270msÆvíêéBtimestampsÌ512ÂÌTvB
%270336/512=528. TvOÍ0.528ms²ÆBfs=1... |
cc004399ff255eea76c1b687d67dab0955f82f932a15141803908e03b6b6674e | MATLAB | 2,393 | 84 | % Function to plot Rainclouds for multilple paired/unpaired measures
% Input
% MMeasures: String 'paired' onnly if paired measures
% ColorsN: Matrix Colors for N inputs,
% bda_init: Plot parameter,
% bdam_init Plot parameter,
% varargin: N vector Inputs or Cell
% Output
% bda_final Plot paramet... |
db59edf22d4a1db85b48ac4c5e6137b3c356a98105fbc918a9a37389b3b96055 | MATLAB | 2,393 | 96 | function c = get_water_content_pas(cmet)
marsbar('on');
pp.verbose=0;
anat_dir = '/servernas/images2/romain/data/spectro/PROTO_U731_CERVELET_TMS/anat';
%suj_dir = get_subdir_regex(anat_dir,'rett')
c=cmet;
for npol = 1:length(cmet)
suj = cmet(npol).suj;
for ns = 1:length(suj)
sujname = suj{ns};
... |
9796e4f3ce733df46aaac75f0083cc957b391f1951893cd8606883e947f79d9c | MATLAB | 2,395 | 75 | function viewphotometry_fox_odor(root, animals)
%VIEWPHOTOMETRY_FOX_ODOR Colour map and average PSTH of simplified fiber photometry data.
% VIEWPHOTOMETRY(ROOT, ANIMALS) creates colour map and average PSTH of fiber
% photometry data recorded from single sessions of from path ROOT with
% folders named ANIMALS... |
cdd47477acea390c532eda2b366f3682fcd38ff92a18658a01f352c05afb9ffe | MATLAB | 2,397 | 66 | function [fig] = plotwfisi(data, varargin)
% plotUnits - Plot unit waveform and log-ISI distribution
%
% [fig] = plotwfisi (data);
% [fig] = plotwfisi (data, units);
%
% Description: This function plots histogram of spike times over the
% length of silicon probe recording along with average waveform and
... |
ebfef398c5bb3edce007a38a30e8e8230fdf9ba1610f84daab1ad86f1efbb8c1 | MATLAB | 2,398 | 66 | %% Save Processing-Features of RASTER Activity: p(++), p(-+), p(--),p(+-)
% Get N videos and N conditions
[Nv,Nc]=size(ESTSIGNALS);
NNeurons=length(XY);
% SETUP ACCUMULATIVE ARRAYS
%EXPNAME=[];
FLUOROPHORE=[];
CONDNAME={};
COORD=[];
RAD=[];
SNRW=[];
SNRL=[];
SKEWDEN=[];
LAMB=[];
ODDS=[];
for c=1:Nc
for v=1:Nv
... |
f405d6824b0dc639fd1009c1abe40264f1d965ad706cf53a2f518a3a3f1f6299 | MATLAB | 2,399 | 66 | %% Script to define Default Settings
% If Yes: Modify each part
% If No: Ask if load initial default Settings
% If Cancel: Nothing Done
Modify = questdlg('Set Default Settings for Processing?');
clc;
if strcmp('Yes',Modify)
%% Set Directories
% Read Experiments ***************************************
button... |
2f85af74fe5f1eb8a184bdd4703757cbae6d7eeb64b41de04133ace79bd08a62 | MATLAB | 2,400 | 70 | function estimatedPower = permutationTestPowerAnalysis()
%%
% Parameters
nSimulations = 1000; % Number of simulations to estimate power
sampleSize = 300; % Number of observations per group
effectSize = 0.5; % Mean difference you want to detect
nPermutations = 1000; % Number of permutations for each test
alphaLev... |
427cbe770dcaab02bc0257c5c06e9cc005c5c43e7d9b5573b7c6d0015a1ee5cb | MATLAB | 2,406 | 64 | function outliers = detectOutliers(p)
% first detect and remove outliers:
% sometimes broken frames cause high variance signals, these can be
% detected via the variance over all cells
if strcmp(p.experimentName,'2DAA')
var_thresh = .07;
elseif strcmp(p.experimentName,'2TAA')
var_thresh = .08;
... |
4d11955353cf6624e028f8d6c10eceb195053213eda89a8422d78b1b5c9a6369 | MATLAB | 2,412 | 93 | function [states, trans_prob] = Holsclaw_State_FB(sqrl, Z, xDat, Omega, X)
%% Inputs:
% Xi : parameters controlling the transition probabilities and the log linear regression term
% Z : Matrix with the Markov property, binary matrix showing which states are present at each time point
% Exo : Exogenous variables used in... |
3aa6f1f7d596356a5b1c15c753d157dc2a31c7c2633f5a8b74b71673d60854cb | MATLAB | 2,413 | 113 | function [conc]=get_result(file_sel,waterref)
%for 3T data
RESONANCE_FREQ = 123.25;
%for 7T data
RESONANCE_FREQ = 296.5917;
if ~exist('waterref')
waterref=0;
end
root_dir=pwd;
dir_sel=get_parent_path(file_sel);
for npool = 1:length(dir_sel)
% aa = get_subdir_regex_files(dir_sel{npool},'.*\.COORD');
F =... |
939f709201d1508c9d71b674ce4a4adbed02b46f456a914944752a34602d6fae | MATLAB | 2,413 | 63 | function [Z96_train,Z96_test,A_mean,EIGENV,Z_train,Z_test] = PCA_decomp(train_features, test_features)
%3. Perform PCA analysis on the training set and project the test set onto the training set.
%Shinjini Kundu (c) 2014
%Uses the PCA trick described in the paper Cootes TF, Taylor CJ, Cooper DH,
%Graham J, Activ... |
1a02dc562f6dd9364f1782d66ed5c2fd96a071c784099e75eaad03bbab9533a6 | MATLAB | 2,414 | 84 | function area = area_of_cap(dim, s_cap)
%AREA_OF_CAP Area of spherical cap
%
%Syntax
% area = area_of_cap(dim, s_cap);
%
%Description
% AREA = AREA_OF_CAP(dim, S_CAP) sets AREA to be the area of an S^dim spherical
% cap of spherical radius S_CAP.
%
% The argument dim must be a positive integer.
% The argument S_CAP mus... |
c4a6a7dccf795a630e1fb78217167e3548ef3eb3ac4e3556669a7139c2e5c63f | MATLAB | 2,415 | 49 | % Authors : Tatjana Schmitt & Simon Wadle 2019-2023
function [stimulus_responses_zscore, stimulus_responses_meanact] = tone_evoked_activity(dF_F_image_resized, time_points, z_score_threshold)
% function needs start and end times, dF_F_res. image, start and end times
[x_pixels, y_pixels, ~]= size(dF_F_image_re... |
f1702773103b0b5612d0d007325a690946fbb0ab6ba3efa94511570f78fc38ec | MATLAB | 2,415 | 80 | function seqOut = cutTrials(seqIn, varargin)
%
% seqOut = cutTrials(seqIn, ...)
%
% Extracts trial segments that are all of the same length. Uses
% overlapping segments if trial length is not integer multiple
% of segment length. Ignores trials with length shorter than
% one segment length.
%
% INPUTS:
%
% seqIn ... |
105fd441955ff6dffb780fd8a99ad7db7fa499c5a4cb25c82748db68e8a55dfa | MATLAB | 2,416 | 88 | %% compare FA fit collectively or separataely
fileNames = {'FA_normal';...
'FA_fitSep'};
plotTitles = {'fit together'; 'fit sepaarately'};
sessionTags = {'M22027', '20220517';...
'M22029', '20220607';...
'M22031', '20220524';
'M22032', '20220621';
'M22033', '20220706'};
dataDir = 'C:\Users\edwar... |
6962e539a1cdf44bead8fbf2ef3a0f2e9650e007777a60e37ceebb69fbf9fab6 | MATLAB | 2,417 | 60 | function [out1, out2, out3] = example_cluster(cellid)
%EXAMPLE_CLUSTER Example cluster of a tagged neuron.
% [O1, O2, O3] = EXAMPLE_CLUSTER(CELLID) plots MClust projections and
% waveforms, calculates ID and L-ratio for CELLID. Spike shape correlation
% between light-evoked and spontaneous spikes is calcula... |
5723955fd3506f77d7bc75e024d6f43d901ec7f281b42fe3cfe8b8c74be278a0 | MATLAB | 2,419 | 79 | function [WalkTimeAll]=File_search_WaterApproach
global h h2 dpath dpath2 dname
global h dpath dpath2
dpath=uigetdir;
cd(dpath);
h2=ls;
WalkTimeAll=cell(1);M=0;
for n=1:length(h2(:,1))
fname=strtrim(h2(n,:));
if ~isdir(fname(1,:)) && ~strcmp(fname,'.') && ~strcmp(fname,'..') %if strcmp(fname... |
7f7228d6d2a5020f7c9812d678dbfa865a0adc299f1dacd5ae2fdb711eda5683 | MATLAB | 2,419 | 91 | % Kalman filter based on autoregressive model
clc
clear
close all;
load('SampleECG1.mat');
% load('dataEEG.txt'); data = dataEEG(:,11)';
% data = load('eeg.txt')'; %data = data(5001:20000)';
load LPFilterCoefs50Hzfs250Hz h
fs = 250;
% x = filtfilt(h,1,data);
x = data;
% x = data + (5.5+sin(2*pi*n... |
d36fa0e4b5145e50b5c9429491665c75e3404d3c8baed53107ec8cf837e2fe64 | MATLAB | 2,420 | 82 | %% per session vs per mouse vs per cell
clear
clc
cd('I:\My Drive\ELYASHIV\PFC_paper_results_after_revision\response statistics per erea')
%%
C57 = importdata('C57_ALL_CELLS.mat');
%%
%%
per_session = grpstats(C57,"file_name", "mean", DataVars=["Is_reponsive_and_IR","Is_reponsive"]);
f1 = figure;
f1.Posi... |
bc65d7e4603396196c8c3f5d7e1baf0b00e3bdfbd2e134be6ff32ad7b7594e22 | MATLAB | 2,421 | 73 | function [n,x,h] = rst_hist(data,varargin)
% rst_hist is a simple histogram plot with optimized number of bins by defailts and
% all the graphic options available (ie no need to set(get(gca), ... )
%
% FORMAT [n,xout,h] = rst hist(data,bins, 'BarWidth',BarWidth, 'LineWidth',LineWidth, ...
% 'FaceC... |
7e25a2e6aa43cd2a434142e88caf4f3db6d771ed84d690c81b91545fc747388f | MATLAB | 2,422 | 60 | clear
clc
%%
%load clsuters file
[file2, path2] = uigetfile('clusters.mat','MultiSelect','off');
clusters_file = fullfile(path2, file2);
load(clusters_file)
close all
%%
%load all data files
[file, path] = uigetfile('*.mat','MultiSelect','on');%When the user clicks the load psetion button, a window should open to enab... |
b00a16d41fac97c5ceacc03bd74aa24ce92d16a2a60760f239e0a51f4ac3bff6 | MATLAB | 2,423 | 57 | function [pfitData]= getPfitData(pfit_input,dir,prethresh95CI)
%check out http://bootstrap-software.org/psignifit/ and http://bootstrap-software.org/psignifit/publications/wichmann_hill_2001a.pdf
global use_log %AZ 2023_07_11
pfitData.valid_thresh=sum(~(pfit_input(1:end,2)==0 | pfit_input(1:end,2)==1))>1; %the... |
d1eab812125c154884ab1c4b97824fca952ff57a72edca159a36138c586c2768 | MATLAB | 2,424 | 78 | classdef file_viewer
%
% Class:
% adi.file_viewer
%
% This class was a work in progress. I'm not currently working
% on finishing it ...
%
properties
end
methods
function obj = file_viewer(file_path)
%
% obj = adi.file_viewer(fi... |
b0cdf491ebea02b17120d7f483d971ba88873f3226518726397009b8f7094267 | MATLAB | 2,425 | 94 | function PlotRepeatTouchSpike(TouchIntervalSet,SpikeA,NN)
%ÅÌ^b`ðî
K=[];
% NN=300:50:700;
Hist2=cell(length(NN),4);
for n=NN
for m=1:4
B=[];
eval(['TI=TouchIntervalSet.TI',int2str(n),'_',int2str(m),';']);
if sum(TI)>0
for k=1:length(TI(:,1))
... |
20271d973d15a89c57a90e35e4da467835137c1f75593160ce9f9f992516d551 | MATLAB | 2,427 | 48 | %% Fig1J RdLight1 Saline vs Reserpine
% Choose and load the appropriate files
clear all;
[FPfiles,FPpath] = uigetfile('*.mat','Select FP Files to Analyze','MultiSelect','On');
if isempty(FPfiles)
fprintf('No Photometry File Selected!\n');
else
if (~iscell(FPfiles)); FPfiles = {FPfiles}; end
load(f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.