sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
a99aa6647814ef990e756a821d2ab04168a6688326f30ab399eb53d2fc017c0a | MATLAB | 1,120 | 43 | % 2021-06-04: I wrote this code to test the path simulation code. The path
% simulation code performs a random walk with intermitent attraction to one
% of the 4 cups so that the paths are more realistic to what we see with
% real data.
close all
clear all
clc
arena_width_cm = 20;
arena_height_cm = 30;
boundsx_cm = [... |
08c7f5bbda03f67375c7a96b21771f42305c1edc31c99010cbca5ed6bb4443a1 | MATLAB | 1,121 | 42 |
% Generate colormap that interpolates between
% [0 0 1] blue
% [0 1 1] cyan
% [0 1 0] green
% [1 1 0] yellow
% [1 0 0] red
% [1 0 1] magenta
% [.5 0 1] purple
function clrs = mycolormap(n)
% initialize colors
clrs = zeros(n,3);
% color increment
dc = min(6/(n-1),1);
% dimensions... |
502454b593b1b529b1d401fd2c2a8e290ebcf4a9d9a0b30728a9fdd71206b1e2 | MATLAB | 1,121 | 48 | % %% The aim of this script is to reproduce the figures of the paper
% %% This script should be run in the folder "Data", which contains one matlab file per recording with the behavioural and neural data.
%
close all
clearvars
rng('default') % for reproducibility
% tic
%% Figure 1
fig1=figure;
variability_behaviour(f... |
88a3320708a9197b7b4fcdcb979cabbd0e8c057d7cf975a87271c2755abdb6f4 | MATLAB | 1,121 | 50 | %KEEP clears all the variables in the workspace except the ones you specify
%after the keep command. It works just like clear, but only for variables
%
%KEEP is a modified version of the KEEP M-file written by
%Xiaoning (David) Yang (1998). It allows the use of the wildcard * as in the
%clear command
%
%Examples:
% ke... |
6db36f4f1f524153a94f1827d8f9579fa6670e4d0329e75c95fc9e70c0ea87d9 | MATLAB | 1,122 | 29 | function ret=SONWriteADCBlock(fh, chan, buffer, count, startTime)
% SONWRITEADCBLOCK writes data to an ADC channel
%
% RET=SONWRITEADCBLOCK(FH, CHAN, BUFFER, COUNT, STARTTIME)
% INPUTS: FH the SON file handle
% CHAN the target channel
% BUFFER the data to be written (int16 ADC data)
% CO... |
df8eb7bfc6432e0d9f56789808a4dcfc6c94e51260ef8bcce8da4c888522e752 | MATLAB | 1,122 | 43 | % mglTestFillRect3D: an automated and/or interactive test for rendering.
%
% usage: mglTestFillRect3D(isInteractive)
% by: Benjamin Heasly
% date: 03/10/2022
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: Test rendering some points.
% usage:
% ... |
e0ed78312566938fc9ff80548a65e818b615169a58a312ae27e7a715967aa75c | MATLAB | 1,123 | 36 | function output = laplacianK(input)
% do numerical laplacian in fourier space using real kernel
N = size(input);
if N(1) < 256
padsize = [16,16,16];
else % high res
padsize = [64, 64, 64];
end
dimsOdd = mod(size(input), 2);
input = padarray(input, dimsOdd, 'replicate', 'post'); % padding to even dim fi... |
9be95b669c645d253c11715c57156a2caae8dcadd38ce1d9148b22a94b1c877b | MATLAB | 1,125 | 16 | %-----------------------------------------------------------------------
% Job saved on 16-Mar-2022 17:04:46 by cfg_util (rev $Rev: 6942 $)
% spm SPM - SPM12 (7219)
% cfg_basicio BasicIO - Unknown
%-----------------------------------------------------------------------
matlabbatch{1}.spm.tools.dti.fit_choice.dki_fit.dt... |
ec1675bd7f1f53b9b78fb35cbaf31f39bf33b9dde9646faffc85572eb5ef6ad7 | MATLAB | 1,125 | 16 | %-----------------------------------------------------------------------
% Job saved on 17-Mar-2022 10:33:06 by cfg_util (rev $Rev: 6942 $)
% spm SPM - SPM12 (7219)
% cfg_basicio BasicIO - Unknown
%-----------------------------------------------------------------------
matlabbatch{1}.spm.tools.dti.fit_choice.dki_fit.dt... |
1e1fe5bfab0e600695b187be94a4683a2862b9a5a546a08bac01703cae4cf381 | MATLAB | 1,126 | 51 | function typeName = TDMS_getDataTypeName(dataType)
%TDMS_getDataTypeName Returns a string indicating dataType
%
% Given a Labview numeric datatype value, this returns a string
%
% typeName = TDMS_getDataTypeName(dataType)
switch dataType
case 0
typeName = 'void';
case 1
typeName = 'int8';
... |
701a08cc775b9848c63e9ee0fd1477148b2f4ce0e99caa38e98741bdb4425aca | MATLAB | 1,126 | 39 | function fun = SolveDynMCNN(x,Imat_t,dsr_t,ni,nh,no,tn,delta,data_dyn)
whd = reshape(x(1:ni*nh),[ni,nh]);
wod = reshape(x(ni*nh+1:ni*nh+nh*no),[nh,no]);
wfd = reshape(x(ni*nh+nh*no+1:ni*nh+nh*no+no*nh),[no,nh]);
bhd = (x(ni*nh+nh*no+no*nh+1:ni*nh+nh*no+no*nh+nh))';
bod = (x(ni*nh+nh*no+no*nh+nh+1:ni*nh+nh*no+no*... |
d52c9a8f9d16b8ddd8202b99219a139b82e35e49abcda400176fb61c11b4ab23 | MATLAB | 1,126 | 35 | % computeSmoothedVelocity.m
%
% Helper function called by dsFiltFictrac.m that takes in downsampled
% FicTrac position and smoothing parameters and returns smoothed position
% and velocity. Performs Gaussian kernel smoothing on position, computes
% velocity, and performs Gaussian kernel smoothing on velocity.
%
% IN... |
f4d52af9dd7cacf0b29187f779d2e3de00da35b82a78f277f3c768ce3055ee13 | MATLAB | 1,126 | 35 | % computeSmoothedVelocity.m
%
% Helper function called by dsFiltFictrac.m that takes in downsampled
% FicTrac position and smoothing parameters and returns smoothed position
% and velocity. Performs Gaussian kernel smoothing on position, computes
% velocity, and performs Gaussian kernel smoothing on velocity.
%
% IN... |
062e87924a572ebeca6602e9013246c43270422cf1ebd86aebff0d75b8dc885b | MATLAB | 1,127 | 35 | function ml_sim_mclust_tfile_write(spikeTimestamps_ms, tfileBits, outputTFullFilename)
% This function saves spiketimes to a MClust t-file, but I changed
% some of the header information since this is to be used with simulated
% data and we don't want to lose track of that in the future.
spikeTimes_s = ... |
a6c3cbd4764fc64719c29239df7036ab03a751e607480c20d08987f2a7d46086 | MATLAB | 1,127 | 46 | % plotScatterScript.m
close all
clearvars
dataPath = '/Users/hyang/Dropbox (HMS)/2PAnalysis-Helen/AnalyzedData/190912_moveCond';
figPath = '/Users/hyang/Dropbox (HMS)/2PAnalysis-Helen/Figures/190924_scatter-heatmap';
cellType = 'g34';
% parameters
xDataName = 'fwdVel';
yDataName = 'sum';
xScale = [-5 25];
yScale = ... |
562d22dc82ab55b5900d018cd9099ce71c248b521681b4e43d1d3ce10f7575ff | MATLAB | 1,129 | 30 | function smrAddChan(smrHandle, chandata, samplerate, title, units, offset)
fprintf('Adding new channel...')
% find/create a free/new channel and gather relevant data
newChanNum = CEDS64GetFreeChan( smrHandle )
i64Time = CEDS64SecsToTicks( smrHandle, offset )
% i64Div = CEDS64Secs... |
d411667b2eff0213d402cb87a3c8c1f924ec4d8b7a8818f7e7b21cbb89a98c80 | MATLAB | 1,129 | 46 | % mglTestMetalLines: an automated and/or interactive test for rendering.
%
% usage: mglTestMetalLines(isInteractive)
% by: Benjamin Heasly
% date: 06/13/2022
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: Test rendering some lines as quads in Metal.
% us... |
f212cb47cac9db43e4e241d65414a82dff8ca44099aa56508a64f670528377ec | MATLAB | 1,129 | 28 | function ret=SONWriteRealBlock(fh, chan, buffer, count, startTime)
% SONWRITERealBLOCK writes data to an Real channel
%
% RET=SONWRITERealBLOCK(FH, CHAN, BUFFER, COUNT, STARTTIME)
% INPUTS: FH the SON file handle
% CHAN the target channel
% BUFFER the data to be written (single floating point)
%... |
4a76163c7dc6f361e60bffdd156f96a5ffda52431656b679a154ff49db1ff340 | MATLAB | 1,131 | 40 | % mglStencilCreateEnd
%
% $Id$
% usage: results = mglStencilCreateEnd(socketInfo)
% by: justin gardner
% date: 05/26/2006
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: Ends drawing to stencil
%
% e.g.:
%mglOpen;
%mglScreenCoordinates;
%
%%Draw a... |
53415e0215a315463def3a01216096aab4bca46bad51f746d27a63979ba8a417 | MATLAB | 1,131 | 25 | function checkUnset(obj, argin)
publicProperties = properties(obj);
objMetaClass = metaclass(obj);
isHiddenProperty = logical([objMetaClass.PropertyList.Hidden]);
hiddenProperties = {objMetaClass.PropertyList(isHiddenProperty).Name};
allProperties = union(publicProperties, hiddenProperties);
ano... |
92629cf297689fbcffe1ef9832f7f6027407fbe49c4a12feda0c3fbfbba7303d | MATLAB | 1,131 | 49 | function keep(varargin)
% KEEP clears all the variables in the workspace except the ones you specify
% after the keep command. It works just like clear, but only for variables
%
% KEEP is a modified version of the KEEP M-file written by
% Xiaoning (David) Yang (1998). It allows the use of the wildcard * as in the
% c... |
19650cd7a983dcc00b46399f6fd93e007c5f4c8feb2a2b4a354e4c07990720ae | MATLAB | 1,132 | 30 | function correctMissingSamples( obj, rec, new_lfp_time, new_stim_time )
% Corrects missing samples.
%
% Syntax:
% CORRECTMISSINGSAMPLES( obj, new_lfp_time, new_stim_time );
%
% Input parameters:
% * obj - object containg data
% * rec - recording
% * new_lfp_time - new time vector for lfp signal
% * new_st... |
f75c676006ee9bcef7283af1620c7a61445a51a54808f29dcd1895007cc0aa52 | MATLAB | 1,133 | 37 | function [fbcspfeature,fbcspw] = FBCSP(eeg,label,m,bands,fs,filterorder)
% Call the function FBCSP, perform CSP for each frequency band in the bands, and then concatenate features
% eeg:Segmented 3D EEG (filtered), sampling points * channels * number of experiments
% label£ºThe label of EEG, column vector, and value... |
53c80b87623435af9e4c8009b45acbbbfd46b2cf5fe051c56bc2789d7eac91e3 | MATLAB | 1,134 | 29 | function ret=SONWriteRealBlock(fh, chan, buffer, count, startTime)
% SONWRITERealBLOCK writes data to an Real channel
%
% RET=SONWRITERealBLOCK(FH, CHAN, BUFFER, COUNT, STARTTIME)
% INPUTS: FH the SON file handle
% CHAN the target channel
% BUFFER the data to be written (single floating point)
%... |
6d7f98fb71716a39a42138a30f4ae016cef62e05b3cbb95288dac0b59b42080d | MATLAB | 1,134 | 48 | % getCorrImgFictrac.m
%
% Function that returns correlation between specified imaging and Fictrac
% parameters.
% Operates on moveCondData
%
% CREATED: 10/12/23 - HHY
%
% UPDATED:
% 10/12/23 - HHY
function [allFliesCorr, meanCorr, semCorr] = getCorrImgFictrac(...
whichImg, whichFictrac, datDir)
% prompt us... |
acf893293f61e692bfb43e03d0d1bca2f2c1dc66cd4b63a9127f45de7d3759c9 | MATLAB | 1,134 | 60 | %
% Compute the average degree statistic of a network.
%
% PARAMETERS
% $network
%
% INPUT
% dat/statistic.volume.$network
% dat/statistic.size.$network
% dat/statistic.format.$network
%
% OUTPUT
% dat/statistic.avgdegree.$network
% The meaning of the values is the same as that described
% in konect-toolbox/m... |
936c448594c6fb27c47380fcade79c8aec06d7ff8d0a311eae4ebd813639fcef | MATLAB | 1,135 | 47 | function install_sbmvivo
%update the path
basep = fileparts(mfilename('fullpath'));
if basep(end) ~= filesep, basep = [basep filesep]; end
p = { ...
'' ... % base directory
['mex' filesep 'sbm_cuda'] ...
['mex' filesep 'sbm_fit'] ...
'c2swrapper' ...
'MLspikewrapper' ...
'util' ...
'ana... |
17c80546d3850ae014eeec1e09ca272c2fbdb838141b7f14b27f8d15398ea534 | MATLAB | 1,136 | 27 | function [xc,lags,xcraw] = getCCF(src_delta,targ_delta,maxlag)
% getCCF.m - for normalized and raw CCF
assert(isequal(size(src_delta),size(targ_delta)) && iscell(src_delta) == iscell(targ_delta),...
'mismatching dims and/or array type for src_delta and targ_delta')
if isvector(src_delta) && ~iscell(src_delta) % sing... |
381ce422f33c5564a99c0508b2fb813bfecc97fed9828a1c174facbfcbef7945 | MATLAB | 1,136 | 30 | % addMyPaths.m
%
% function to add relevant paths for running ephys experiments, including
% subfolders
%
% Users: change the following paths to match those on your local computer
function addMyPaths()
% Determine which computer this code is running on
comptype = computer; % get the string describing th... |
43936370ead490ba71ad3026f92e0ccc5650fe1067a5eb65821dd5f05c8a75c9 | MATLAB | 1,136 | 47 | function [psf,x,y,z] = gaussian_psf(psflen,lambda,sampling,matSize,theta)
% length is the FWHM (1/e2 over 1.7) of the PSF, lambda is the wavelength,
% sampling is the spacing between pixels, and matSize is the output psf
% size. psf is the output, x y and z are the coordinate positions
% for FWHM axial length, we descr... |
865e44c52ab7b54b6598c44afef4c9c8c95cb31eddb3c8761270299fab628d43 | MATLAB | 1,136 | 16 | %-----------------------------------------------------------------------
% Job saved on 16-Mar-2022 17:06:09 by cfg_util (rev $Rev: 6942 $)
% spm SPM - SPM12 (7219)
% cfg_basicio BasicIO - Unknown
%-----------------------------------------------------------------------
matlabbatch{1}.spm.tools.dti.fit_choice.dki_fit.dt... |
93c489fedb345919339bdbb8e54c9071c2cdf6f9ce74f39bb3237b2b0421d705 | MATLAB | 1,136 | 16 | %-----------------------------------------------------------------------
% Job saved on 16-Mar-2022 17:05:59 by cfg_util (rev $Rev: 6942 $)
% spm SPM - SPM12 (7219)
% cfg_basicio BasicIO - Unknown
%-----------------------------------------------------------------------
matlabbatch{1}.spm.tools.dti.fit_choice.dki_fit.dt... |
d6615eb1a84022159f3ef0c6bdd76892a8245e59b8e40129187098e1fac99575 | MATLAB | 1,137 | 30 | function [pnt, tri] = icosahedron642()
% ICOSAHEDRON642 creates a 3-fold refined icosahedron
% Copyright (C) 2003, Robert Oostenveld
%
% This file is part of FieldTrip, see http://www.ru.nl/neuroimaging/fieldtrip
% for the documentation and details.
%
% FieldTrip is free software: you can redistribute it and/or mo... |
059cfdd10bf46d2b14bcf697190657387cc2051d86c35a759ceb5a2e51690df5 | MATLAB | 1,138 | 45 | function fH = plotFullRunTSwithModelFit(fH, dataToPlot, modelPredToPlot, ...
stimToPlot, ttl)
% Check inputs
if ~exist('fH', 'var') || isempty(fH)
fH = figure(101); clf; set(gcf, 'position', [55,440,1994,522]);
end
if ~exist('stimToPlot','var') || isempty(stimToPlot)
stimToPlot = [];
end
% Set up figure ... |
87ad5ef7f70d86f0fd10aa33a8e445bc6b15bfe629a4886182f94542106be90d | MATLAB | 1,138 | 33 | function sorted_path=sorter(defined_path,taskname)
path_contents=dir(defined_path);
nn=size(path_contents,1); %% nruns
ix_ls=zeros(nn,1);
sorted_path=cell(nn,1);
if nn==1 %% if nruns == 1 (i.e. run index may not be present for this task)
%% assign a default index of 1
ix_ls(1)=1
else %% get run inde... |
eb74097755279594c1f85bd5ff2bb7acf10199ebf922d2ce50c8253536c42459 | MATLAB | 1,139 | 47 | clear;
close all;
clc;
initime = clock;
mkdir("figure");
mkdir("figure/agree");
mkdir("figure/disagree");
mkdir("figure/noOsc")
addpath('funcs');
%% changeable parameter settings
% for parfor
delta_e_start = 0; % cannot equal to 0
delta_e_end = 0.5; % can equal to 0.5
delta_e_steps = 100;
delta_i_start = 0; % cannot... |
8b2f095a7a457f1fb4b5146414a9204f79e087ab6b432224044918aeb2b97951 | MATLAB | 1,140 | 50 | %Xing Chen 13/1/17
%Open image1.fig, in a figure window. Then extract the matrix information
%from the figure:
fig_h = get(gca,'children')
% to find the handle of the image
handleToImage2 = findobj(fig_h, 'Type', 'Image')
% reading the matrix data
Es=get(handleToImage2,'CData' )
% retrieve the axis data... |
4f4ae3f8ede9b036456ee23281e05ef52eec562919e27f87e5d0459b1a9e0d15 | MATLAB | 1,141 | 36 | function [retval] = mglEyelinkOpen(ip, conntype)
% mglEyelinkOpen - Opens a connection to an SR Resarch Eyelink eyetracker
%
% Usage: mglEyelinkOpen(IP, conntype)
% IP - the ip address of the eyelink eye tracker, defaults to 100.1.1.1
% conntype - the connection type: 0 opens a direct link, 1 initializes a
% ... |
a5474b9d80e665b93e405c227808a4ed08f237f72d4caab285b32fc81aa75ab2 | MATLAB | 1,141 | 43 | function events = LoadEvents(filename)
%LoadEvents - Read events from file.
%
% USAGE
%
% events = LoadEvents(filename)
%
% filename event file name
% Copyright (C) 2004-2011 by Michaël Zugaro
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU Ge... |
b87b85ed5d7be307b65cdc686daae4b691fdc452511dadee19b98c9f21d02d22 | MATLAB | 1,141 | 32 | function aij = threshold_matrix(wij, km0)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% If you use this code, then please cite:
% 1.- Ana P. Millan, et al. "Individualized epidemic spreading models
% predict epilepsy surgery outcomes: a pseudo-prospective study."
% medRxiv (2023): 2023-03. doi... |
eb4de6696b4e16dda47f5dee12eb9da65c290507732b7e5f2eba47527bffafdb | MATLAB | 1,142 | 47 | function [X Y] = generate_syndata(noise_level)
n = 400;
nc = 4;
nsub = round(n/nc)*ones(nc,1);
nsub(nc) = nsub(nc) + (n - sum(nsub));
X = [];
Y = [];
for k = 1:nc
phi = sort(1.5*linspace(0,1,nsub(k))*pi);
radi = sqrt(pi+phi) - sqrt(pi);
rot = (k-1)*(2*pi)/nc;
R = [cos(rot) -sin(rot); ... |
c96a4ffc58293b7fc35ce2d6494f7132f7719737c0480025a9e2f1528fd206aa | MATLAB | 1,144 | 40 | classdef ImageReferences < types.core.NWBData & types.untyped.DatasetClass
% IMAGEREFERENCES Ordered dataset of references to Image objects.
methods
function obj = ImageReferences(varargin)
% IMAGEREFERENCES Constructor for ImageReferences
obj = obj@types.core.NWBData(varargin{:});
... |
a628b737070379c7b05ca63cc06b7afc797965935db2aba36c71f8e8a81534b7 | MATLAB | 1,145 | 23 | function cost = loss_func(idx_nodes, aij, esoz_map)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% If you use this code, then please cite:
% 1.- Ana P. Millan, et al. "Individualized epidemic spreading models
% predict epilepsy surgery outcomes: a pseudo-prospective study."
% medRxiv (2023): 20... |
ec0c3a2be8d1d85e33db057922ae4e14471aa25e06f47848437c828370a56b22 | MATLAB | 1,145 | 37 | function shadedErrorBar_95CI3(data1,data2,data3,removenan, filter)
%inputs:
% data1
% data2
% data3
% removenan true or false
% filter medfilter 3 5 7 etc...
if removenan == 1
%remove naN
data1 = data1(~isnan(data1(:,1)),:);
data2 = data2(~isnan(data2(:,1)),:);
data3 = ... |
380d47904bfaf687fc37d9730e3eafeddab114ebbf0c7b6a99b04bd3f3ee1171 | MATLAB | 1,146 | 35 | % getSpikeRateSpecTimeWithDelay.m
%
% Function that takes in times of spikes and converts it to a spike rate
% for a given time vector. Introduces a specified delay between the time
% vector and the spike rate.
% Computes spike rate by finding inter-spike-interval and getting inverse
%
% INPUTS:
% spikeTimes - tim... |
398c95b97b0d942a62fa565f7c0e1d250518b1ec64e9fe7816f1966556f3bcb0 | MATLAB | 1,146 | 52 | function C = aedes_cellsprintf(form_str,s)
% AEDES_CELLSPRINTF - CELLSTR with SPRINTF formalism
%
%
% Synopsis:
%
% Description:
%
% Examples:
%
% See also:
% CELLSTR, SPRINTF
% This function is a part of Aedes - A graphical tool for analyzing
% medical images
%
% Copyright (C) 2006 Juha-Pekka Niskanen <Juh... |
c838c5df07bce91a5a71c078425207a771b56962a39e2a0581486dac476d85db | MATLAB | 1,147 | 39 | % Example 1: Synthesis of a "text" texture image, using
% Portilla-Simoncelli texture analysis/synthesis code, based on
% alternate projections onto statistical constraints in a complex
% overcomplete wavelet representation.
%
% See Readme.txt, and headers of textureAnalysis.m and
% textureSynthesis.m for more details.... |
db61092b66ec71816480357d8a028065b8ceda3d8a43f403626e9b6b6b019a6b | MATLAB | 1,147 | 39 | function [params, gamma] = gamma_predictive_symm(params, state)
% Predictive controller learning rate modification rule
% for symmetric DSS
% [gamma, params] = gamma_predictive(params, state)
% params Gamma function parameters
% state DSS algorithm state
% gamma Result gamma coefficient
% Copyright ... |
707f879abe5ec20060125bb0a65ce77bba94e167488bcc230484dfffd5a558f4 | MATLAB | 1,148 | 48 | % this is the radius and conductivity of each of the three compartments
r = [100 92 88];
c = [1 1/80 1];
% this is the initial description of the spherical mesh
[pnt, tri] = icosahedron162;
% create a set of electrodes on the outer surface
sens.pnt = max(r) * pnt;
sens.label = {};
for i=1:size(pnt,1)
sens.label{i} ... |
a66a6b2bb27d0495b1d7acc4a0c54e401d6d53775ffcbae396a7b6f01777b5d9 | MATLAB | 1,148 | 50 | function Z = zernike(i,x,y)
% function Z = zernike(i, x, y)
%
% Creates the Zernike polynomial with mode index i. The inputs are
%
% - i - zernike index
% - x - x position of evaluated points
% - y - y position of evaluated points
%
% The output is
% - Z - zernike polynomial profile
%
% Adapted from Nu... |
b7e4f5ab5fd32308e0ebd00c82fbe3024a2cde2c74fb7e3c6c8b69b2fd9b8deb | MATLAB | 1,148 | 50 | function [roi] = men_behaviour_user_select_arena_roi( referenceFrame, includeOtherROI, useGrayscale)
F = referenceFrame;
if useGrayscale
F = imadjust(rgb2gray(referenceFrame));
end
% Modified to make finding the edges easier in the dark arena
% HSV = rgb2hsv(referenceFrame);
% BW = edge(HSV(:,:,3),'canny');
% F = ... |
529aef57d6b01b1f63d9895945611776dc5a1cb84f9c128be526faba154bbdbd | MATLAB | 1,149 | 37 | function mask_unrelyPhase = create_mask_unrelyPhase(GREPhase, GradMag_thresh, maskErode)
%% Author: Xu Li
% Affiliation: Radiology @ JHU
% Email address: xuli@mri.jhu.edu
%
% This function creates unreliable phase mask for QSM
% updated 2019-06-25, X.L.
% updated 2021-01-01, X.L.
if nargin < 2
GradMag_thresh = pi/... |
18148e790a5230ef362ff6527a41fb910457eed7202c9915abeab5045052bd4f | MATLAB | 1,150 | 34 | function [Shapes] = getSpikeShape(Sesnam,elec,unit)
% read spike sorting. The folder holding the CSCx.mat files is expected to
% be under 'base_folder\Sorting' (see load below)
% returns Shapes - 32xLL mat, 32 samples (in 1 ms) for each spike
% %comuns:
%1 2 3 4 5 6 7:38
% unit time (us) PC1 PC2 PC3 p2p spike-sh... |
4482b96f2af83452803c260dc533881e418ca742d14387593049e057cf1a8426 | MATLAB | 1,150 | 47 | function [rpInfo] = runRPfinder(delta_mat,run_parfor)
%runRPfinder.m 5/30/22
% will output both estimated RP and
% info useful for visualizations
if ~exist('run_parfor','var')
run_parfor = true;
end
assert(~isvector(delta_mat),'use vector verison for vector data')
[isi_pdf,isiLags] = isiPDF(delta_mat);
[expMdl,... |
6c4841eafcbb0b4df7353805cc204a1d999ff691f206551a59a31384abe22084 | MATLAB | 1,150 | 41 | %% Author: Xu Li
% Affiliation: Radiology @ JHU - Kirby Center
% Contact via xuli@mri.jhu.edu
% Open file
[FileName,PathName,FilterIndex] = uigetfile('.mat', 'Select Data List File');
% Something?
if(FileName ~= 0)
S = load([PathName, FileName]);
if ~isfield(S, 'tableData')
errordlg('Data List not fou... |
9b4124bb31735d769047cfc5633671cbbfb69a2bc60190417259b5103f260938 | MATLAB | 1,150 | 45 | %Sample code
%Davor Curic, 2023, Complexity Science Group, University of Calgary
%
%This code loads the avalanches generated by 'generateAvalanches.m' and
%plots the initiation density maps
load('samplerecording_avalanches.mat') %this file is generated by 'generateAvalanches.m'
load("mask.mat")
corticalPixel... |
0d8ec4753cfc7f85596ebfd0c2e2f94b47cec999974910fa9b3a5045ac0c04b3 | MATLAB | 1,151 | 40 | % mglGetSID.m
%
% $Id:$
% usage: mglGetSID()
% by: justin gardner
% date: 04/30/14
% purpose: Gets whatever SID has been set by mglSetSID
%
function sid = mglGetSID()
% check arguments
if ~any(nargin == [0])
help mglGetSID
return
end
% get default interval for which sid is valid
vali... |
5a8a207359c304a8e73981b4a84d470c2a25e4918dafec61657fcf6e8a135fe5 | MATLAB | 1,151 | 36 | function [timeinfo]=time_alignment(trial_index,trial_runNum, times, subeventTime)
% get real onset time for each data point
% (relative to start time of each RUN)
% reset onset time for each RUN (32 trials per run)
if numel(subeventTime)==64 % some subject only completed 2 runs
subeventTime(33:64) = subeventTime... |
7890059b27bbd5764dd20e23dbad1186bd6519166a4ddf46b32be52cd40bcdd5 | MATLAB | 1,151 | 51 | function [dp, dpAvg] = ml_alg_popvectors_compute_dotproducts(maps1, maps2, showFig)
if nargin < 3
showFig =false ;
end
% Marc Normandin.
% maps1 and maps2 are (map_height, map_width, num_cells) 3D arrays.
if ~all(size(maps1) == size(maps2), 'all')
error('maps1 and maps2 must be the same sized stacks of maps.\n... |
341ae6843152b96b9a6cc4618fa1447452a4dfa61186b04a846e3c0568a9c2e6 | MATLAB | 1,152 | 53 | clear all
close all
% Sup Fig 7, show how spectrin recovers - expand
% setting up the initial configuration
P.y0 = 180*0.8;
P.x0 = sqrt(P.y0^2 - (P.y0/2)^2);
P.max_y0 = 17*P.y0/2;
P.max_x0 = P.x0*15;
[r_s,T_s,edges_s,edge_type] = create_mesh(P);
r_s(:,1) = r_s(:,1) + P.x0*4;
r_s(:,2) = r_s(:,2) + P.y0*3;
P.actin =... |
5172ea3d1ec0df337e004b339327f070d141c7234ffd0ad34987322a3580b125 | MATLAB | 1,152 | 26 | function s = stageSpec
% Staged file names and the other fixed settings of the stage folder, defined once
%
% function s = webupload.stageSpec
%
% Purpose
% The Names are the exact file names the server keeps (webupload.allowedNames); the
% recipe is always staged as recipe.yml whatever the ... |
beba123b7d19db9b2f91e7d961dec66595556845f0373b860ce2bd6f7cf56905 | MATLAB | 1,153 | 41 | function [fs, starttime, endtime, startend , cancelFlag]=uigetRASTERinfo(length_data)
%
%
% by Michela Chiappalone (6 Febbraio 2006)
% modified by Noriaki (9 giugno 2006)
cancelFlag = 0;
fs = [];
starttime = [];
endtime = [];
startend = [];
prompt = {'Start time (sec)', 'End time (sec) | -1 = automatic', ...... |
0e45d8dbeb786c77e4d83ad2a77b55e46ed8bb19de7a2af884828964663ee13d | MATLAB | 1,154 | 45 | % convertNotMoveLogToBouts.m
%
% Function that takes in logical indicatign when fly is not moving and
% converts it a list of not moving bout start indices, end indices, and
% all not moving indices
%
% Helper function for: findLegFtCmbNotMove() and findFlyNotMovingFt()
%
% INPUTS:
% logVec - logical vector, true ... |
2110568e139569a446edab4e223ececace889a9495cb2e4636ad899a779ec7cd | MATLAB | 1,154 | 52 | % mglTestFlicker.m
%
% $Id:$
% usage: mglTestFlicker(<freq=refreshRate/2>,<screenNumber=[]>)
% by: justin gardner
% date: 09/09/10
% purpose: With no arguments, flickers the screen at maximum rate possible (i.e. refreshRate/2).
%
function retval = mglTestFlicker(varargin)
% check argument... |
bd9632e53b9c51669faff3785507c53e075d1e4231294c74f7b8586cfc6e7de5 | MATLAB | 1,154 | 41 | function [pos, posTime] = mglEyelinkGetCurrentEyePos(devicecord)
% mglEyelinkGetCurrentEyePos - Gets the current eye position and time.
%
% Syntax:
% [pos, posTime] = mglEyelinkGetCurrentEyePos
% [pos, posTime] = mglEyelinkGetCurrentEyePos(devicecord)
%
% Description:
% Returns the current eye position and its time sta... |
e89eaaa4e5d2b9b28edd62e18e1bb6ea4d4b592637fd9d0ed3416efb7f06cb29 | MATLAB | 1,154 | 26 | function [ dest ] = drawRects( src, rectsnd, c )
%¼ò½é£º
%½«Í¼Ïñ»ÉÏÓÐÑÕÉ«µÄ¿òͼ£¬Èç¹ûÊäÈëÊǻҶÈͼ£¬ÏÈת»»Îª²ÊɫͼÏñ£¬ÔÙ»¿òͼ
%----------------------------------------------------------------------
[rim, cim, z] = size(src);
%Èç¹ûÊǵ¥Í¨µÀµÄ»Ò¶Èͼ£¬×ª³É3ͨµÀµÄͼÏñ
if 1==z, dest(:, : ,1) = src; dest(:, : ,2) = s... |
64dec3457dfbb2a6d40bdfe306e44f059f0509907076b28c0adf7e6e24818cbc | MATLAB | 1,155 | 58 | function FTdata = data2FT(data,para)
%%%%%%%%%%%% transfer data into FT style %%%%%%%%%%%%%%%%%%%%%%%%%%%%
% input
% data : npoints*nchan signal
% para.Fs: sample frequency
% para.L: length of window to segment (in second)
% para.chanlabels: chanlabels
% Output:
% FTda... |
def3434f8cf2a77e6708ecf3b0e2cc72081228a6b8e2c0f9dcac3756df0b3389 | MATLAB | 1,155 | 42 | %% Gather and Store Monkey Metadata
%% Set up
% open Excel File
%excelFile = 'C:\Users\Public\RaymondLabCode\Projects\Max - CF Project\Monkey Metadata by Max.xlsx';
excelFile = 'C:\Users\Public\RaymondLabCode\Projects\Max - CF Project\Monkey Metadata by Max (Akira).xlsx';
expmt_table = readtable(excelFile);
%ExpmtD... |
7d953c6cc91a046651bb397ca2a793330f73aa3cb1dd26ea7afe036ad66d3612 | MATLAB | 1,156 | 45 | function h = vl_whistc(x, w, edges, dim)
% VL_WHISTC Weighted histogram
% H = VL_WHISTC(X,W,EDGES) behaves exactly like HISTC(X,EDGES), but
% weights the samples X by W. Samples that have NaN weight are
% skipped.
%
% See also: HITSC(), VL_HELP().
% Authors: Andrea Vedladi
% Copyright (C) 2007-12 Andrea Vedal... |
8b1c47a243bd7206738c9b8ed2c14c30c4cea721af609f9c4bbbc15326f8d08b | MATLAB | 1,156 | 31 | % mglClearScreen.m
%
% $Id$
% usage: mglClearScreen([clearColor], [clearBits])
% by: Jonas Larsson
% date: 04/10/06
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: Sets the background color and clears the buffer. 'clearBits'
% is an optiona... |
3e94fef4f13e4d3a94d95285dd5b99e3bf7b01ce190c2834c8b201d940552064 | MATLAB | 1,157 | 35 | function [myscreen] = calibrateEyeTracker(myscreen)
% calibrateEyeTracker - calibrates the eye-tracker
%
% The tracker must have been initialized first (see initEyeTracker)
%
% calibrateEyeTracker.m
%
% $Id: calibrateEyeTracker.m 203 2007-03-19 15:41:00Z justin $
% usage: myscreen = calibrateEyeTracker(mysc... |
713297d8fee6026d35bd984ed66b0cea320344662fbe7967aa695ad53baf84c4 | MATLAB | 1,157 | 56 |
im = imgRead(101085,'gray');
fb = fbCreate(6,1,1,3);
ntex = 32;
[tmap,tex] = computeTextons(fbRun(fb,im),ntex);
[tim,tperm] = visTextons(tex,fb);
wt = zeros(ntex,1);
for i = 1:ntex,
wt(i) = sum(abs(tim{i}(:))); % L1 norm of texton
end
wt = wt / max(wt(:));
tsim = zeros(ntex);
for i = 1:ntex,
for j = 1... |
74c2d657f9269f41317729991faacd44a9de236d1227b1a45cfa707676de35bc | MATLAB | 1,157 | 50 | function [rpInfo] = runRPfinder_vector(delta_vec,run_parfor)
% will output both estimated RP and
% additional useful info
if ~exist('run_parfor','var')
run_parfor = true;
end
assert(isvector(delta_vec),'use non-vector verison for matrix data')
[isiPDF,isiLags] = isiPDF_vector(delta_vec);
[expMdl,dt,p] = runExpFi... |
88497f8e59ade058f70dd49fdd24aab42cc5f18211cfb25daf490ae4ba189f5b | MATLAB | 1,157 | 61 | close all
clear all
clc
project = ml_util_json_read('project_config.json');
fl = dir(fullfile(project.analysisFolder, '**', 'bfo_180_total.mat'));
%iFile = 1;
sc = [];
dc = [];
ac = [];
for iFile = 1:length(fl)
f = fl(iFile);
fn = fullfile(f.folder, f.name);
[scn, dcn, acn] = process_scores(fn);
sc =... |
bf93a4296059cfe5c5c552fa774004b3f004ec668b6cc1dd589686704d3d69f7 | MATLAB | 1,157 | 39 | function [ loading_mode ] = aux_open_batch( obj )
% Aux to open files / folder
%
% Syntax:
% AUX_OPEN_BATCH( obj )
%
% Input parameters:
% * obj - object to cointain data
%
% Output parameters:
% data_type - type of data to load
%
% Example:
% AUX_OPEN_BATCH( );
%
% Available at: https://github.com/NCN-Lab/DBS... |
4d14fa690dc0e152fbe67578fad28b746f53241c351a3f046cdb856de840eefe | MATLAB | 1,158 | 34 | function gauss_sz = gaussianBeamSize(psf_params,dist,apod)
% gauss_sz = gaussianBeamSize(psf_params,dist,apod)
%
% Function to calculate an overestimate of the total Gaussian beam waist at
% a large distance from the focal point. This overestimate is approximately
% equivalent to an apodization of 5, and is returned a... |
02ef36fe80edb5b6e7652f50fc9d9eecfb4fae8b6d85b8eb1515745896b43c73 | MATLAB | 1,159 | 28 | function mltp_nlx_mclust_plot_spikes_for_checking_bits(obj, session)
% Get a list of the tfiles
tFilenames = dir(fullfile(session.getSessionDirectory(), 'TT*.t'));
nvtFilename = fullfile(session.getSessionDirectory(), obj.Config.nvt_filename);
numTFiles = length(tFilenames);
outputFolder = full... |
20e734b78febda3947ec8a17c6c9fd142294a6ba73e714e049a4cec662d106c0 | MATLAB | 1,159 | 25 | function [other_x_cm, other_y_cm] = mulana_transform_other_roi(arenaJson, arenaroi)
refP = reshape(arenaroi.inside.j, 1, 4);
refQ = reshape(arenaroi.inside.i, 1, 4);
if strcmpi(arenaJson.shape, 'rectangle')
arena = MLArenaRectangle([refP; refQ], arenaJson.x_length_cm , arenaJson.y_le... |
75f416066d68f3a991797e8de886989c76527f379fc0fd8d6834ae6212f8f34c | MATLAB | 1,160 | 37 | %
% Please cite this paper if you use any component of this software:
% S. Soltanian-Zadeh, K. Sahingur, S. Blau, Y. Gong, and S. Farsiu, "Fast
% and robust active neuron segmentation in two-photon calcium imaging using
% spatio-temporal deep learning," Submitted to PNAS.
%
% Released under a GPL v2 license.
functio... |
8c6d18977b608b8b56cb813b5005eb90432cb176b2a1f7ab9bf4f71677f3f707 | MATLAB | 1,160 | 23 | % mglTransform.m
%
% $Id$
% usage: mglTransform(whichMatrix, whichTransform, [whichParameters])
% by: Jonas Larsson
% date: 2006-04-07
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: applies view transformations
% arguments: whichMatrix: 'GL_MODELVIEW... |
90187976eb025884e41c1d2f94933256c708a940cdc526edb0a07ffc3fcd49d4 | MATLAB | 1,160 | 25 | function [targ_dirs, as] = target_def(cursor_info,n_targ_dirs,P_tmp,t_tmp)
targ_dirs=zeros(1,1,3);
t_tmp_an=[1 0 0];
n_tmp=cursor_info.Position;
ex_coil_in_mri=((t_tmp_an)-dot(t_tmp_an,-n_tmp)*-n_tmp)/(norm((t_tmp_an)-dot(t_tmp_an,-n_tmp)*-n_tmp));
theta=(pi/(180/n_targ_dirs));
%R=[cos(theta) -sin(theta) 0; si... |
bc61e3e77741699aee0a5bfa06024183ba2fda1154d946f30e502cf483c99a7b | MATLAB | 1,160 | 31 | % sankey demo6
% -----------------------
% @author : slandarer
% 公众号 : slandarer随笔
% 知乎 : slandarer
links={'a1','A',1.2;'a2','A',1;'a1','B',.6;'a3','A',1; 'a3','C',0.5;
'b1','B',.4; 'b2','B',1;'b3','B',1; 'c1','C',1;
'c2','C',1; 'c3','C',1;'A','AA',2; 'A','BB',1.2;
'B','BB',1.5; 'B','AA',1.5;... |
e0702dbbb671e395fb55f19b98b119626cda6f137fe1755ad260fb69ce065318 | MATLAB | 1,160 | 30 | sBA =
position_x: [14600x1 single]
position_y: [14600x1 single]
distance: [14599x1 single]
headOrientation: [14600x1 single]
smooth_right: [14600x1 double]
smooth_left: [14600x1 double]
filter_right: [14600x1 doub... |
41324d413cb1eea5657a9d0f661a6562c28af9bc86dc87558e5e90ef9ad41115 | MATLAB | 1,161 | 48 | function J=vl_xyz2rgb(I,ws)
% VL_XYZ2RGB Convert XYZ to RGB
% J = VL_XYZ2RGB(I) the XYZ image I in RGB format.
%
% VL_XYZ2RGB(I,WS) uses the RGB workspace WS. WS is a string in
%
% - CIE: E illuminant and 2.2 gamma
% - Adobe: D65 illuminant and 2.2 gamma
%
% The default workspace is CIE.
%
% See also: ... |
ff1ef435d0f8a26baac3467ecbc387570b8b58b6e3e8439d27746d75e37c1705 | MATLAB | 1,161 | 36 | function abb = generateZernike(psf_params,offset)
% abb = generateZernike(psf_params,offset)
%
% Generates the Zernike aberration weights given a input distribution and
% offset. The inputs are
%
% - psf_params - Struct contaning the parameters for the PSF
% .lambda - Two-photon excitation wavele... |
11a977a885a3fdce3268491043766149178e3a83fd631150be81fd3ed85cd47f | MATLAB | 1,162 | 50 | mice = {'EC1-1R','EC1-1R','FL5-3L','FL5-3L','FU1-00','FU1-00','GE3-00','GE7-1L1R','GE7-1L1R','GS2-1L','GS8-00','GS8-00'};
dates= {'2021-11-05','2022-01-13','2022-03-09','2022-04-18','2022-05-10','2022-03-17','2022-10-27','2022-10-20','2022-12-20','2022-11-21','2022-11-23','2022-12-20'};
for i = 1:12
pooled_activit... |
c1b3d48747f1cc86423e0bf19af1c25e8b9ac2a170a7eb191cf8da2533a385ef | MATLAB | 1,162 | 37 | function [tip_centroids, L, BW] = tip_filter(I, thresh)
%Use a Mexican hat-esque filter to find tips. parameters are hardcoded
%Create Mexican hat-esque filter, if it hasn't been already
persistent circle_filter;
if isempty(circle_filter)
[X,Y] = meshgrid(-5:5, -5:5);
circle_filter = d... |
39d14d8aa6a8387c1026ba82136104ff78d73836455d2242af623c5a5163b65e | MATLAB | 1,164 | 42 | function [yData,betas,P,errors] = run_tSne(data,parameters)
%run_tSne runs the t-SNE algorithm on an array of normalized wavelet amplitudes
%
% Input variables:
%
% data -> Nxd array of wavelet amplitudes (will normalize if
% unnormalized) containing N data points
% parameters -> struct ... |
3ae69f51aa53dedbf96c4c25df71acf4c446c2291faa8154b211b4a1b0867f91 | MATLAB | 1,164 | 49 | function[] = plot_accuracy_final(output_sp,output_spm,starts)
%% UNPACK VARIABLES
sp_accuracy=output_sp.sp_accuracy;
spm_accuracy=output_spm.smp_accuracy;
sp_err=std(sp_accuracy)/sqrt(size(sp_accuracy,1));
spm_err=std(spm_accuracy)/sqrt(size(spm_accuracy,1));
%%
figure(1)
subplot()
clf
utils.set_figure(15)
hol... |
bb097aea3723d63663ed99dfa8d1ce38833d33c1f707b79f0721ed8e6a82445e | MATLAB | 1,164 | 39 | function [RandVMF] = randVMF(N, mu, k)
% This function generates the random samples from VMF distribution. The
% formula and algorithm of the generation process is descrbed in
% SphereDistributionRand.pdf.
%
% Usage:
% [RandVMF] = randVMF(N, mu, k);
%
% Inputs:
% N: The number of samples one wants to generate.
%
% ... |
dd5403fc570a69a5c904dacaf930c7ae61c7746832062a514810d63ddc95f427 | MATLAB | 1,164 | 53 | function [] = Fig08_ConnectivityMatrix_Core()
% Code for plotting the connectivity matrix in Fig. 8b.
%% parameters
pIP10 = [13417,13038]; % pIP10 (L, R)
pMP2 = [11977,11987];
dPR1 = [10267,10300]; % dPR1
TN1A = [15521,16465,15148,12883,16207,...
16113,14581,14810,15387,17640,...
13945,14401,13928,16391,16042,... |
0ad1bd1a278d897d0129093cdbcdbf2d82b02e54acce501dd789810bf80657b1 | MATLAB | 1,165 | 29 | function writeStatus(folder, finished)
% Write status.json, {"finished": true|false}, into a folder
%
% function webupload.writeStatus(folder, finished)
%
% Purpose
% The server requires status.json in every upload. It says whether the run the folder
% belongs to has ended. An existing statu... |
5d14f827da45e321f83e4f60cc3896b727aa47f180d2faafd08bdf68e2e1878a | MATLAB | 1,165 | 43 | %
% Plot matrix approximations.
%
% INPUT
% dat/approximation.$NETWORK.mat
%
% OUTPUT
% plot/approximation.$FUNCTION.$NETWORK.eps
% For all functions as given in the data file
%
network = getenv('NETWORK');
data = load(sprintf('dat/approximation.%s.mat', network));
[colors line_styles markers] = styles_method(... |
c68b2742d136b3d44b1d6c7b8f79f31fb0ecece7cea4b443405497023cb04192 | MATLAB | 1,165 | 39 | classdef ElementIdentifiers < types.hdmf_common.Data & types.untyped.DatasetClass
% ELEMENTIDENTIFIERS A list of unique identifiers for values within a dataset, e.g. rows of a DynamicTable.
methods
function obj = ElementIdentifiers(varargin)
% ELEMENTIDENTIFIERS Constructor for ElementIdentifiers
... |
4388b23c2d482648cf80efc6b05b73728adc347b286b664f8c5f613882321700 | MATLAB | 1,166 | 46 | % Function File: [y, k] = bounce (y, n)
%
% Extend each end of the y-vector by n number of points for
% 'bounce' (or mirror) end-effect correction. The output
% includes the extended y-vector and the number of bounces (k).
%
% bounce v1.0 (last updated: 16/09/2011)
% Author: Andrew Charle... |
4b85f52492943af486c4d713a28aa234ff4e475139db82b879b007f31a185f91 | MATLAB | 1,166 | 65 | <<<<<<< HEAD
function [EER, EERlow, EERhigh] = computeEER(FAR,FRR)
% calcolo le posizioni di confine
t1 = min(find(FRR>=FAR));
t2 = max(find(FRR<=FAR));
% Controllo la combinazioni che da errore complessivo inferiore
if (FRR(t1) + FAR(t1)) >= (FRR(t2) + FAR(t2))
EERlow = FRR(t1);
EERhigh = FAR(t1);
else
E... |
ac512e0b7ae3344aa7e606052aba34624ddb54fbc7fc228e5e76a86542e80d95 | MATLAB | 1,166 | 43 | function vars = calc_linearity_APP (vars)
%% load data
disp('Calculating Alignment Based on highest Linearity...')
loadAnalysisInfo_APP;
%% Calculate r2 values With Various Alignment Values
% Magnet Channel 1 Position
try
[mag1.pos_linearity_r2, mag1.pos_linearity_maxr2, mag1.pos_linearity_maxr2Loc] = ...
... |
c413803402a37bd395f185fd7d33057560f41baf41824fcfaac7334272077d13 | MATLAB | 1,166 | 40 | % mglDeleteTexture.m
%
% $Id$
% usage: mglDeleteTexture(tex)
% by: justin gardner
% date: 02/29/08
% copyright: (c) 2008 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: Deletes a texture. This will free up memory for
% textures that will not be drawn again. Note ... |
d87b9d6974d87c01254deba538a1892b4d36f7eaed6843486ae241d0cc7d951e | MATLAB | 1,166 | 14 | % Marc Normandin, Muzzio Lab, Psychological & Brain Sciences, University of Iowa, 2024
function [registeredCellNamesStable, registeredCellNamesUnstable] = get_stable_unstable_registered_cell_names_classified_1day(analysisSettings, CellRegTable, BestAligned, STABILITY_CLASSIFICATION_GROUP_LABEL, BESTALIGNED_STABILITY_T... |
fe2bc646d45352e849635115e5870a5b5e16386030bbb8aa268f61d6c12ecff6 | MATLAB | 1,166 | 34 | function noise_params = check_noise_params(noise_params)
% modified by YZ for widefield imaging.
% last update: 12/17/2021.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Run the checks
if isempty(noise_params)
clear noise_params
noise_params = struct;
end
if (~isfield(noise... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.