sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
275ed6f3a46e06d9fdc35db945234dd2a50f76af51768dbad3fd10a982985487 | MATLAB | 1,491 | 48 | function imsegs = im2superpixels(im, method, varargin )
if nargin < 3
% default parameters to generate superpixels
switch method
case 'pedro'
pedro_sigma = 0.8;
pedro_k = 100;
pedro_min_size = 150;
case 'SLIC'
... |
3db88231551ad5bd4041c45b9745dcadc26143036b387a17281d71a01d8f5dc5 | MATLAB | 1,491 | 46 | function [stop, params] = default_stop(params, state)
% Default stopping criteria function.
% [stop, params] = default_stop(params, state)
% params Function specific modifiable parameters
% params.maxiters Maximum number of allowed iterations
% params.epsilon Treshold angle, iteration is stopped when... |
59250fd6ee562cfb55f994a61a6361e93e612e31bf5be5d663b470a6822bc067 | MATLAB | 1,491 | 52 | % mglTestMetalRepeatingFlush: an automated and/or interactive test for rendering.
%
% usage: mglTestMetalRepeatingFlush(isInteractive)
% by: Benjamin Heasly
% date: 03/10/2022
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: Test multiple flushes, repeated by t... |
7a1ac623cd1782ac96d8baa501ebde333407842d0145b1ccb37594c12e750287 | MATLAB | 1,491 | 40 | function result = interpretResponse(httpStatus, body)
% Turn an HTTP status and decoded body into a result structure
%
% function result = webupload.interpretResponse(httpStatus, body)
%
% Purpose
% Success needs both HTTP 200 and {"status":"ok"} in the body. Pure function, so it is
% tested... |
81a419d3d6c9a6921c0d4a379901ec867fc32f4bf92b500908cc78bccb5603a3 | MATLAB | 1,493 | 52 | %% calculate the ICC of each connectivity in HNU data
%% ICC script downloaded from: https://ww2.mathworks.cn/matlabcentral/mlc-downloads/downloads/submissions/22122/versions/12/download/zip/IPN_agreement.zip
%% para
sub_num = 30;
ob_k = 10;
node_num = 48;
pro_type = {'No_smooth','Smooth'};
net_type = {'VBM','DBM'};
... |
eb148024e6f82e0b6b2d5ff3bf938b710efd3ee340f4a560629614d0870efd3a | MATLAB | 1,493 | 50 |
%# -*- texinfo -*-
%# @deftypefn {Function File} {} hamming (@var{m})
%# Return the filter coefficients of a Hamming window of length @var{m}.
%#
%# For a definition of the Hamming window, see e.g., A. V. Oppenheim &
%# R. W. Schafer, @cite{Discrete-Time Signal Processing}.
%# @end deftypefn
%# Author: AW <Andreas.W... |
11015eb6d17a70ac40a2185a90d948ca5151db534abd4625195faf75d017a62d | MATLAB | 1,494 | 82 | function A=readmda(fname)
%READMDA - read the contents of a .mda file. MDA stands for
%multi-dimensional array.
%
% See http://magland.github.io//articles/mda-format/
%
% Syntax: A=readmda(fname)
%
% Inputs:
% fname - path to the .mda file
%
% Outputs:
% A - the multi-dimensional array
%
% Other m-files required:... |
29e080ae79323f4f08d1ed8c9357066a30a5efff614945213f06b0a573079b4f | MATLAB | 1,494 | 54 | %% LOAD
for d = 1:12
ref_matrix=decon_matrices{d}(:,:,4);
som_matrix=decon_matrices{d}(:,:,1);
pv_matrix=decon_matrices{d}(:,:,2);
mixed_matrix=decon_matrices{d}(:,:,3);
% ref_matrix(isnan(ref_matrix))=[];
% som_matrix(isnan(som_matrix))=[];
% pv_matrix(isnan(pv_matrix))=[];
% mixe... |
d83678caeed7db6a6cf97ebeb9b335cb01ef266ee9f8f805eeacbcc5aaa8c31c | MATLAB | 1,495 | 54 | % rotatePts2D.m
%
% Function that takes in (x,y) coordiate of a point or set of points and
% rotates them the specified angle (in degrees). Works in 2D. I.e. xy
% plane
% Rotates point using rotation matrix
%
% INPUTS:
% xPt - x coordinate(s) of point(s) as scalar or vector of values
% yPt - y coordinate(s) of po... |
a101dfb550f5234729a1b9ef2b240a26c8eba3c77af3da66342977fdad6d27e6 | MATLAB | 1,496 | 44 | % BIOSIG/T200 contains Matlab/Octave functions to access various biosignal dataformats
% For simiplicity we call all supported files "Biosig"-files.
% For the the list of supported formats see the references below.
%
%
% A united interface is provided for all data formats:
% SOPEN opens an Biosignal file (and rea... |
63c79e1dd4b06b59cf4b28978110658e640f3dbd11ff7714640f80dd42efa861 | MATLAB | 1,497 | 54 | function SepParticles = ParticleSeparationWatershed(MnonConv,Convexthresh)
% Ultimate Erosion of Convex Shapes (UECS) based particle separation of non convex particles
% based on the discribtion of
% Park, C. and Ding, Y. (2021) Data Science for Nano Image Analysis, Springer Nature, Cham, Switzerland
% and the ... |
99c9f05710801b7ad59d6b76ac6d944d884ba940349df3909d1c39323cf353a6 | MATLAB | 1,497 | 1 | % This function convolves the vector *Data* with a rectangular sliding window
% of size *WinSize* (a scalar). The amplitude of the rectangular window is
% 1/WinSize (to obtain an average). The overall effect is of a low-pass
% filter of approx. width (in the frequency domain) of (1/WinSize)*Sampling Frequency.
%
% A... |
be1076a3f3c3be340faaa8054616a780b1ce1cb75f314d91dc19a74e3e5db85f | MATLAB | 1,498 | 58 | function SetErrorTypes(handles)
% set "next error type" menu values based on remaining suspicious sequences
% splintered from fixerrorsgui 6/23/12 JAB
isbirth = false; isdeath = false;
isswap = false; isjump = false;
isorientchange = false; isorientvelmismatch = false;
islargemajor = false;
for i = 1:length(handles.se... |
8b898246dd0b8acc06670669e04efe90dd8e66c7f12c03dadce00dcb7cfb2172 | MATLAB | 1,499 | 42 | function pc = getRealPC(v,g)
% pathway power or transient pathway current
% Detailed explanation goes here
% Connectivity
p_base = [0.1184, 0.1552, 0.0846, 0.0629, 0.0323, 0.0000, 0.0076, 0.0000;
0.1008, 0.1371, 0.0363, 0.0515, 0.0755, 0.0000, 0.0042, 0.0000;
0.0077, 0.0059, 0.0519, 0.1453, 0.006... |
34f7c35b807fb3576650bcd3038de0bd2b7f07e0c40d625d86c617d84564403d | MATLAB | 1,500 | 36 | function predBOLD = getPredictedBOLDResponse(predNeural, hrf, params)
% Function to convolve neural prediction with hrf to get predicted BOLD
% response for each voxel
%
% predBOLD = getPredictedBOLDResponse(predNeural, hrf, params)
%
% INPUTS
% predNeural : (double) matrix or array with dimensions time by
% ... |
38692443fdae5b2623664d9bd5447f0a70967c806e03d05a4199e60fc6fc3d18 | MATLAB | 1,500 | 38 | clear
%load F1s.mat
filenames = {'c25_59_228','c27_12_326','c28_83_210',...
'c25_163_267','c27_114_176','c28_161_149',...
'c25_123_348','c27_122_121','c28_163_244'};
radii = [3:8];
SNRs = [7:4:23];
[list_Recall, list_Precision, list_F1] = deal(zeros(length(filenames),length(radii),length(SNRs)));
parfor n = 1:(... |
b2ab0335a7d799ad227523a4ee77256d429f1a28c554a86449111e4fe5ff1a6e | MATLAB | 1,501 | 56 | function [amplitudes,f] = findWavelets(projections,numModes,parameters)
%findWavelets finds the wavelet transforms resulting from a time series
%
% Input variables:
%
% projections -> N x d array of projection values
% numModes -> # of transforms to find
% parameters -> struct containing non-default... |
d4d2e3fbe2a90cdc2da6323114edcb0f59061085fadb3ae52b37c523324f6802 | MATLAB | 1,502 | 32 | function [lambda, fiterror, maxdeviation] = spectrum_fit(eeg, Fs, highpassfreq, lowpassfreq)
%SPECTRUM_FIT finds the fitted power and mean-squared error from fitting a
%power law (1/f) curve to the frequency spectrum of an eeg epoch.
%Adapted from Winkler 2011, doi.org/10.1186/1744-9081-7-30.
%Used as one method of det... |
45d45b6bc7690b06c38e3596224a8a9da38089edc0f03da5dd7b72dc2ab8e0ce | MATLAB | 1,503 | 37 | function Tracks = get_directional_behavior_triggers(Tracks,randomize)
%this function calculates the Behaviors field, consisting of a binary
%vector that is true for when a particular behavioral transition occurs
if nargin<2
randomize = false;
end
load('reference_embedding.mat')
%calculate the ... |
995e5bed7a70693a20d8dee42e11a4a204531c59df630ef388ee82977b4b9d82 | MATLAB | 1,503 | 53 |
% use even number of layers around the wire core
function [cx_arr, cy_arr] = get_wirecenters(numloops,numlayers,wireradius,coreradius)
Ntotal = round(numloops * (numlayers/2) + (numloops-1) * (numlayers/2));
fprintf('Computing %d centers\n', Ntotal);
cx_arr = zeros(Ntotal,1);
cy_arr = zeros(Ntotal,1);
indx=1;
% fi... |
2dc663a6ac433aafd7084b531b266539cb79cb269144d5da4df4291c50af3dd4 | MATLAB | 1,504 | 41 | function [binned, cut] = from_markertime_to_binned(MARKER, neuron, trial, condition, center_marker, bin, m_time, p_time)
%% Function to convert event markers to binned format
%% authors: Stefano Diomedi
%% date: 22nd February 2024
%
%% Inputs:
% MARKER: Event marker dataset
% neuron: Neuron index
% ... |
8ca6858ec57e8a896946502c95ecb207d9c8f6fa1e1e8c68a3640f02370c4bcd | MATLAB | 1,504 | 42 | function a = file_array(varargin)
% Function for creating file_array objects.
% FORMAT a = file_array(fname,dim,dtype,offset,scl_slope,scl_inter,permission)
% a - file_array object
% fname - filename
% dim - dimensions (default = [0 0] )
% dtype - datatype (default = 'uint8-le')
% offset ... |
e7de8e4051db858d124a54679230b192a018db898f6f394ec4868aef03ee2182 | MATLAB | 1,505 | 63 | function [Head]=SONFileHeader(fid)
% SONFILEHEADER reads the file header for a SON file
%
% HEADER=SONFILEHEADER(FID)
%
% Used internally by the library.
% See CED documentation of SON system for details.
%
% 24/6/05 Fix filecomment - now 5x1 not 5x5
%
% Malcolm Lidierth 03/02
% Updated 06/05 ML
% Copyright © The Auth... |
31abe7b701394e0d7445691dea72b6d36d0b10d3c61960d50fc33608dfbb3768 | MATLAB | 1,506 | 61 | function [sim_spk_t,p,p_raw] = simulate_spk(len, prob_spk_base, nr,k, f_osc, p_osc, osc_offset)
%simulate_spk.m
% --> simulates spike times for a provided interval
% --> following from Rivlin-Etzion et al., 2006, JNP
sim_spk_t = nan(len,1);
% check for osc_offset
if ~(exist('osc_offset','var'))
osc_offset = 0;
end
... |
348d05ddfd57994f127157c0e3dab2d0afedda2612092da588f17dafe8a90e37 | MATLAB | 1,510 | 48 | %
% Compute steps for time-dependent analysis of a split dataset.
%
% The time steps are not exactly all over the same number of edges.
% Instead, they are fudged so as to put steps on the moment the two
% splits happen.
%
% PARAMETERS
% $network Network
%
% INPUT
% dat/split.$network.mat
%
% OUTPUT
% dat/steps... |
be00b3857edb6a6c108ac5633c8798148be88a0c161d8c46932b17f5e357023a | MATLAB | 1,511 | 44 | function state = dss_set_denoising(state, denf_function, denf_params)
% Initialize denoising function to state structure
% [state] = dss_set_denoising(state, denoise_function, denoise_params)
% state DSS algorithm state
% denf_function Initialized denoising function.
% (default:@den... |
e8367e6a75b3d0cce17b53dd6bba7de20c0f545bc2d4c6f1b3cd4563b448f252 | MATLAB | 1,511 | 48 | function [design_kurtosis] = simulation_design_matrix_standardDKI(V,bvalue)
% design matrix diffusion tensor
X2(1,:) = V(1,:).^2;
X2(2,:) = V(2,:).^2;
X2(3,:) = V(3,:).^2;
X2(4,:) = 2*V(1,:).*V(2,:);
X2(5,:) = 2*V(1,:).*V(3,:);
X2(6,:) = 2*V(2,:).*V(3,:);
X2(7,:) = 1;
% design matrix kurtosis tensor
X4(1,:) ... |
a53e2c3560de64d33b274fb57826a554279c11e4cb7d1fc7cb64dd1d35d1cbe0 | MATLAB | 1,512 | 37 | % mglSocketCreateClient: Create a socket and connect to an address.
%
% $Id$
% usage: socket = mglSocketCreateClient(address, [pollMilliseconds, maxConnections])
% by: justin gardner and ben heasly
% date: 12/26/2019
% copyright: (c) 2021 Justin Gardner (GPL see mgl/COPYING)
% purpose: Ope... |
134b6ca0831a065a0da3745c51bd4a30ef82d0beb78da1da2c14a394a88a14b5 | MATLAB | 1,514 | 58 | function[converted_coord]=convert_coordinate(idx,conv_type,Fall)
% Function that converts between 3 kinds of coordinates:
% s2p coordinate
% iscell == 1 coordinate
% isred == 1 coordinate
%conversion is denoted by conv_type
%** RED_CELL_VECT IS A VECTOR OF LENGTH sum(ISCELL==1)
% WILL NOT WORK AFTER EXCLUSION STEP... |
991bbb10c34697a19f31b49f428e362d1b828b9edae32315456eef6eaf3f40ec | MATLAB | 1,514 | 49 | function [distance,pathfrom] = vessel_dijkstra(distMat,proot)
% [distance,pathfrom] = vessel_dijkstra(distMat,proot)
%
% Function to apply Dijkstra's algorithm to growing out vasculature.
% The inputs to this function are:
%
% - distMat - distance matrix between different nodes
% - proot - starting root node
%
... |
e871bb1e1ec14c84c8fa948def9f052c484f8cf07966dd58d00c718c950824d0 | MATLAB | 1,514 | 41 | %% s_runDataPreproc.m
% Main script to detrend, average, combine, and chop measured time series.
%
% Written by Eline R Kupers, Stanford U 2021
projectDir = simseqRootPath;
subjnrs = [1,2,3,7,8,9,10,11,12,13];
roiType0 = 'stimcorner4_area4sq_eccen5';
if useSTRetParams
temporalModel = '1ch-dcts'; %'1ch-dcts' ... |
eb6db14b83b7e4da1faae9973ae0911561b6d9a8099c2ae109c02e1eadd131a8 | MATLAB | 1,514 | 42 | % uniformRandomization.m
%
% usage: uniformRandomization()
% by: justin gardner
% date: 01/22/07
% purpose: function that decides order of parameters,
%
function retval = uniformRandomization(parameter,previousParamIndexes)
%%%%%%%%%%%%%%%%%%%%%%
% do init
%%%%%%%%%%%%%%%%%%%%%%
if nargin == 1
... |
3ba63283876a4ecb8732cf73c237d66f2c43001b78fbfa97f0a4f8cc48d46b5a | MATLAB | 1,515 | 41 | %--------------------------------------------
% Function clean_onoff
% Input: x0 - binary (up/not up or down/not down) activity from all neurons
% Outputs: x_clean - binary activity from all neurons where all up (down) states
% less than min_ln apart are merged and all remaining up (down)
% ... |
4d6a0fda609664a6eaecdcbcc872455958313053aa8c26d53b1c941b13a29df3 | MATLAB | 1,515 | 79 | %
% Draw the Lorenz curve for a network's degree distribution.
%
% PARAMETERS
% $network
%
% INPUT
% dat/data.$network.mat
%
% OUTPUT
% plot/lorenz.[uva]{,b}.$network.dat
% a - total
% u,v - Row/column-based (only BIP and ASYM)
% b - Bare, i.e. without the P value
%
network = getenv('network');
data = load(sp... |
656946c29c4c78b388dc83a80e64950df611be8728c4d0827019df83d320cf68 | MATLAB | 1,517 | 36 | % expand_unitsTableEM
% add a column with min(pMD) for all whisker vars and a column with min(pMD)
% of all head vars
[RR, CC]= size(unitsTable);
Titles = unitsTable(1,:);
CC = CC+1;
unitsTable(1,CC) = {['theta.ANY_pMD']};
mm = min(cell2mat(unitsTable(2:RR,find(strcmp(Titles,['theta.RL_pMD']))))...
, ce... |
a30ee6d13709eacfaa0394791083ccbe77ccafbc11dcde184b552e79263ee85e | MATLAB | 1,517 | 61 | function [] = ExtDataFig10_Connectivity_tSNE()
% Code for plotting the t-SNE plot in Extended Data Fig. 10b.
%% 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... |
9964e3e9abf0dc7d24ba3b4013b967ae494d5f802894db1ccf188d96ae3b9be6 | MATLAB | 1,518 | 51 | % Compute MePD output on c_{li} x c_{ll} parameter space
clearvars; clc;
addpath("C:/Users/kn356/OneDrive - University of Exeter/Desktop/StandardMATLAB")
load("colour.mat")
addpath("C:/Users/kn356/OneDrive - University of Exeter/Desktop/StandardMATLAB/MePD")
load("par.mat")
par.d=0.05;
p1 = [0 , 40];
p2 = [0,... |
e371b3025bba4d72e2c111b485f80e1f2893f12e40d548670fadefc247d18b0c | MATLAB | 1,518 | 64 | % plotPDataRawTraces.m
%
% Quick script to plot raw traces given user-selected pData file
% Written to plot traces for CSHL Neurobiology of Drosophila 2019 meeting
% poster
%
% CREATED: 9/28/19 - HHY
%% plotting parameters
dFFscale = [-1 1];
fwdVelScale = [-10 40];
yawVelScale = [-600 600];
xScale = [100 130];
%% l... |
6ac3e10ebaf07c90d9a3283a4e045c9294faa8ebbcddc6a0a0f33dbd5ccaa8a0 | MATLAB | 1,520 | 51 | % Compute MePD output on c_{li}xc_{il} parameter space
clearvars; clc
addpath("C:/Users/kn356/OneDrive - University of Exeter/Desktop/StandardMATLAB")
load("colour.mat")
addpath("C:/Users/kn356/OneDrive - University of Exeter/Desktop/StandardMATLAB/MePD")
load("par.mat")
par.d=0.05;
p1 = [0 , 40];
p2 = [0, 40... |
6b5d00be9befcbcf9572eb2edc07fd02b08d3cf179412777568d462452d6fe76 | MATLAB | 1,520 | 55 | % mglText.m
%
% $Id$
% usage: [tex, results] = mglText('string')
% by: justin gardner
% date: 09/28/2021 Based on version from 05/10/06
% copyright: (c) 2021 Justin Gardner (GPL see mgl/COPYING)
% purpose: Returns a texture for a string
%
% e.g.:
%
%mglOpen
%mglVisualAngleCoordinates... |
b0843f0578e84170634baaa539e019a9e5efb73cfe3de750ff3ea676f7a79a8c | MATLAB | 1,521 | 46 | %% FOR ONE-SAMPLE signrank
% This script implements a Monte Carlo simulation using the 1-sample signrank test for determining the cluster size threshold of the spatial ICA maps.
% It iteratively draws random samples from the pool, conducts statistical tests, thresholds the results, and stores the empirical distribution... |
f06efe38c7bd15b18760407c74df731aeda66abfc0c3a372826372c6c1915295 | MATLAB | 1,521 | 44 | % Marc Normandin, Muzzio Lab, Psychological & Brain Sciences, University of Iowa, 2024
function [hFig] = plot_bfo180_average_similarity_curves_per_group(DaysToSessions, NormalBFO180Similarity)
T = compute_bfo180_average_similarity_curves_per_period_table(DaysToSessions, NormalBFO180Similarity);
uniqueDays = uni... |
0c3fce5edb31015e66b86b902108c215bc70d42350df214f984e1e234393ab9b | MATLAB | 1,522 | 47 | function ft_create_buffer(port)
% FT_CREATE_BUFFER starts the thread with the TCP server attached to the local
% MATLAB instance. The TCP server will listen to the specified network
% port, and accept incoming read and write requests.
%
% Use as
% ft_create_buffer(port)
% where port is the TCP port to which the serv... |
9a19e590cc684e0b657c4d8e2c4bdfd92cccf623689c9f720b572016f7006495 | MATLAB | 1,522 | 51 | function [xCrop,yCrop] = cropToOneDimRange(x,y,xLB,xUB)
%cropToOneDimRange.m
assert(isvector(x) && isvector(y),'only accepts vector inputs currently')
LBleftIX = find(x <= xLB,1,'last');
LBrightIX = find(x >= xLB,1,'first');
% LB
if isempty(find(x == xLB))
flankX = [x(LBleftIX) x(LBri... |
b338ab563d41c71a7ef26538d86b315d2f7a381fd09997ad35662559287db3ef | MATLAB | 1,522 | 59 | function vl_demo_kdtree_forest
% VL_DEMO_KDTREE
% Demonstrates the construction of a forest of randomized
% kd-trees.
% Copyright (C) 2007-12 Andrea Vedaldi and Brian Fulkerson.
% All rights reserved.
%
% This file is part of the VLFeat library and is made available under
% the terms of the BSD license (see the CO... |
d0baa461f42b5a38831f8a0028fca73c02117b5ee0289cf7dcf6757f0c52c9e4 | MATLAB | 1,523 | 39 | function test_all(do_try)
% Setting do_try to false is useful for debugging
if ~exist('do_try', 'var') || isempty(do_try) ,
do_try = true ;
end
% get the name of all the test functions
this_script_file_path = horzcat(mfilename('fullpath'), '.m') ;
[this_script_folder_path, this... |
3eb18540b10f8d199f00cb1416804be4b41994e7934496bccc4f0b2de2ca82f7 | MATLAB | 1,524 | 31 | clear
file=dir('ACC*restable*.mat');
k1=1;k2=1;
for jj=1:length(file)
load(file(jj).name)
nogotrial=find(outcome(:,1)==3|outcome(:,1)==4);%Nogo trial,cr/fa
nogotrial(find(nogotrial<=1))=[];
previous_trial_ng=outcome(nogotrial-1,1);%NOGO previous trial
FA_trial_ng=find(previous_trial_ng==4);%... |
94be112b33823f2b7bd841e5ae0faaac4ce2c0869fb6b41a10776bd02fb95f20 | MATLAB | 1,524 | 34 | function [center_dampen,angle_dampen,ang_dist_wt,max_jump,maxmajor,meanmajor,model_type,circular_arena,n_bg_std_thresh_low,iscalibfile] = ...
fix_ReadAnnParams(annname)
[~,~,ext] = fileparts(annname);
iscalibfile = strcmpi(ext,'.mat');
if iscalibfile,
calibd = load(annname);
center_dampen = calibd.ann.center_dam... |
1b375a0ffd72db5f08e27e8aa0f0c22bac446dc906d9bd9f52a92eb97d5ea2f1 | MATLAB | 1,525 | 56 | function subj_power_response_ft_wavelet(sn)
% time frequency power of each set size, response locked
load('subs.mat');
subname = subs.name{sn};
set_name = fullfile(Dir.prepro,[subname,'_clean.set']);
EEG = pop_loadset('filename',set_name);
EEG = pop_select(EEG,'nochannel',{'LHEOG','RHEOG','BVEOG','TVEOG'});... |
bb7f7eaa712a1bd7033f631ddb22d746c717cdb7e85c1d8a6199710bb0fa57c7 | MATLAB | 1,526 | 37 | clear
%load F1s.mat
filenames = {'CaMKII_120_TMT Exposure_5fps_part11','CaMKII_120_TMT Exposure_5fps_part12',...
'CaMKII_120_TMT Exposure_5fps_part21','CaMKII_120_TMT Exposure_5fps_part22'};
radii = [10:2:18];
SNRs = [15:4:31];
[list_Recall, list_Precision, list_F1] = deal(zeros(length(filenames),length(radii),leng... |
57c3db999ca960cf051d9df0fe07bc10bd2ea9cc98e4d65250551b1a520498bf | MATLAB | 1,527 | 51 | %% corr the connectivity and behav data via PLS
roi_num = 48;
path = pwd;
load('unrelated_sub_matrix_str_DBM.mat')
Mat_group = sub_matrix;
Mask_net = logical(tril(ones(roi_num),-1));
Mat_data = zeros(size(Mat_group,3),sum(Mask_net(:)));
for isub = 1:size(Mat_group,3)
Mat_sub = Mat_group(:,:,isub);
Mat_data(is... |
f45ce65f17ad3c0cc4b5854732019c4aab4cb97508a6ec427c2c0903f3bc7689 | MATLAB | 1,527 | 51 | %% corr the connectivity and behav data via PLS
roi_num = 48;
path = pwd;
load('unrelated_sub_matrix_str_VBM.mat')
Mat_group = sub_matrix;
Mask_net = logical(tril(ones(roi_num),-1));
Mat_data = zeros(size(Mat_group,3),sum(Mask_net(:)));
for isub = 1:size(Mat_group,3)
Mat_sub = Mat_group(:,:,isub);
Mat_data(is... |
478dd9d45e9f562384d1ce311684505b7c997fd03d428c009dc5e8ae2f8f74f8 | MATLAB | 1,528 | 67 | function heatmapPlot(data,interval,basal,smooth_res,fig,clims)
% s = size(data);
% cell_number = s(1);
% data_length = s(2);
%
% figure(fig);
% if smooth_res
% smoothed_data = linearSmooth1(data,smooth_res);
% data_length=size(smoothed_data,2);
% interval=interval*smooth_res;
% else
% smoothed_data = ... |
afcb177a63c63a83701a87f0ce35ccaeab891a46d9f11c5d766d1406cb61c69e | MATLAB | 1,528 | 70 | % mglTestArcs.m
%
% usage: mglTestArcs
% by: justin gardner
% date: 08/23/2023
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: To test the arcs in metals
%
function retval = mglTestArcs
% open screen
mglClose;
mglOpen(0,800,800);
mglVisualAngleCoordinates(57,... |
faecc7074089077cc5a36adedc71e23fb4d23a20c2a44d624e6d5863daae3b5e | MATLAB | 1,528 | 41 | function [tree,asgn] = vl_hikmeans(data,K,nleaves)
% VL_HIKMEANS Hierachical integer K-means
% [TREE,ASGN] = VL_HIKMEANS(DATA,K,NLEAVES) applies integer K-menas
% recursively to cluster the data DATA, returing a structure TREE
% representing the clusters and a vector ASGN with the data to
% cluster assignments... |
233ee66173ba0680cbd2cfc39c7366f83965c70a5a9528f9ddda0edbaf9bb7d5 | MATLAB | 1,529 | 56 | close all
clear all
%% create figure 3B
%% janine.thome@zi-mannheim.de
%% paths
pato=['/###/Figures/']; %% add output path
if ~isdir(pato), mkdir(pato); end
%% load results
file = 'DYN_FI.mat';
load(file)
Vi_mean = squeeze(mean(mean(Vi_kfold)));
labK = squeeze(labs... |
36c1fb5c3d60a4d59c0eb4ed6d82f65945a285c5ba54fac5fc648f1a48654441 | MATLAB | 1,529 | 30 | function [Kappa,Sensitivity,Precision] = CalEvaluateIndex(data)
Kappa = [];
Sensitivity = [];
Precision = [];
for i = 1:length(data)
confusion_matrix = data{i,1};
% Calculating Kappa Index through Confusion Matrix
fenleizhengque_yangben = diag(confusion_matrix);%·ÖÀàÕýÈ·µÄÑù±¾¾ÍÊǶԽÇÏßÉϵÄÖµ£¬ÕâÊÇÒ»... |
5073e4f7c954d74146df89daf2775c54012b76f5d108328cf7b3908802f4ccf6 | MATLAB | 1,529 | 42 | function [non_linearity_fit, non_linearities, bin_centers, errors] = fit_nonlinearity(filtered_signal_given_behavior_histogram, filtered_signal_histogram, bin_edges, parameters)
% This function fits the non-linearity of the LNP model weighing the points
% by the expected counting error
fps = parameters.SampleRate;
... |
dd62ba99a803697d74ba06012419c2a3fed647474d183c720229d5c6b5494943 | MATLAB | 1,529 | 49 | function [abo mabo boScores avgNumBoxes] = BoxAverageBestOverlap(gtBoxes, gtNrs, testBoxes)
% [abo mabo boScores avgNumBoxes] = BoxAverageBestOverlap(gtBoxes, gtNrs, testBoxes)
%
% Calculate Average Best Overlap scores
%
% gtBoxes: Cell array of ground truth boxes per class (see
% GetAllObjectBoxes)
... |
ccfa1be73b816039ecb6731e5234cfe63455bd0002c3e962b0ee82f722ee8c5f | MATLAB | 1,530 | 53 | % mglTestMetalArcs: an automated and/or interactive test for rendering.
%
% usage: mglTestMetalArcs(isInteractive)
% by: Benjamin Heasly
% date: 03/10/2022
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: Test rendering various sizes and shapes of vectorized ar... |
90a9c4503ff8cbf8f7328446643a4fa55c90c3a8ef3cbfaa2b653bdbdd70c962 | MATLAB | 1,532 | 42 | %{
Copyright (C) Cambridge Electronic Design Limited 2014
Author: James Thompson
Web: www.ced.co.uk email: james@ced.co.uk, softhelp@ced.co.uk
This file is part of CEDS64ML, a MATLAB interface to the SON64 library.
CEDS64ML is free software: you can redistribute it and/or modify
it under the t... |
c2539567a1d5b3017f42dd1e654c8d45d22540dd0fe7e14bb3fb605a1054f393 | MATLAB | 1,532 | 47 | function [report_data] = report_convergence(report_data, state)
% Report convergence of the algorithm
% Copyright (C) 2004, 2005 DSS MATLAB package team (dss@cis.hut.fi).
% Distributed by Laboratory of Computer and Information Science,
% Helsinki University of Technology. http://www.cis.hut.fi/projects/dss/.
% $Id: re... |
f830fdb4c24350a2efaa0367d7a4ac0f9a5e42e5b6f9465916214bfb5a991aa2 | MATLAB | 1,532 | 38 | function Tracks = get_behavior_triggers(Tracks,randomize)
%this function calculates the Behaviors field, consisting of a binary
%vector that is true for when a particular behavioral transition occurs
if nargin<2
randomize = false;
end
if isempty(Tracks)
return
end
load('re... |
faf73de6cb49ef1199687e37057b3f46242903a1c18205b27a62068794e58158 | MATLAB | 1,533 | 57 | %
% Estimate the trend in the time evolution of a statistic.
%
% PARAMETERS
% $NETWORK
% $STATISTIC
% $TYPE
%
% INPUT
% dat/statistic_time.$TYPE.$STATISTIC.$NETWORK
%
% OUTPUT
% dat/trend.$TYPE.$STATISTIC.$NETWORK.mat
% H 1 when the trend is significant, 0 otherwise (regardless of direction)
% p p value (regardle... |
00e7e6a492eef849b2274a363b1235523c5977c04a524217028e015d1bc7df9e | MATLAB | 1,534 | 42 | function k = xml_findstr(s,p,i,n)
%XML_FINDSTR Find one string within another
% K = XML_FINDSTR(TEXT,PATTERN) returns the starting indices of any
% occurrences of the string PATTERN in the string TEXT.
%
% K = XML_FINDSTR(TEXT,PATTERN,INDICE) returns the starting indices
% equal or greater than INDICE of occu... |
3b79990ab0aee93eb18b4e911e36287ca43f092c9266eb67cf384f9050853bea | MATLAB | 1,534 | 46 | %{
Copyright (C) Cambridge Electronic Design Limited 2014
Author: James Thompson
Web: www.ced.co.uk email: james@ced.co.uk, softhelp@ced.co.uk
This file is part of CEDS64ML, a MATLAB interface to the SON64 library.
CEDS64ML is free software: you can redistribute it and/or modify
it under the t... |
401145f0ecf0f3f5e0da809f7efbcdc7bd4ebf330cd0a91909c3404e2e5d9d29 | MATLAB | 1,534 | 72 | function Q = qMul( Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10 )
% qMul: quaternion multiplication
% Q = qMul( Q1, Q2, Q3, ..., Q10 );
% IN:
% Q1 - first quaternion
% Q2 - second quaternion
% Q3 - third quaternion
% ....
%
% OUT:
% Q - output quaternion, Q = Q1*Q2*Q3*Q4*....
%
% REMA... |
403c9a94a5efd68fd67a11a4cfb9d69d8b3eb8ee53e7d2bcd4d588c4a32aa18c | MATLAB | 1,534 | 45 | function handle = adjust_axis_color(handle,name,color)
%adjust_axis_color updates all the elements on one axis with the same
%color, including transparency. This is needed because linking color
%proprties prevents transperency from being updated
% Check inputs
if (nargin<3)
error('Three Arguments R... |
31e999ce2ebf026ec8e79806a26cc2876c54fa37e4d3123f4e638099b69d8cc3 | MATLAB | 1,536 | 63 | %
% Moved to here from the Matlab toolbox because it doesn't work. The
% iterations do not converge.
%
% Iterative solution to DEDICOM from [1]:
%
% A = U D U'
%
% [1] Models for Analysis of Asymmetrical Relationships Among
% N Objects or Stimuli, Richard A. Harshman, Proc. First Meeting of
% the Psychometric... |
c2034104dfb8433ccbb2e022e7cf58558c7728299f9dbfc5308c82634c096006 | MATLAB | 1,536 | 51 | function fH = plotROIVoxelTSperRun(roiName, roiVoxelData, onsetTimeSecs, TR, conditions, saveFigs, savePth)
%% Plot all ROI voxel time series, separate per run
fH = figure; clf; set(gcf, 'Position', [704,52,1237,925], 'color', 'w'); hold all;
% Get time axis
t = 0:(size(roiVoxelData,1)-1);
% Define onset of conditio... |
5f6ebc5ec13a94045c8f2fca2a7e2ad5eba519f4b715a35dedd3db25ec62382d | MATLAB | 1,537 | 47 | %{
Copyright (C) Cambridge Electronic Design Limited 2014
Author: James Thompson
Web: www.ced.co.uk email: james@ced.co.uk, softhelp@ced.co.uk
This file is part of CEDS64ML, a MATLAB interface to the SON64 library.
CEDS64ML is free software: you can redistribute it and/or modify
it under the t... |
dab3e62f805a038d1eec77980f66067196634be851614d4562f2539817e4a1eb | MATLAB | 1,537 | 61 | function polarPlotVectorsMean(File)
% open up csv file containin the gain and phase
[~, ~, array] = xlsread(File);
[row, ~] = size(array);
rLimits = [0, .62];
myfig = figure();
% cycle through each entry and plot them on one
% polar figure
for i = 1:row
% get Title ( optional)
% theTitle = vals(((i-1) * 4... |
0a2998f5c5d927cefd4e9119c1e91015c39b8b2c84fa7a99f15de885c5451e08 | MATLAB | 1,538 | 56 | function [I,value] = iqr_method(a,type)
% Returns a logical vector that flags outliers as 1s based
% on the IQR methods described in Wilcox 2012 p 96-97.
%
% FORMAT: I = iqr_method(a,type)
% [I,value] = iqr_method(a,type)
%
% INPUTS:
% a is a vector.
%
% type indicates the method ... |
addaa13aca1e767d58674afd68ed8378ec5962a37a8240c84145761b33a369c5 | MATLAB | 1,538 | 53 | 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'};
%%
%load('C:\Users\Runyan1\Desk... |
e39c88cfcfd320dab9d5ede0ae16be4e793e148c45a4275e676c320db27b1711 | MATLAB | 1,538 | 34 | function [validDescriptions, invalidDescriptions] = mulana_experiment_descriptions_search(SEARCH_FOLDER)
% Search all directory and all subdirectories for
% 'experiment_description.json' and store their data in an array.
experimentDescriptions = dir(fullfile(SEARCH_FOLDER, '**', 'experiment_description.jso... |
fd6c8e9b8999b87b36f7775a975cd7b3fb5b5dad9b24e03b10209b0d5806289e | MATLAB | 1,540 | 47 | function amplitudes = LoadSpikeAmplitudes(filename,nChannels,nSamples,peak,rate)
%LoadSpikeAmplitudes - Read spike times, cluster IDs and amplitudes from disk.
%
% USAGE
%
% amplitudes = LoadSpikeAmplitudes(filename,nChannels,nSamples)
%
% filename spike waveform file name
% nChannels nu... |
613e408e01b31cf31bc903b729ed85bac3492817edc6d06b1635dfde6d1f0817 | MATLAB | 1,541 | 59 | function [curv, fnum] = read_curv(fname)
%
% [curv, fnum] = read_curv(fname)
% reads a binary curvature file into a vector
%
%
% read_curv.m
%
% Original Author: Bruce Fischl
% CVS Revision Info:
% $Author: nicks $
% $Date: 2007/01/10 22:55:09 $
% $Revision: 8776 $
%
% Copyright (C) 2002-2007,
% The General ... |
1658bbdad275074379a8a0a876b674802c97f487328d8c97bc9d3a5d94a529cc | MATLAB | 1,542 | 37 | function [ns_RESULT, nsEntityInfo] = ns_GetEntityInfo(hFile, EntityID);
%ns_GetEntityInfo Retrieves general entity information and type
%
% Usage:
% [ns_RESULT, nsEntityInfo] = ns_GetEntityInfo(hFile, EntityID)
%
% Description:
% Retrieves general information about the entity, EntityID, from
% ... |
22bcc9d249d0ead15d91f3869e15a54582e593ddb2f6f4a4b8ffbc56d71ae5c4 | MATLAB | 1,544 | 49 | function [aAngle, ax, ay] = ml_alg_placemap_center_out_angle_mulitple_fields(mapA, PLACEFIELD_PERCENTILE_THRESHOLD)
if isempty(PLACEFIELD_PERCENTILE_THRESHOLD)
PLACEFIELD_PERCENTILE_THRESHOLD = 95;
end
% This code will return the AVERAGE center out angle
% (Averaged over the angles to each fiel... |
e08a4f6b772309dac5c6c7659c08a1a8133ce760344995b3c51a8fd65b5a6a56 | MATLAB | 1,545 | 60 | globals;
base_folder = 'Data\OpenField';
Session = '20160601Thalamus45_opF_W';
filename = sprintf('%s\\%s',base_folder,Session);
load(filename);
%clear opF.spikesFrame;
%TT=80; % data frames
tt=[1:0.04:1000];
TT=length(tt);
ii=1:TT;
s1 = zeros(1,TT-1);
s2 = zeros(1,TT-1);
s3 = zeros(1,TT-1);
s4 = zeros(1... |
6df3b30fa3b0d78a2d7c7ded8d0ad1f96c7c0b89e751e9d01e7ae02b1951bd0e | MATLAB | 1,546 | 59 |
% Author: Guosheng Lin (guosheng.lin@gmail.com)
% this is a simpler demo file for testing on your own images.
function demo_test_simple_voc()
rng('shuffle');
addpath('./my_utils');
dir_matConvNet='../libs/matconvnet/matlab';
run(fullfile(dir_matConvNet, 'vl_setupnn.m'));
run_config=[];
run_config.use_gpu=true;
%... |
ccc8a4f005a16273a37bfc056c926daa16028340a73c535c5c3d66e713c590be | MATLAB | 1,546 | 54 | clear all
clc
%temp =gunzip('template_MNI152.nii.gz')
%img = niftiread('D:\BrainAtlas\BrainnetomeAtlasViewer\Brainnetome_v1.0.2\Template\template_MNI152.nii')
img = niftiread('C:\Users\adamp\BrainAtlas\BrainnetomeAtlasViewer\Brainnetome_v1.0.2\Template\aal.nii');
%img = niftiread('D:\MRI files\aal Tom.nii');
... |
238ab4cd414919bffc7eb606048ed84676cd2d18d676635118cbc8ac9ba7a007 | MATLAB | 1,547 | 56 | % mglGetHostName.m
%
% usage: mglGetHostName()
% by: justin gardner
% date: 07/18/09
% purpose: Gets the name of the computer that we are running on
%
function hostname = mglGetHostName()
retval = '';
% check arguments
if ~any(nargin == [0])
help mglGetHostName
return
end
[retval hostname] =... |
625ef98038e4bec3e1b180d4a0730967394eac6bd5fd0bfb08c02e4f3f7147b5 | MATLAB | 1,547 | 55 | % Marc Normandin, Muzzio Lab, Psychological & Brain Sciences, University of Iowa, 2024
function [hFig] = plot_average_rate_differences_within_across_bars_table(RateMatricesAveragedHistogram)
%R = compute_average_rate_differences_within_across_for_table(T);
hFig = figure();
if isempty(RateMatricesAvera... |
9c8869ae2f63d205cb095ebd6a40878d1a368dc925528b76604bd1605a23bee4 | MATLAB | 1,547 | 45 | function [FM, xf] = ft_preproc_online_filter_apply(FM, x)
% function [FM, xf] = ft_preproc_online_filter_apply(FM, x)
%
% Passes signal x (channels times samples) through the filter,
% returns updated filter model (delay states!) and filtered signal.
% Copyright (C) 2010, Stefan Klanke
%
% This file is part of FieldT... |
9cc1061be16c7038596a96768a9a5a73994a251205d2098997bd21566aed4ac1 | MATLAB | 1,547 | 32 | %% Neurofeedback Manu: generate plot of decode + rips
%
% run on 1 rat at a time; plateau eps: remy: gus:26-30 (worst decoding) bernard:20-28, fievel:18-29 (nice decodes d19)
animals = {'fievel'}; %{'remy','gus','bernard','fievel'}; %
%epochfilter{1} = ['(isequal($cond_phase,''plateau'')) & $ripthresh>=0 & $gooddecod... |
d250da1700c6d0e74b5cb73d438357ebab645873246279dda13d27480f5d2407 | MATLAB | 1,548 | 48 | function P = spm_imatrix(M)
% returns the parameters for creating an affine transformation
% FORMAT P = spm_imatrix(M)
% M - Affine transformation matrix
% P - Parameters (see spm_matrix for definitions)
%___________________________________________________________________________
% Copyright (C) 2008 Wellcome... |
a64b83f68e6aa4067eabb13a37b0a38f8eb846e7517fa7e104273ba6d584a7e0 | MATLAB | 1,549 | 46 | function [s] = rmsubfield(s, f, v)
% RMSUBFIELD removes the contents of the specified field from a structure
% just like the standard Matlab RMFIELD function, except that you can also
% specify nested fields using a '.' in the fieldname. The nesting can be
% arbitrary deep.
%
% Use as
% s = rmsubfield(s, 'fieldname'... |
32184eabbc8824a3d5c46df5a6f08979b7881398800c591bda757bedcf4fd8ed | MATLAB | 1,550 | 55 | function write_difference_images(DATA,ROI,AddInfo)
% Aedes plugin for writing difference images for ASL
% This function is a part of Aedes - A graphical tool for analyzing
% medical images
%
% Copyright (C) 2006 Juha-Pekka Niskanen <Juha-Pekka.Niskanen@uku.fi>
%
% Department of Physics, Department of Neurobiology
% ... |
052a35831c0905e27517cf1e730d374143730081530a590cd1ec74a745153855 | MATLAB | 1,551 | 48 | % VL_DEMO_SLICT Demo: SLIC superpixels
prefix = fullfile(vl_root,'figures','demo') ;
randn('state',0) ;
rand('state',0) ;
figure(1) ; clf ;
% --------------------------------------------------------------------
% Load a figure
% ---------------------------------... |
e88db4d26902d8939828e5132b1ea2b11afdc904c49950b8a8c89cca9999f9f2 | MATLAB | 1,551 | 58 | function [scopeLedPos1, scopePos] = ml_cai_behaviour_in_scope_coordinates_one_led(scopeTime, behavTime, behavPosLed1)
pos = 1.0*(behavPosLed1);
% Interpolation of behaviour from behavTime to scopeTime
extendLeft = find(scopeTime < behavTime(1));
extendRight = find(scopeTime > behavTime(end));
NL = length(extendLeft);... |
7c2f5d19cd8723781dca82f307da0b4586d34d545a50713241f6b7bfbcef43a5 | MATLAB | 1,552 | 44 | % Starburst Algorithm
%
% This source code is part of the starburst algorithm.
% Starburst algorithm is free; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later vers... |
85d04d3c02f6b60815a928e2bd08fd1ae911363d5f102e5d9dc43270dde1a5a5 | MATLAB | 1,553 | 37 | % Tools for analysis and synthesis of texture images.
% Version 1.0 March 2001.
%
% Created: Javier Portilla and Eero Simoncelli
% javier@decsai.ugr.es / eero.simoncelli@nyu.edu
%
% See Readme.txt file for a brief description.
% See ChangeLog file for latest modifications.
% Type "help <command-name>" for doc... |
c33322fec0f50e4407103fcd1efe4bef01f25b98ca00384dadb8ef59b863cda8 | MATLAB | 1,555 | 59 | function results = vl_test_hog(varargin)
% VL_TEST_HOG
vl_test_init ;
function s = setup()
s.im = im2single(vl_impattern('roofs1')) ;
[x,y]= meshgrid(linspace(-1,1,128)) ;
s.round = single(x.^2+y.^2);
s.imSmall = s.im(1:128,1:128,:) ;
s.imSmall = s.im ;
s.imSmallFlipped = s.imSmall(:,end:-1:1,:) ;
function test_basic... |
c441ccc197911c90f8a7cffbe3ef3b893e89635b0c3d2789349dad772cd07c04 | MATLAB | 1,556 | 30 | function filename = allFilesOfType(dataPath, varargin)
% Function to extract all .mat filenames in the fiven folder
%
% 2020 Adam Charles
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Input parsing
if nargin > 1; fileExt = varargin{1};
else ; fileExt = '.mat';
end
%%%... |
878f774f7eb8f272324cc1941b76d7cdc2093a03ee82658d47ace7767f947d24 | MATLAB | 1,557 | 31 | function [regular_timestamps_s, regular_ax, regular_ay, regular_az, regular_totalAcceleration, imuFs] = ml_inscopix_imu_compute_total_acceleration( imuData )
imuFs = 50; % Sampling rate of the IMU in Hz
numSamples = length(imuData.IMU_Time_s);
timestamps_s = imuData.IMU_Time_s;
% Find the values t... |
dfe2e52c69758da735d7ece9f36cb6d398461960ef85cb42a4373c12b5c2b22c | MATLAB | 1,558 | 43 |
function eva_result_epoch=update_eva_result_batch(eva_result_epoch, eva_result_batch)
if isempty(eva_result_epoch)
eva_result_epoch=eva_result_batch;
else
eva_names=eva_result_batch.eva_names;
eva_names_disp=eva_result_batch.eva_names_disp;
for eva_i... |
f569bf98c61a9189c897582ec5bbe0220511d5809e8a4ffd3895b147510bd0cd | MATLAB | 1,559 | 37 | function make_custom_legend(figHandle, legHandle, figType)
%% Function 'make_custom_legend'
% DESCRIPTION
% Creates a manual legend for specific figures
% INPUT
% Variable Data Type Description
% 1. figHandle [object] : figure handle
% 2. legHandle [o... |
19f2016a84338cb69303503dd070fadd4b1f70702a7e279d84642bf9684348b2 | MATLAB | 1,561 | 58 | %% Double PCA REDUCTION (DUAL PCA)
savedir = '/';
load('boundarymask');
%% ------------------------------------------------------------------------
%% Individual PCA
path = '/'; % path to fmri data for each group
temp = dir([path '*mus*']);
Score = zeros(706, sum(boundarymask), 18);
for sub = 1:18
fn = fullfile(p... |
5086095f0c676934f993295b9589fe56a077c8c6bd8c2f96ec2cf4bae322a96d | MATLAB | 1,561 | 57 | function [] = ExtDataFig03_Correlations()
% Code for plotting the histogram of the Pearson’s correlation coefficients between pairs of neurons recorded simultaneously in Extended Data Fig. 3c,j.
GT = 'dPR1'; % Extended Data Fig. 3c
% GT = 'TN1SG'; % Extended Data Fig. 3j
switch GT
case 'dPR1'
ylimrange = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.