sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
09d6b3621896b206f10a9cd997d110d7db1bc616f32f1c03dd40a026f6a9cc84 | MATLAB | 2,997 | 90 | function decoder = train_beamformer(cfg0, X, Y)
% [decoder] = train_beamformer(cfg, X, Y)
% Trains a linear decoder "beamformer style" to optimally recover the latent components as
% prescribed in X. Several decoders may be trained indepedently, corresponding to several
% latent components.
%
% X ... |
feb7dfc6fcfad76d1634e44ed13d5071b5c44eb5031e55b38f55d864446c0f0c | MATLAB | 2,997 | 50 | function [ trainPerformance,testPerformance, trainrmse, testrmse ] = LinearModeling (Input,Target,Inds)
trainrmse= cell(1,size (Inds,1)); % cell array for saving the RMSE values for train set
testrmse= cell(1,size (Inds,1)); % cell array for saving the RMSE values for test set
trainPerformance= zeros(1,size (Ind... |
a630ed624472a7803f21c1f6ba0a389db62cc86182bba4ec501b61d0f6ef4b14 | MATLAB | 2,998 | 95 | function saveVelocityFieldVideo(wvcfs, vfs, vidName, vidFps, ...
Fs, resizeScale, vfScale, useAmplitude)
% Function to write amplitude or phase maps and velocity fields to a
% video file
% INPUTS:
% - wvcfs, XxYxT matrix of complex wavelet or Hilbert coefficients
% - vfs, XxYxT matrix of velocity field vectors ... |
d120ac71f6dc3df4cd2fa7e07f4c67f20884dafe5e1e8b8757aeaa8795117b72 | MATLAB | 3,000 | 98 | % PURPOSE : This experimental function creates a new dataset with
% Standard Error of the Mean data in the place of ERP data, for further
% visualization.
%
% FORMAT :
%
% ERP = make_SEM_set(ERP)
%
% INPUTS :
%
% ERP input ERP dataset (generated with SEM 'on' when averaging)
%
% OUTPUTS :
%
% E... |
e6998d5a88ff08ecf22c46cd8d20e48951bde8141e0f15846c2989c23b8f7bfd | MATLAB | 3,001 | 92 | % Intraparietal stimulation disrupts negative distractor effects in human multi-alternative decision-making
% Kohl, C., Wong, M.X.M., Wong, J.J., Rushworth, M.F.S. & Chau, B.K.H.
% eLife 2022
% Script to generate Figure 2c
clear all; close all; clc;
% GLM1
nPartic = 31; % nr of participants
regressor_str = {'HV-LV',... |
ef62c6e0213bcb80aa2e45f66e5269f09a0d31a4788c87c37a3af97eace3c0b5 | MATLAB | 3,002 | 106 | function InitializeAnnotation(self)
if isfile(self.FilePath)
return
end
if self.MultiCam
videoFolderPath = fullfile(self.ProjectPath, 'videos', self.VideoName, self.CameraNames{1});
file = GetValidFolderFiles(videoFolderPath);
[~, ~, ext] = fileparts(file.name);
file(strcmp(ext, '.mat'),:) = [];
... |
09b4d590b95261d787aef744169eedd7759a44c9970bfbdb9212fce893956737 | MATLAB | 3,003 | 65 | function path_new = order_branch(path, ...
endo_cross_prev, endo_cross_cur)
% ORDER_BRANCH Find a path connecting current new cross-section with
% previous.
%
% [path_new, endo_cross_cur_ordered] = order_branch(path, ...
% endo... |
eaeb20483ec8ad6e4ef9c672dcf7a6e2ddca38ca9e62d7835bc7772756653b5f | MATLAB | 3,003 | 106 | function ri = rand_index(p1, p2, varargin)
%RAND_INDEX Computes the rand index between two partitions.
% RAND_INDEX(p1, p2) computes the rand index between partitions p1 and
% p2. Both p1 and p2 must be specified as N-by-1 or 1-by-N vectors in
% which each element is a finite real numeric cluster label. Labels do... |
3a93fdc1d89cd3d2d02ac381549f32d6e69b8f72c5106375661e11c01057dd3f | MATLAB | 3,005 | 80 | function Xhat = decode_pattern(cfg0, decoder, Y)
% [Xhat] = decode_pattern(cfg, decoder, Y)
% Estimate the activity of latent components using a linear decoder, obtained from an
% appropriate training function. Several components may be estimated independently.
%
% decoder The linear decoder obtained from ... |
b17f2def3e9990725efeec8434cd75f9b2e925e17a35e5e5e051aab041dc5e43 | MATLAB | 3,010 | 85 | function [rowcoords, colcoords] = criticalpointsbilinear(vx, vy, edgeDistance)
% CRITICALPOINTSBILINEAR finds the critical points in the 2D vector field
% defined by matrices VX and VY and returns their row- and column-
% coordinates. Critical point coordinates are found through bilinear
% interpolation.
%
% Rory Towns... |
9349e3863f76d5b00a647b04749ab8be79f427b321df256c0062d91707e99da7 | MATLAB | 3,012 | 75 | function step3d_validation_pairwise_decoding200(bids_dir, toolbox_dir, participant, blocknr, n_blocks)
%% Function to run pairwise decoding analysis for the 200 repeat stimuli
%
% @ Lina Teichmann, 2022
%
% Usage:
% step3d_validation_pairwise_decoding200(bids_dir,participant, ...)
%
% I... |
74de28157cf24588aa8625aca3bde045181bead4bf061f3d21b5ee0a44bf2963 | MATLAB | 3,015 | 101 | % PURPOSE: saves or loads the ERPLAB working memory to another location
%
% FORMAT
%
% working_mem_save_load(save_or_load)
%
% INPUT
%
% save_or_load - 1 for save; 2 for load
%
% OUTPUT
%
% Mat-file .erpm written to disk, or memory structure loaded.
%
% *** This function is part of ERPLAB Toolbox ***
% Author:... |
171ffc6aa92ce7436e66893bf5f12f536173c3e04cf1d384bfcbfd3bc48155d4 | MATLAB | 3,031 | 74 | function spikes = remove_outliers( spikes, which )
% UltraMegaSort2000 by Hill DN, Mehta SB, & Kleinfeld D - 07/09/2010
%
% remove_outliers - handles logic of labeling set of spikes as outliers
%
% Usage:
% spikes = remove_outliers(spikes, bad )
%
% Description:
% Handles logic of labeling set of spikes as outli... |
feeabd49a246647d5d921a6da82a53c72a6acbc20a7eec387db2f33648eca256 | MATLAB | 3,031 | 114 | function DB_DeleteTankData(TankID,Warn)
% DB_DeleteTankData(TankID)
% DB_DeleteTankData(TankID,Warn)
%
% Deletes all data associated with some tank id from the database.
%
% By default, a warning is displayed to confirm data deletion. This can be
% overrided by setting Warn = false.
%
% Included tables in deletion:
... |
05747518600324329ade3434e47a4088665297d9b549b384f2d01a0075a024c5 | MATLAB | 3,034 | 89 | %*******************************************************************************
% function: p_poly_dist
% Description: distance from point to polygon whose vertices are specified by the
% vectors xv and yv
% Input:
% x - point's x coordinate
% y - point's y coordinate
% xv - vector of po... |
57abec8646702af9a7a759ecb978aef52b9c3f6bd5ea39ca9cbd9498010680c5 | MATLAB | 3,034 | 75 | function image_noise = NoiseExtract(Im,qmf,sigma,L)
% function image_noise = NoiseExtract(Im,qmf,sigma,L); extracts noise signal that is locally Gaussian N(0,sigma^2)
% Input:
% Im, 2-D noisy image matrix,
% qmf, Scaling function of an orthogonal wavelet filter
% sigma, the noise variance
% ... |
7359ab88d6e663487133c974233126e4ee777d112a3a02650a15107fab5a16b1 | MATLAB | 3,034 | 57 | %% Code which contains the equations:
function out = interactions
out{1} = @init;
out{2} = @fun_eval;
out{3} = [];
out{4} = [];
out{5} = [];
out{6} = [];
out{7} = [];
out{8} = [];
out{9} = [];
% --------------------------------------------------------------------------
function dydt = fun_eval(t,kmrgd,gammaA,gammaB,gA... |
a42e1fdd5097da74fb649a5edd0560fce61762637768874834d87c6cf49db335 | MATLAB | 3,036 | 62 | function Volume_Rect = VolumeRectify(VolumeRAW,xCenter,yCenter,dx,Nnum,depth)
dy = dx;
Nnumdiff = floor(Nnum/2);
[Yresolution, Xresolution, depth] = size(VolumeRAW);
%%%%%%%%%%%%%%% Resample the image %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Xresample = [fliplr((xCenter+1):-dx/Nnum:1) ((xCenter+1)+dx/Nnum:dx/Nnum:Xr... |
7f9951749fa1114179dd454293a63f21699cb77d7f4b9224e990ce2022b410ee | MATLAB | 3,038 | 79 | function plotLFPandCSD(LFP,CSD,depthChan,timebins,cluXPos,cluDepths,anatDir,granBound)
% Get Allen Brain Atlas references
allen_atlas_path = '\\zserver\Lab\Atlas\allenCCF';
st = loadStructureTree([allen_atlas_path filesep 'structure_tree_safe_2017.csv']);
cmap_filename = [allen_atlas_path filesep 'alle... |
a7651aaea583304f0c080f674038c62d2da640527b093d6d10e1fc9dc939f65c | MATLAB | 3,042 | 84 | function [rowcoords, colcoords] = criticalpointsbilinear(vx, vy, edgeDistance)
% CRITICALPOINTSBILINEAR finds the critical points in the 2D vector field
% defined by matrices VX and VY and returns their row- and column-coordinates.
% This method is distinguished from previous methods in that critical point
% coordinate... |
ac13a7e22d1d046f0cfd814adacfad375b9d9fd3759027e9382bbb909a655820 | MATLAB | 3,043 | 90 | %%
clear all
close all
run(['..' filesep 'def_local'])
addpath(path_fieldtrip)
ft_defaults
%%
allfiles={'405','406','407','408','409','410','411','412','413','414','415','416','417','418','419','420','421','422','423'};
nc=0;
for n=1:length(allfiles)
%%% Loading data
fprintf('... loading %s\n',allfiles{... |
1ff12571af5c4540374a76c97e66458ed5151d86c4c7c1b317e8aa5de8ac8de8 | MATLAB | 3,045 | 71 | function edr_stats = eda_edr_stats(eda, fs, edr, iEDR)
% EDA_EDR_STATS Electrodermal response (EDR) statistics
% edl = EDA_EDR_STATS(eda, fs, edr, iEDR)
%
% Input arguments:
% eda - 1-by-n vector of EDA samples
% fs - sampling rate (Hz)
% edr - structure array of electrodermal response (EDR) (see ed... |
30be28d452e10ac4db5cab6341d3f77db82a7a32bc34948acc6fa6c02e1d6431 | MATLAB | 3,048 | 112 | function [pval, k, K] = circ_kuipertest(alpha1, alpha2, res, vis_on)
% [pval, k, K] = circ_kuipertest(sample1, sample2, res, vis_on)
%
% The Kuiper two-sample test tests whether the two samples differ
% significantly.The difference can be in any property, such as mean
% location and dispersion. It is a c... |
44f4a6a122deaf14112ef14ac45a50439f24ac162862003ec384c3513010b048 | MATLAB | 3,051 | 108 | function PL_IGNIT_ALL_PID_RAW
% Function to prepare the regression table for Linear Mixed-Effects Regression Model
% in R
% The metric variables are d here
%
% Fran Hancock
% Dec 2021
% fran.hancock@kcl.ac.uk
%
%
% Function to investigate the relationships between time varying measures
% of CHI OCC HC and PID and the r... |
4ee283bb52bd758cec145fba97c5e3d268a4a9d1427420a5363a54e2b0d25cdd | MATLAB | 3,052 | 93 | clear
Target = 'CP55940';
if ispc
home = [getenv('HOMEDRIVE') getenv('HOMEPATH')];
pat = 'C:\Analysis\AssemblyAnalysis\raw';
cd(pat)
else
home = getenv('HOME');
cd ([home '/MATLAB/MichalDataAna'])
pat = [home '/raw'];
end
bw=0.05;
offset = [-60 60];
Areas = {'HP','PFC'};
... |
a1ba610ead22d515da5c2e13127035c0f49eb3644efd7e5bd13664a5763af5c0 | MATLAB | 3,052 | 85 | function [n_data, n_data_conf, est_conf_tmp, est_p1_tmp, RW_p1_tmp, ...
out_conf, trials_resp_TP, trials_resp_conf, s, ...
all_RT, all_RT_conf, p1_mean, out_conf_full] = ...
load_extract_delta(fn_test, remove_missed_resp, learned_param, a_LR)
% Load the rating data and extract useful information + fit u... |
47c079d11bf2ec59024f9d3d0b4cd78d0031839e3afd16a09cd5ed4f3f8c35d8 | MATLAB | 3,053 | 93 | % Intraparietal stimulation disrupts negative distractor effects in human multi-alternative decision-making
% Kohl, C., Wong, M.X.M., Wong, J.J., Rushworth, M.F.S. & Chau, B.K.H.
% eLife 2022
% Script to generate Figure 2 - figure supplement 1a
clear all; close all; clc;
nPartic = 31; % nr of participants
regresso... |
249de3c8a6f84ea8aa7113e960ceb86d922c2bc6dfe63599b42b328ca932a08a | MATLAB | 3,054 | 86 | function ChannelMat = ieeg_inchannel_curry_pom(ChannelFile)
% IN_CHANNEL_CURRY_RS3: Read 3D cartesian positions for a set of points from a Curry .pom file.
%
% USAGE: ChannelMat = in_channel_curry_pom(ChannelFile)
%
% INPUTS:
% - ChannelFile : Full path to the file
% @===========================================... |
49cb954a329aeaf0bd70920b6191c60e8f621c618efb8323b4ccc9d3fcec83d1 | MATLAB | 3,059 | 93 | clear
Target = 'URB597';
if ispc
home = [getenv('HOMEDRIVE') getenv('HOMEPATH')];
pat = 'C:\Analysis\AssemblyAnalysis\raw';
cd(pat)
else
home = getenv('HOME');
cd ([home '/MATLAB/MichalDataAna'])
pat = [home '/raw'];
end
bw=0.05;
offset = [-60 60];
Areas = {'HP','PFC'};
... |
3a59b60fee047c056d6f05d5446c5606435143947a497af595a5a7d57c28ee53 | MATLAB | 3,061 | 108 | function irepistruct = irepitiming(irepistruct)
% irepistruct = irepitiming(irepistruct)
%
% See irepistructure.m for more info on the struct parameters
%
% $Id: irepitiming.m,v 1.2 2016/04/11 03:19:08 greve Exp $
InvFlip = 180;
s = irepistruct; % copy into s for easy handling
s.tEvent = [];
s.EventSliceNo = []; % s... |
fb33950c2874a3259a05417d1c4ae3c9105c36d3b12ab14e09422523673df361 | MATLAB | 3,061 | 88 | function [Structs, Locs, LocLinks] = FetchOData(endpoint, cellIDs, includeChildren)
%FetchData - Collect data from a database
if includeChildren
childIDs = IO.OData.FetchODataChildStructures(endpoint, cellIDs,1);
cellIDs = [cellIDs; childIDs];
end
cellIDs = unique(cellIDs);
options ... |
f3bd8b8e4852411f1b9c37547b56f08648e90f1e4cc12cda83d1b26b6995ccca | MATLAB | 3,063 | 112 | % Data Quality specification snippet to populate default values
% and verify times are in range
% axs June 2019, ERPLAB
% ams Dec 2022, ERPLAB update: incl'd smaller window for short epoch(<100ms)
function DQ_spec_out = make_DQ_spec(timelimits_ms)
% Check and populate missing args
if exist('timelimits_ms','var') == 0... |
0573ec5002c29859fde135cfb4e80722cccf5b49362a5896491c1da9d3c598db | MATLAB | 3,069 | 93 | % Script to test accuracy of pattern detection for a range of simulated
% pattern types
close all
gridSize = [10 10 20];
alphas = linspace(0.1, 1.9, 10);
alphas = 0.1;
betas = [0.01 10];
noiselevels = logspace(-3, 1, 9);
noiselevels = 0.1;
nreps = 10;
%% Plane wave direction
% Set plane wave properties
amp_pw = 1;
f... |
809a46e174e72d6fbbdad1d74d3e3439b16c79f24bd4e0a35b73a4cdc61947e3 | MATLAB | 3,071 | 76 | function [Accuracy, pCorrect,Accuracyunits,pCorrectunits] = GetBinaryPosteriorProbs(FR,evt0)
% Leave-one out cross-validation error (CVE) Decoder - linear decision boundaries
% Aleksander Domanski PhD 2016 UoB
% Input Variables:
% FR: Firing rate matrix [trial time x no. trials,noUnits]
% evt0: Event categor... |
d03014f82dbbd19f0906330194cc7e2eb0f8f3e41055d620df1b1fd6b292fd95 | MATLAB | 3,072 | 94 | function [output,output2] = analyzetpstack_draw_devices(command, arg2, arg3, arg4)
% ANALYZETPSTACK_DRAW_DEVICES - Register/Remove/Get draw devices
%
% This function Registers, Removes, or Gets the draw devices for
% analyzetpstack. By being added to this list, these draw
% devices are identified to analyzetpst... |
e3011de097cb3f1fff9b1f3e456a543092b2bb7daca22a7d5219498dde060f4a | MATLAB | 3,075 | 121 | classdef v_ERPDAT < handle
properties
ALLERP
ERP
CURRENTERP
Count_ERP
ERP_chan
ERP_bin
Count_currentERP
Process_messg
loadproper_count
count_twopanels
Reset_Waviewer_panel
ERPset_Chan_bin_label
end
events
... |
94d91cf3406ac2b58796a8113df898b204e38a862172cd6db6bef7546c575f62 | MATLAB | 3,081 | 84 |
%==================== PlotSingleCellRaster.m ====================
% Plot raster of neural response to a single stimulus (size-distance
% combination) for each neuron
%
%==========================================================================
close all
clear all
%================= SET PATHS AND LOAD DATA
if ismac
... |
ed1df94fb6b40466911f291b2e0d76c364088bd7120156788c7dfe1707ef5793 | MATLAB | 3,081 | 70 | tic % starts stopwatch timer
se1 = strel('disk', 1);
se2 = strel('square', 1);
se3 = strel('diamond', 3);
r = 1;
for i = 92:2:94 % reads green images (odd numbers)
filename_green = strcat('ASM10_IF2_01d_12h__Stack_', num2str(i), '.tif');
info_green = imfinfo(filename_green);
for j = 93:2:95 % ... |
e9066fc628c8dfb6fa59e83ad38a3183e852bb90e7089c7ed91f322cd5246482 | MATLAB | 3,082 | 84 |
%==================== AllSizePlotSuppFig2.m ====================
% % Plot Tuning diagrams for the mean response of neurons across 100ms Stim
% windows (50-150ms and 250-350ms) for all sizes
%
%==========================================================================
close all
clear all
%================= SET P... |
335283933a3a089dfc11b328c7458d82d10e73cb5c4345875b7baa27d584efc8 | MATLAB | 3,085 | 80 | %% Extract state-space representations for each event in an OH/TOH/OHA/TOHA trial
% The generated state-space representation includes paddle positions as
% well as object positions, speed and values. Object IDs are included to
% make trial-level tracking of objects easier.
% Copyright (C) 2022 Richard Hugh Moulto... |
3537a248c43f673949a88253dcf339c44f31d2ce2b2e7446fb74c0a20c3a4cf6 | MATLAB | 3,087 | 82 | function [TmtxS,iFRs,EvtLs,EvtTs,usel_out]=SelErrorTrials(fn,twin,SelectedUnits,iFRtype,trials)
% Select specified cells from PFC and HC data sets & cut out trial periods
%
% Aleksander PF Domanski PhD UoB 2015
% aleks.domanski@bristol.ac.uk
%
% Corrects for mismatched unit numbers if using data generated on Blue... |
824c1d566e325ab0ae622faa0b655c6982cecdd959a955a04cc51bc3515aac8c | MATLAB | 3,089 | 100 |
%==================== ObjectHeatmapsSuppFig3.m ====================
% Plot bar graphs of the response to faces and next best object response
%==========================================================================
close all
clear all
%================= SET PATHS AND LOAD DATA
if ismac
Prefix = '/Volumes/n... |
7e850cecc9a08f63c50646063d5286f86410dddde2379b551552a8efca750f34 | MATLAB | 3,092 | 57 | %% Code which contains the equations:
function out = interactions
out{1} = @init;
out{2} = @fun_eval;
out{3} = [];
out{4} = [];
out{5} = [];
out{6} = [];
out{7} = [];
out{8} = [];
out{9} = [];
% --------------------------------------------------------------------------
function dydt = fun_eval(t,kmrgd,gammaA,gammaB,gA... |
e3fe42bbcd2fc7174466f6b6e72883055e1c6eea1ec2020ecce4e1ac78ac7815 | MATLAB | 3,093 | 102 | bDir = '..\data\';
dirList = {'1. ABJ','2. JHS(x)', '3. JJH', '4. KCH', '5. SYS(x)', '6. KDH','7. OSL(x)','8. KSH','11. LJJ(x)', '12. SHH(x)', '13. SJH', '15. SSK', '16. BSW', '17. KKM'};
GoodChannel = [2 3 30 6 7 28 29 8 24 25 34 35 62 37 36 63 60 39 58 41 40 57 56 11 12 23 22 15 14 13 19 20 16 17 18 43 53 54 4... |
fbe2871d3420ba4322767c734c764e58446bfefc766879fdc67b32aa4c2fbebd | MATLAB | 3,102 | 115 | function varargout = TDT_SetupRP(mod,modid,ct,rpfile,Fs)
% RP = TDT_SetupRP(mod,modid,ct,rpfile,[Fs])
% [RP,status] = TDT_SetupRP( ...
%
% where mod is a valid module type: 'RZ5','RX6','RP2', etc..
% modid is the module id. default is 1.
% ct is a connection type: 'GB' or 'USB'
% rpfile is the full path ... |
0a6bed4a83be10f3f717ff72754645f7a3baa5a1356289fe98193bddb7477f88 | MATLAB | 3,106 | 115 | function [corr_mat, bvgc_mat, mvgc_mat, bvgc_value, mvgc_value, ...
bvgc_pvalue_mat, mvgc_pvalue_mat, ...
bvgc_fstat_mat, mvgc_fstat_mat] = ...
compute_corr_mat_and_gc_mat (sigma_sim, gcLags, ...
plotFlag, constantFlag, fstat_effect_set)
if nargin < 3
plotFlag = 0;
end
if nargin < 4
consta... |
a361788b460a327ac6e446f489d045c8a27b72c6867cc904d5dd292ca296ad30 | MATLAB | 3,106 | 84 | function [session_info] = read_matfiles_taste(taste)
% READ_MATFILE_FOLDER read the sessions for a specific taste
% INPUT:
% taste: (str) the taste string: sweet, sour, salt
% OUTPUT:
% session_info: the table of all session matfiles
% Get the names of all the matfiles
data_path = util.get_paths().data_not_versione... |
c14042e824a6b6cbd356113f6b429a0ed39716f4bf1dfa4a290663c7c199a67f | MATLAB | 3,110 | 106 | function [] = test_lasso()
clc;
clear;
close all;
%% Set algorithms
if 0
algorithms = gd_solver_list('ALL');
else
algorithms = {'APG-TFOCS-BKT', 'CD-LASSO', 'FISTA', 'ADMM-LASSO'};
%algorithms = {'APG-TFOCS-BKT', 'FISTA', 'ADMM-LASSO', 'CD-LASSO'};
end... |
00304bf574b6f5798c6f898e062615eeaadcb1df76d9ff83b43551a8c5f53309 | MATLAB | 3,112 | 73 | %% This is a demo script to setup variables and run unmixing of lambda stack images.
clc
clear all
close all
rng(5,'twister')
%% Load toolbox and data
toolbox = 'toolbox';
addpath(genpath(toolbox))
% Choose one data set. Remove %{ & %} to uncomment one dataset of interest.
% 1. smFISH mouse tissue
%{
filename = '... |
0124786d67cdf3255b1aeb5b1a26ee6d974c7e52b6f570059e8cb19fded6b10f | MATLAB | 3,113 | 96 | function [ hubscore, hubs] = get_hub_score_bin_und(mat,hubdeff,prcnthub)
% various ways to determine which nodes might be hubs, but the binarized
% version of network functions, which makes some network functions redunant
% and makes some definitions slightly different than the original papers
if nargin<2
hubdeff =... |
c862f12612a17831dee416cda7c39fb2d3440f013036b5b9831d38351bcf31d3 | MATLAB | 3,113 | 94 | function [output,output2] = analyzetpstack_drift_devices(command, arg2, arg3, arg4)
% ANALYZETPSTACK_DRIFT_DEVICES - Register/Remove/Get drift devices
%
% This function Registers, Removes, or Gets the drift devices for
% analyzetpstack. By being added to this list, these drift
% devices are identified to analyz... |
0839eb8770ccaf0dbe1d9517a857da1b5a9ca3ca4ddfa08ac908a577725c4544 | MATLAB | 3,118 | 100 | function [M0, unmixed, image6d, lambda] = main_FCLSU(filename, varargin)
% Function to unmix lambda stack based on Fully Constrained Linear Spectral Unmixing (FCLSU) algorithm
% Perform a Linear least squares with nonnegativity constraints.
% -------------------------------------------------------------------------
% I... |
9744d9a125e25456a26020a4d0233d3377c80fba142a08a65b391666b45caddd | MATLAB | 3,125 | 106 | % Function to set up time-varying spatiotemporal patterns to test optical
% flow calculations and pattern detection methods
clearvars
close all
nx = 20;
ny = 22;
nt = 20;
[x, y, t] = meshgrid(1:nx, 1:ny, 1:nt);
% Optical flow parameters
alpha = 0.5;
beta = 1;
% Pattern detection parameters
params.maxTimeGapSteps = ... |
1c0c3d4baaea7a9e7a133cbab77a57797373754492c775e9bac388ba36bfbb3c | MATLAB | 3,129 | 134 | %% Dartel warp
clear W matlabbatch
Subjs = getSubjects;
sel = listdlg('ListString',Subjs);
Subjs = Subjs(sel);
for i = 1:length(Subjs)
D = dir(fullfile(getSubpath('STRUCTURALS',Subjs{i}),'sc*'));
for j = 1:length(D)
W.images{j}{i,1} = fullfile(getSubpath('STRUCTURALS',Subjs{i}),D(j).name);
end
e... |
e82442b911cd7f2ffa6defc53fcc4cc9c21b8bb6a2486e2c34de286cfc77409f | MATLAB | 3,130 | 117 | function [params_group] = getPriorVariance(params_group, prior_setup)
H = double(params_group.H(:));
D = numel(params_group.T) + 1; % order
R = size(params_group.V,2); % rank
NS_total = 0;
for ss = 1:D
if(ss == 1) %
NS_total = NS_total + prior_setup.V.N_scales;
else %T{ss-1}
NS_total = ... |
c5709a2371d55f914beaeb57ded166e1a30f5cab9f6d360b299dd2761e894175 | MATLAB | 3,134 | 92 | function [output,output2] = analyzetpstack_active_draw_devices(command, arg2, arg3, arg4)
% ANALYZETPSTACK_ACTIVE_DRAW_DEVICES - Add/Remove/Get draw devices
%
% This function Registers, Removes, or Gets the draw devices for
% analyzetpstack. By being added to this list, these draw
% devices are identified to an... |
87108533888ab1fbd1773c552203676347671bd7cb93c8034ba17f4fc04b7bbc | MATLAB | 3,138 | 74 | function slope = getSlope(result, stimLevel)
% function slope = getSlope(result, stimLevel, unscaled)
% This function finds the slope of the psychometric function at a given
% performance level in percent correct.
%
% result is a result struct from psignifit
%
% stimLevel is the stimuluslevel where to evaluate the slop... |
315870ef83fe58e808ba967372bff29b1a9df06f9b512607914d99ed4f6f86bf | MATLAB | 3,141 | 101 | function [mti2,starttime] = tpcorrectmti(mti, filename,globaltime)
% TPCORRECTMTI - Correct NewStim MTI based on recorded times
%
% [MTI2,STARTTIME] = TPCORRECTMTI(MTI, FILENAME, [GLOBALTIME])
%
% Returns a time-corrected MTI timing file given actual timings
% recorded by a Plexon machine (exported Events).
%
% The F... |
2e67d042ec9cb70b57a92d85296c6571027830ed18d4b480070b848b69300659 | MATLAB | 3,143 | 92 | function img = computeColor(u,v)
% computeColor color codes flow field U, V
% According to the c++ source code of Daniel Scharstein
% Contact: schar@middlebury.edu
% Author: Deqing Sun, Department of Computer Science, Brown University
% Contact: dqsun@cs.brown.edu
% $Date: 2007-10-31 21:20:30 (Wed, 31 Oct ... |
a74c512f0fb232d8e8f303bcd8a35807dc6769ed2313fb889ef67962d0e7cafd | MATLAB | 3,143 | 98 | function [plotOutput, plotStats] = dose_response_subplot(inData,cluster, cluster2Plot,xValues, yTitle, xTitle, xTitleMod)
% This function takes the force-response matrix data from the
% dose_responseSort() function, sorts them based on cluster group, and
% plots them
if size(cluster2Plot,1)==0
warning('The... |
97af17ac633c64f3bfa795a415dd7aa6b15b0ae82912821293dd6abf06d7396d | MATLAB | 3,146 | 112 | function NextTrialID = TrialFcn_aversive_SanesLab(TRIALS)
%Custom function for SanesLab epsych
%For use with: Aversive GO-NOGO tasks
%
% NextTrialID is the index of a row in TRIALS.trials. This row contains all
% of the information for the next trial.
%
% Updated by ML Caras Jul 22 2016
global USERDATA ROVED_PARAMS PU... |
ee37d06a4f19c6075026ab5f21636c6a6fae1d26fde55e46772c45de6bac545a | MATLAB | 3,147 | 102 | % Modified Cardinal Spline basis functions proposed by
%
% Sarmashghi, M., Jadhav, S. P., & Eden, U. (2021). Efficient Spline Regression for Neural Spiking Data. bioRxiv.
%
% Modified by Kenneth Latimer from Repository:
% https://github.com/MehradSm/Modified-Spline-Regression
% by Mehrad Sarmashghi
%
% inpu... |
14cf52f53fa126d24f8c9b425da355cb2a678b4f6d829e077b33975db10ea286 | MATLAB | 3,151 | 110 | function calculated_baseline = baseline_code(signal, region_mask, neg_peaks, water_regions)
% BASELINE_CODE Calculates baseline for a given signal.
% calculated_baseline = baseline_code(signal, region_mask, neg_peaks, water_regions)
%
% Inputs:
% signal - The input signal vector
% region_ma... |
f3c7c2af95fde10e7cbb69aff6151448f83c2b644fb0a328d36b3ea37828acba | MATLAB | 3,153 | 77 | function image_noise = NoiseExtract(Im,qmf,sigma,L)
addpath('/Users/jiamengpu/Downloads/CameraFingerprint/Filter/')
% function image_noise = NoiseExtract(Im,qmf,sigma,L); extracts noise signal that is locally Gaussian N(0,sigma^2)
% Input:
% Im, 2-D noisy image matrix,
% qmf, Scaling function of an ... |
60eb51a9b82df4ba37ead8fd7994293aa0a03140974c7cdf208f97581415e375 | MATLAB | 3,155 | 134 |
%function FM_sweep_testing()
% close all;
clear all
clc
%---FLAGS---%
sub = 2;
% Setup sound parameters
AMdepth = 1;
AMrate = 32;
AMphase = 0;
StimulusDur = 1000;
NumCycles = 3;
dBSPL = 50;
% Define RCX file
handles.RPfile = 'C:\gits\epsych\UserFiles\SanesLab\RPVdsCircuits\Sandbox\JDY\AMRate_TemporalIntegration_buf... |
f80995c64c9e2c7ee558858a8d813474407365fda0414a16e66c2490bde266f0 | MATLAB | 3,155 | 106 | function TRIALS = TrialFcn_IncrReward_LOMBER(TRIALS)
% TRIALS = TrialFcn_IncrReward_LOMBER(TRIALS)
%
% Increases reward size (within bounds) with consecutive hits.
%
% A miss resets the reward size to a minimum specified value.
%
% See inline comments for more details.
%
% Daniel.Stolzberg@gmail.com 11/2015
% persist... |
0ea5731dbd8d6d74319fd0353764ee39afd47999fff3ebbd2f59465af716b56b | MATLAB | 3,158 | 103 | % PURPOSE: saves or loads the ERPLAB working memory to another location
%
% FORMAT
%
% working_mem_save_load(save_or_load)
%
% INPUT
%
% save_or_load - 1 for save; 2 for load
%
% OUTPUT
%
% Mat-file .erpm written to disk, or memory structure loaded.
%
% *** This function is part of ERPLAB Toolbox ***
% Author:... |
c1bf90a0b59f54adbd44fa22e097d18c394a83a20f3341ae95666c41ab2e0861 | MATLAB | 3,159 | 96 | clear
Target = 'LONG';
clear Av
warning ('off')
if ispc
pat = 'C:\Analysis\AssemblyAnalysis\raw\';
patRes = [pat , 'MixedSelectivity\DelayDecodingCrossTemporal\1000bsWithErrors\'];
elseif ismac
% pat = '/Volumes/HDD2/DNMTP/raw/';
pat = '/Volumes/Akasa/Bristol/AssemblyAnalysis/raw/';
patRes = [pat ... |
369b693535bc3fa9d07d2b9a268e06fc6d7cc6772d09b34a4d2cc594f55d8986 | MATLAB | 3,160 | 131 | function RUNTIME = ep_TimerFcn_RunTime(RUNTIME, AX)
% RUNTIME = ep_TimerFcn_RunTime(RUNTIME, RP)
% RUNTIME = ep_TimerFcn_RunTime(RUNTIME, DA)
%
% Default RunTime timer function
%
% Daniel.Stolzberg@gmail.com 2014
% Copyright (C) 2016 Daniel Stolzberg, PhD
for i = 1:RUNTIME.NSubjects
% Check ... |
809ebca84407fed1e433caf046649248c4b571c7ad5b70f0a04e98fac77a85bc | MATLAB | 3,160 | 85 | function [results] = spkHistPrior3(params, results, spkHistPrior_setup)
% i.i.d non-mean Gaussian over spike history coefficients & constant
K = size(params.B,1);
w_mu_idx = 1;
w_sig_idx = 2;
H = double(params.H);
w_mu = H(w_mu_idx);
log_w_sig = H(w_sig_idx);
if(K > 0)
b_mu_idx = 2 + (1:K);
b_sig_idx = 2... |
2785cdaf61d1b426434d87d987cb318a9283f97359312c79557286571cb61aae | MATLAB | 3,161 | 123 |
% Author: Guosheng Lin (guosheng.lin@gmail.com)
% perform segmentation prediction on user provided images.
% specify the location of your images, e.g., using the following
% folder which contains serveral example images:
% ds_config.img_data_dir='../datasets/custom_data';
function demo_refinenet_test_example_eyth(... |
ad5453c33e058a80df88fc81bc1bfd9b861125279aa8b92b80717a5db74cbd90 | MATLAB | 3,163 | 72 | function [CVE, pClass1] =DecodeCVEunivariate(FR,evt0,reg)
% Leave-one out cross-validation error (CVE) Decoder
% Aleksander PF Domanski PhD UoB 2016
% aleks.domanski@bristol.ac.uk
%
% Reports binary classification strength between two outcomes across time
%
% Input Variables:
% FR: Firing rate matrix [tim... |
b6389f28225baf6bd7ea05ff7126e4b45385114c59a9be3284bc7b3f755f00f8 | MATLAB | 3,164 | 116 | function Spikes = pp_sort_session( subject, session, Spikes )
%
% pp_sort_session( subject, session)
% Loads Phys struct to run data through UMS spike sorting algorithm, and
% creates the main output Spikes.clustered, which contains all relevant
% sorting info and results from UMS. Note: Spikes.sorted is c... |
2693895463618caed35a3ff3d47261c3c74dc239fd2aa974c220a200f8d48fe0 | MATLAB | 3,167 | 155 | function out = convert_1x21_to_3x3x3x3(in)
% function out = convert_1x21_to_3x3x3x3_cvx()
%
if size(in,1) == 21
in = in';
end
% here we remove all scaling factor used for the voigt format
xxxx = in(1);
yyyy = in(2);
zzzz = in(3);
f = sqrt(2);
xxyy = in(4) / f;
xxzz = in(5) / f;
yyzz = in(6) / f... |
47788afec50ed05582687418fde8a77b5186ac2f8a98b7032420b55909e593b6 | MATLAB | 3,169 | 50 | function [tiff_stack_1, tiff_stack_2, nx, ny, info, framenumber] = Func_Tiff_Stack_Organoids(filename)
framenumber=1;
info=func_ext_uli_sifread2(filename, framenumber); %getting info from sif file
Tifs=[filename(1:end-4) '.tif'];
dis... |
2d7d85488875f8c21dff4b7affd0996eda957de9cc11b4ea7c775dbbed000738 | MATLAB | 3,170 | 101 | function [EI,Pth,Qthth] = lme_EI(X,Zcols,W,CBhat,SIGMA,L,phi,ni)
% [EI,Pth,Qthth] = lme_EI(X,Zcols,W,CBhat,SIGMA,L,phi,ni)
%
% Expected information matrix for the restricted log-likelihood.
%
% Input
% X: Ordered design Matrix (according to time for each subject).
% Zcols: Vector with the indices of the colums of X th... |
37d19ced37aed34a78cbbacba0d99775c3526c93c8a1a72a6c60c0f2d23cf89e | MATLAB | 3,171 | 72 | %%We first calculated the mean and SD for each electrode at each time point
% across training trials. The data for training and test were separately
% normalized by subtracting the mean and then dividing the SD
% Author: Guanghui ZHANG && Steven Luck
% Center for Mind and Brain
% University of California, Davis,... |
cba50780f6489f86d09b9baf6cd063ec26bd8f4d8bb4942d01981cb08d5ae82d | MATLAB | 3,171 | 93 | % part of https://github.com/LudgerS/MRSartifactRemoval
%
% Generates the figure shown in MRSartifactRemoval.pdf
function plotFitAndPhaseCorrection(specAxis, spectrumOrignal, spectrumFinal, startingLine, fittedLine, displayRange, fileName)
% default font sizes and line width
displayScaling = 2;
set(0,'Default... |
8d9ea59d683f8b2477cd5ca30f8c0cf890bb571e26762b3104320dc100ed6f70 | MATLAB | 3,172 | 118 | function [Problem] = group_lasso_problem(A, b, group, lambda)
% This file defines the group lasso (least absolute shrinkage and selection operator) problem.
%
% Inputs:
% A dictionary matrix of size dxn.
% b observation vector of size dx1.
% group group id for "n" elements, ... |
dd21048bc042dfcd97db9f6a234cd091cef3cea47dc3343e7a51e089bc0bd4e1 | MATLAB | 3,172 | 54 | %-----------------------------------------------------------------------
% Job saved on 08-Aug-2019 12:00:18 by cfg_util (rev $Rev: 7345 $)
% spm SPM - SPM12 (7487)
% cfg_basicio BasicIO - Unknown
%-----------------------------------------------------------------------
clear matlabbatch
subjfolder = dir('F:\fMRI_QC\fm... |
22fc9a8d7a2d4f30e4d68c2297a80d82fed7708240e040a7d66d73538ceef350 | MATLAB | 3,174 | 83 | %This is a function that gets as input the flick data and then outputs
%response time, amplitude and direction.Created by Haleh Fotowat.
function [resp_time, Pmax, Pmin, PmaxminR, resp_amp, pm_amp, resp_dir,tail_dir_s,resp, pm_amp_isi,resp_dir_isi, resp_isi, resp_amp_isi, resp_time_isi,time_window] = quant_behav(flicks... |
01cf6a749215753218d7cfa2ac49b598c58d244b450621b74f4e2322baf8a4f7 | MATLAB | 3,178 | 92 | function [output,output2] = analyzetpstack_active_drift_devices(command, arg2, arg3, arg4)
% ANALYZETPSTACK_ACTIVE_DRIFT_DEVICES - Add/Remove/Get drift devices
%
% This function Registers, Removes, or Gets the drift devices for
% analyzetpstack. By being added to this list, these drift
% devices are identified ... |
0c0b1a9d6e43f1bc6dda185abd3493d716bdfb851834cb1a8043b58ac38dba93 | MATLAB | 3,183 | 83 | function ccep_plot_av(average_ccep,tt,n1_peak_sample, n1_peak_amplitude,average_ccep_names,...
channel_names,good_channels,myDataPath,bids_sub,bids_ses,bids_task,bids_runs,params)
%
% function ccep_plot_av(average_ccep,tt,n1_peak_sample, n1_peak_amplitude,average_ccep_names,...
% channel_names,good_channels,m... |
d2e4799b6a169aadf34a65cae1164fc0a577bbce9477fe51ec3c002f5e160b74 | MATLAB | 3,185 | 99 | function [ motifM, aMat, cMat, pMat, dMat, odMat ] = comm_motif_und(cij,ca,nullModel)
% function to get community motifs, assortative, core-periphery, and
% dissassotative, as in https://www.nature.com/articles/s41467-017-02681-z
%
% INPUTS:
% cij original data (nans will be converted to zeros)
% ca... |
f59ff1567f537328add82dc4825e3d0a5093e0330e151b2abc5f9f3101240def | MATLAB | 3,188 | 114 | function createSpiralProblem(filename)
% This function creates tissue of a single consistent property, then fills
% it with fibrotic occlusions of the requested density.
% Define the diffusion tensor
D = [ 3, 0; 0, 3 ]; % Fibre-biased conduction
% Define the physical size of the problem (in centimetres)
Lx = 6;
Ly... |
48d74d913e67778b5dcfd97e25766bb8d21f5e1c18badc110a3706e7d5d10f0b | MATLAB | 3,190 | 89 | % PURPOSE : swap left and right channel location to create a mirrored scalp map.
% If you do not specify channel indices for left and right the swapLRbrain.m will use splitbrain2.m to get them.
%
% FORMAT :
%
% ERP = erp2contraipsi(ERPout, ERP)
%
%
% INPUTS :
%
% ERPout - input ERPset
% ERPo... |
84691478237d5d5fb8888858838d0779e119e3afcee367929fd8b59761150739 | MATLAB | 3,191 | 103 | function [ s, gen_p1, gen_p1g2, gen_p2g1 ] = GenRandSeq( L, p )
%GENRANDSEQ is a simple function generating a random sequence from
%specified theoretical (events or transitions) probabilistic rules.
% - "L": a Nx1 vector (with N being the number of chunks) specifying the
% length of the chunks
% - "p": a Nx... |
63e2bd95400f78d598e8e197f474da7b8cb2e853c36fff0e9e4becde085f5691 | MATLAB | 3,192 | 108 | function C = TrialFcn_BarSweep(C)
% C = TrialFcn_BarSweep(C)
%
% For use with EPhysController experiments
%
% Uses Psychtoolbox to generate light bar sweeps across a monitor
%
%
persistent PresWin ScreenRect ifi
% angle; rate; contrast; barwidth; monitorID
ind = strcmp('Stim.angle', C.writeparams);
angle = C... |
2612b0b8f2b9d8d03fc63229f3b4ab1ed5ab4d4d53e1ea0e4f8942c8b0f72331 | MATLAB | 3,196 | 87 | %% Load data
load(fiber_distribution.builtin.data_path('ugrenovic2016_data.mat'));
load(fiber_distribution.builtin.data_path('garven1962.mat'));
%% Data extraction and Reorganization
% Organizing Ugrenovic dataset in Percentage VS D-AGE
D = [d_vs_gratio_09yo_sciatic(:,1); d_vs_gratio_18yo_sciatic(:,1); ...
... |
4c172a06de2bfb64bc89ff6ad8e7997218caaef58c5de96457d73e8113f4aa5f | MATLAB | 3,196 | 88 | function [n_data, n_data_conf, est_conf_tmp, est_p1_tmp, IO_p1_tmp, ...
IO_MAP_p1_tmp, IO_conf_tmp, trials_resp_TP, trials_resp_conf, s, ...
all_RT, all_RT_conf, p1_mean, conf_p1] = ...
load_extract_ratings(fn_test, remove_missed_resp, in)
% Load the rating data and extract useful information.
%
% Whe... |
debbd03b9aa84deac84ed9c700766cdd70a7d5e1721ce52ff087616e4e3a75dc | MATLAB | 3,201 | 97 | % compute_gdd_standalone
%
% function [gdd_star,t_star,t_upperbound]=compute_gdd_standalone(A1,A2)
%
% Computes the graph diffusion distance between two connectivity
% matrices
%
% Inputs :
% A1, A2 - symmetric NxN matrices representing the edge weights
%
% Outputs
%
% gdd_star - the graph diffusion distance
% t_star ... |
36cd8a5234dd5ffe35371cfb8e5bba554ccc2128e64285c0c39895b33487c6a2 | MATLAB | 3,202 | 94 | function [test_error,export_outputs,hidden_r,lag,err_ant,ant_lck] = dlRNN_evolve(net,input,target,act_func_handle,learn_func_handle,transfer_func_handle,tolerance)
clear plot_stats;
pass = 1;
stats_cnt = 1;
test_error = Inf;
[cm] = TNC_CreateRBColormap(1024,'rb');
cost = 500;
w_var = 0.25... |
bf23dfd6632f667ba064d3d77b466aabaebf4a888604fcfcc5fa4b59353c4722 | MATLAB | 3,205 | 114 | %% Parametmers
% datadir = 'D:\KingKong_Cloud\BIG_DATA\JULIA\TANKS';
datadir = 'D:\KingKong_Cloud\BIG_DATA\DELORES\TANKS';
sevevnt = 'Strm';
trodes = {1:4};
% trodes = {1:4; 5:8};
% trodes = {1:4; 5:8; 9:12};
% read from excel sheet
blocksheet = 'D:\KingKong_Cloud\BIG_DATA\DELORES\DELORES_TankMap_ALL.xlsx';
% bloc... |
30b74734fb0658d9e5d1877280c636fab947df262e02ba6121418658d4bdae25 | MATLAB | 3,206 | 117 | clear all;
addpath('~/-pimmos/decoding/');
% Gives me: X (labels), Y (data), time
tmp = load('../testdata_orientation.mat');
Y = tmp.Y; % Y: features x time x trials
X = tmp.X';
time = tmp.time;
label = tmp.label;
numF = size(Y, 1);
numT = size(Y, 2);
numN = size(Y, 3);
phi = X * (180/8); % Prese... |
3a07d2e98ced926be1da5f433360d36932c1f3338218503af183e15a02790c11 | MATLAB | 3,211 | 81 | function [ev,lb,ub] = rpv_contamination(N, T, RP, RPV )
% UltraMegaSort2000 by Hill DN, Mehta SB, & Kleinfeld D - 07/09/2010
%
% rpv_contamination - get range of contamination
%
% Usage:
% [ev,lb,ub] = rpv_contamination(N, T, RP, RPV )
%
% Description:
% Estimates contamination of a cluster based on refractory per... |
12a99b70c8633e37b5828f4d7f371d3a59003f09e314b34f5c9d94ce8d04bbf5 | MATLAB | 3,217 | 73 | function output = performanceElements(filePath,dataFiles)
%%
%function output = performanceElements(path,dataFiles)
%%
for session=1:size(dataFiles,1) %for all given sessions
load(fullfile(filePath,dataFiles(session,:))) %load session data
sequenceID = cell2mat(res.allPerformedSequences(:,2)); %logical ... |
435d2646ab5450b876cf6425cd078a7082d1c1392be58ae169fd0cded7228936 | MATLAB | 3,219 | 85 | function [mvpc] = buildMVPCstruct(ALLBEST,relevantChans,nIter,nCrossBlocks,DataTimes,equalT,classcoding,method)
mvpc = []; %empty mvpa
if nargin < 1
mvpc.mvpcname = '';
mvpc.filename = '';
mvpc.filepath = '';
mvpc.electrodes = 1:length(ALLBEST.chanlocs);
mvpc.chanlocs = ALLBEST.chanlocs;
... |
e320ec48befdd62f9ffa7931630f974a2ce78bb23149e123ce042acf9550fc1a | MATLAB | 3,220 | 113 | function [aux,En,Sn,Snv,u,uExp]=FEM(BC,C,En,Set,Sn,X,X0)
%d,dim,E,h,Set,Tx,Ty,Tz,v)
% Solves Forward problem using FEM.
% Assumed (fully or partially) constrained problem.
% INPUT:
% E v
% En(e,gp,:) = Previous strains of element e at gauss point gp. Exx,Eyy, Eyy, Exy,Exy,Exz,Eyz
% Sn(e,gp,:) = Previous stresse... |
ef019da30fa8f25d10cec2d2d29bb4a490a9efd773c49a773e52af4102807d3d | MATLAB | 3,225 | 111 | function handles = populateLoadedTrials_SanesLab(handles)
%Custom function for SanesLab epsych
%
%This function populates the trial filter table, and the reminder trial
%info table. It also gets and saves the java handle for the trial filter
%table.
%
%Inputs:
% handles: handles structure for GUI
%
%Outputs:
% han... |
28eed9b67e9de5f7e6f19f545b05460b7a51035b24a4a589a44106ae77e010a5 | MATLAB | 3,228 | 59 |
function [T_Cells_F_nosub, T_Cells_DF_nosub ]= Func_TimeCourse(msknum, t,tiff_stack_2,tiff_stack_1,mskNrn,framenumber)
T_Cells_DF_nosub= zeros(msknum-1 , length(t)) ;
T_Cells_F_nosub= zeros(msknum-1 , length(t)) ;
fprintf('\n');
str = ['......making TCs, progress...%% '] ;
fprintf(str); ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.