sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
c5ec7d651050048a72f06093382e98e1519e0152980e8409ce482411cd6b68f0 | MATLAB | 5,823 | 197 |
%function FM_sweep_testing()
% close all;
% handles.RPfile = 'C:\gits\epsych\UserFiles\SanesLab\RPVdsCircuits\KP\FM_sweep_to_tone.rcx';
handles.RPfile = 'C:\gits\epsych\UserFiles\SanesLab\RPVdsCircuits\KP\FM_trapezoidal.rcx';
% handles.RPfile = 'C:\gits\epsych\UserFiles\SanesLab\RPVdsCircuits\KP\FM_sweep_test_manual... |
c19bcfd3b50265a628f57dbc28c9b205efcb57e35d98a580fb0a4903dabd63fd | MATLAB | 5,827 | 233 | function step2_crossref_temp_and_behavior_spatialUnmask(rootDir)
% Add temperature to each trial
% Add label (bilateral, right, left)
% Define paths
if nargin == 0
% rootDir = Cloudstation('Vowels\Noise\Cooling\Data');
rootDir = Cloudstation('Vowels\Spatial_Unmasking\Cooling\Data');
end
behavDir = fullfile(... |
b12a24322f890f68b12d3cac3348e8e421ab6b729f5b86ccf88966da81945c03 | MATLAB | 5,828 | 164 | function varargout = inputvalueGUI(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @inputvalueGUI_OpeningFcn, ...
'gui_OutputFcn', @inputvalueGUI_OutputFcn, ...
... |
bac10170174dc045f7672b5c929316e227d4708125713c70b31874114d88a443 | MATLAB | 5,832 | 159 | function plot_aggtree(spikes)
% UltraMegaSort2000 by Hill DN, Mehta SB, & Kleinfeld D - 07/12/2010
%
% plot_aggtree - Generates a graphical summary of an aggregation procedure.
%
% Usage:
% plot_aggtree(spikes)
%
% Description:
% Takes a spike-sorting data structure that has undergone hierarchical
% aggregati... |
e8cdafef4862d8069914159882596d75a6a86d210e0a232dd8d40c7c07d1b5d9 | MATLAB | 5,834 | 233 | function varargout = ep_BitmaskGen(varargin)
% ep_BitmaskGen
%
% Daniel.Stolzberg@gmail.com
% Copyright (C) 2016 Daniel Stolzberg, PhD
% Last Modified by GUIDE v2.5 25-May-2015 13:17:24
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
... |
0261d80432d57b52473a2696b4cbeb539114a1d9332393b968d32f7aa2de895a | MATLAB | 5,838 | 183 | function view_stored_data()
addpath('neuron-demo/matlab');
close all;
[subjects, electrodes] = scrape_stored_data();
model = [];
selectionMode = '';
% Setup figure
fig = uifigure('HandleVisibility', 'on'); % to be able to 'close' it
fig.Position = [100 100 1280 640];
g = uigridlayout(fig);
g.RowHeight = {22, 22, 2... |
15c2363c4f1d26c4b2e4f5d6396b520ea7cf40ebc3f82bd7534d2e9ad9008ddb | MATLAB | 5,867 | 112 | function FalsePositiveCount(FolderPaths,DataStr,AnalType,Thr2)
% Tracks the occurence of significant results across multiple repetitions of a statistical analysis.
%
% INPUTS:
% - FolderPaths: structure containing the paths to the analysis repetitions folder - computed in PrepAnalysis;
% - DataStr: path to the ... |
7d1a68c2ae788d42d87d6aadd2d3a32fa56d170fb3902779db0af28f53ce36fb | MATLAB | 5,879 | 154 | function [db,P,Nc] = subselectCells(db,P,focusOnArea,pltFig)
%%% This function needs the allenCCF repo to work (https://github.com/cortex-lab/allenCCF),
%%% or at least the 'structure_tree_safe_2017.csv'
if ~exist('pltFig','var')
pltFig = 0;
end
%% Subselect the cells according to various ... |
aea70ac175ec3698aa6162c28595e440b1e79649666b711e06bd1fa58a64e933 | MATLAB | 5,880 | 182 | % Load and plot trial-averaged activation of all detected assemblies during different phases of behavioural tasks. Includes time-resolved and time-averaged subplots
%
% Aleksander PF Domanski PhD UoB 2015
% aleks.domanski@bristol.ac.uk
%
%% Example plot
clear
cd ('C:\Analysis\AssemblyAnalysis\raw\KDE_bins\... |
7655a28bf255ce357ffad26e07bff620f1dbc7eaeccf4172ec0e3997ae29d029 | MATLAB | 5,888 | 190 |
function plot_mean_std(x_data, y_data, y_std, varargin)
% Plot y_data \pm y_std (inputs: row vectors, or each row is plotted
% separately).
% used in TSL_analyze_ratings.
%
% Inputs
% x_data: (n_curves, n_pts) matrix of x values
% y_data: (n_curves, n_pts) matrix
% === Default arguments
eps_fig = 1 ; ... |
6c76c621c163ac1f07fa8f7f065f13c4a7e6cfacbb922c4fd409b2be6c40524d | MATLAB | 5,891 | 195 | % Pending. Function under progress...
%
% NOTE: script-only. Nothing in ERPLAB calls this function and it has no menu
% entry. DC removal during filtering is handled by pop_basicfilter's 'RemoveDC'
% option, which calls removedc directly.
%
% PURPOSE : Remove DC offset from a continuous EEG dataset.
%
% FORMAT :
%
%... |
bea13d26ad271624cec559daf5a413ff2fea30afee646a1cfef2c1026ebe1f2c | MATLAB | 5,893 | 228 | function LEiDA_reliability
%
% Function to analyse the reliability between scans and across
% parcellations for 5 PL states
%
%
% Fran Hancock
% May 2021
% fran.hancock@kcl.ac.uk
%
%
%%%%%%%
%
% Set up the paths to the functions, libraries etc
%
%
Smax=5;
Cmax=Smax-1;
Rmax=2;
C_idx=1;
n_rows=2;
n_cols=3;
global PAR... |
d4d5a6cc6127e446be79ec728bb9fc55727015e9f8beac6fb0cb2efa523574d8 | MATLAB | 5,896 | 193 | function [u, v, convergenceLoop] = opticalFlowStep(im1, im2, ...
nanIndices, surroundLocs, alfa, beta,...
showFlag, u0, v0, im0, im3, angleFlag)
% Find the optical flow U, V between two images IM1 and IM2 from a video
... |
b94043833590332597fd23e350b414af8d19137e4dcbf84638744893c6496888 | MATLAB | 5,900 | 189 | function varargout = phasegradientMATLAB(f,angleFlag,varargin)
% Slight modification of MATLAB's gradient function to optionally function
% on angular data
% Rory Townsend 2017
%
% [FX,FY] = GRADIENT(F) returns the numerical gradient of the
% matrix F. FX corresponds to dF/dx, the differences in x (horizontal)
% ... |
a48e7d6f52653727a5ffd086690c2f9937e7e4f137ae8c65419ffb50988bfd90 | MATLAB | 5,902 | 183 | clc; clear; close all
Fig2d = figure();
%xcorr function is used.
%xcorr(INPI,INPE,'normalized');
%INPI: inhibitory input INPE: Excitatory input
N_psn=1; %number of post-synaptic neuron
N_mu=20; %There are \mu independent embedded patterns, 500 simulations (number of simulations)
NN = 500; %number of a... |
6b3a885879d14e008d63b6c2e63eff1c14c7f28af3d55133aa8ab98f75535556 | MATLAB | 5,905 | 152 | function colors = distinguishable_colors(n_colors,bg,func)
% DISTINGUISHABLE_COLORS: pick colors that are maximally perceptually distinct
%
% When plotting a set of lines, you may want to distinguish them by color.
% By default, Matlab chooses a small set of colors and cycles among them,
% and so if you have more ... |
ea199d6e71f95bab472eda046527da09a753fa065da8d8288a4fc44057e48df7 | MATLAB | 5,907 | 199 |
%function FM_sweep_testing()
% close all;
% handles.RPfile = 'C:\gits\epsych\UserFiles\SanesLab\RPVdsCircuits\KP\FM_sweep_to_tone.rcx';
handles.RPfile = 'C:\gits\epsych\UserFiles\SanesLab\RPVdsCircuits\Sandbox\KP\FM_trapezoidal.rcx';
% handles.RPfile = 'C:\gits\epsych\UserFiles\SanesLab\RPVdsCircuits\KP\FM_sweep_tes... |
37a14407bc8483a0c513986aedac481fc00f848836564f0b0f81440445c69c4f | MATLAB | 5,908 | 199 | % write data quality substructure to file
% part of the ERPLAB Toolbox (continuous EEG spectral version)
% axs Apr 2019
% ams Jan 2023 (updated with SD across Trials)
% ams Feb 2023 (continuous EEG spectra version)
% Format:
% save_data_quality(ERP, 'dq.mat')
% or save_data_quality(ERP,filename,format_flag)... |
f50d0fb3b0c019adfbbfb3e88261b86c22fbe2e795f5b5be81fc30bf270c8ce2 | MATLAB | 5,918 | 159 | % FIG.2: data files generated by runPopDecode.m
%
% (c) 2014 Daniel Durstewitz, Bernstein Center for Computational Neuroscience, CIMH/ Heidelberg University
% Edited by Aleksander PF Domanski PhD UoB 2015
% aleks.domanski@bristol.ac.uk
path(path,'/panfs/panasas01/phph/ad15419/MATLAB')
clear all
close all
figure(2), h... |
e656c02d904444f16c6250b1b41ca0e9525898618632dfe5e0067d679e7e603f | MATLAB | 5,924 | 156 | %% Analysis Exp. 1: Elasticity Ratings of 150 random Sims
% 1. Load perceptual data
load('../dataFiles/Exp1_results.mat')
% 2. Load Stimuli information
load('../dataFiles/Exp1_stimuli.mat')
stimIDs = {stimuli.id};
nSubs = size(rawResults, 3);
elasticities = unique([stimuli.elasticity]);
nElas = numel(elasti... |
b740e4b0bce207472582824749056839a4796ae48d2b90e9511926e33be565fb | MATLAB | 5,927 | 231 | function step2_crossref_temp_and_behavior(rootDir)
% Add temperature to each trial
% Add label (bilateral, right, left)
% Define paths
if nargin == 0
% rootDir = Cloudstation('Vowels\Noise\Cooling\Data');
rootDir = Cloudstation('Vowels\Spatial_Unmasking\Cooling\Data');
end
behavDir = fullfile(ro... |
073f58542e3abaa2a96ee4e691309ececd8935ea6de27374faa9a0bc1e5606d5 | MATLAB | 5,942 | 212 | function plotPrior(res)
% this function creates the plot illustrating the priors on the different
% parameters
%
% this is meant to be a 3 column, 2 rows multipanel plot.
% parameters
lineW = 2;
lineC = [0,105/255,170/255];
markerSize = 30;
data = res.data;
% get correct stimulus range
if numel(res.options.stim... |
65dd7ab3004631886efa585d6267dc584c5848524e32261b69d5fa370bdb0375 | MATLAB | 5,946 | 177 | function protocol = ep_struct2protocol(T,Options,Info)
% protocol = ep_struct2protocol(T,[Options],[Info])
%
% Manually create a Protocol structure for use with ep_Ephys and
% ep_RunExpt. This is useful for complete control over trial presentation
% order.
%
% T is a structure with hardware module aliases as field na... |
5f9cc8b2b0a6e27c090f9e3991b35da4b2991ac20c19f65f731740ab052e3d73 | MATLAB | 5,950 | 125 | function [Out,Out0] = PCE(C,shift_range,squaresize)
% -------------------------------------------------------------------------
% Copyright (c) 2012 DDE Lab, Binghamton University, NY.
% All Rights Reserved.
% -------------------------------------------------------------------------
% Permission to use, copy, mo... |
99fba825fd31568f924fe618cede9fa3eca30f890e6f3be129cad9030842c40f | MATLAB | 5,956 | 276 | % Create Tissue Probability Maps based on structural scan using mixture of
% gaussians and expectation-maximization to estimate tissue classes. Once completed,
% manually assign tissue classes as GM, WM, CSF, NotBrain as the first four volumes
% in a 4D Tissue Probability Map NIfTI file. These TPM files can then be u... |
9f4481ea4361f998a6863bef573af77d6537876c671555d5212ea96903cb99dc | MATLAB | 5,961 | 175 | function imData=bigread2(path_to_file,sframe,num2read,theimfinfo)
%reads tiff files in Matlab bigger than 4GB, allows reading from sframe to sframe+num2read-1 frames of the tiff - in other words, you can read page 200-300 without rading in from page 1.
%based on a partial solution posted on Matlab Central (http://www.m... |
7515a0e8bfdddbd4402b651a067676feb7f52db008e0e020df221017991c1e58 | MATLAB | 5,983 | 183 | function run_neuron()
addpath('neuron-demo\matlab');
%% Setup
if ~isfile('config.mat')
make_config();
end
config = load('config.mat');
assert(exist(config.nrnBin, 'dir'), '%s is not a folder. Verify that NEURON is installed and that its path is correctly set by running make_config().', config.nrnBin);
MRG_coeff ... |
2c3c7d903dbe1d47d4fb09debc9843b14fcc9d4deb3a2a678abba2fcf5b77096 | MATLAB | 5,984 | 160 | % ADAPTED FROM eeg_regepochs()
% See also: pop_editeventvals(), pop_epoch(), rmbase();
%
% Authors: Hilit Serby, Arnaud Delorme & Scott Makeig, SCCN/INC/UCSD, Sep 02, 2005
% Copyright (C) Hilit Serby, SCCN, INC, UCSD, Sep 02, 2005, hilit@sccn.ucsd.edu
%
% This program is free software; you can redistribute it and/or ... |
13546b7bcdf950c4e76cf386ef1a8933f382ce29967f5a6d977a3e9ac2a94c2b | MATLAB | 5,988 | 115 | %% demo_005 Plotting Functions
% Here the basic plot functions which come with the toolbox are explained.
% Most of the functions return the handle of the axis they plotted in
% to enable you to plot further details and change axis properties after the plot.
% In our Wiki on Github you will find a file explaining ... |
38f3c11ec5ddaeb4b3d797bcba48b5f783689a7a4adacbc489b2db4917a9a768 | MATLAB | 5,997 | 190 | function [messgStr,eegpanelIndex]= f_check_eegtab_panelchanges()
messgStr = '';
eegpanelIndex = 0;
MyViewer_eegset = estudioworkingmemory('EEGTab_eegset');
if ~isempty(MyViewer_eegset) && MyViewer_eegset==1
messgStr = char( 'Changes on "EEGsets" have not been applied');
eegpanelIndex =100;
return;
end
... |
5683c6f308bb3d0a0e431c68272536bd75410f10296776506968a6b3170f0523 | MATLAB | 5,997 | 193 | function varargout = phasegradientMATLAB(f,angleFlag,varargin)
% Slight modification of MATLAB's gradient function to optionally function
% on angular data
% Rory Townsend 2017
%
% [FX,FY] = GRADIENT(F) returns the numerical gradient of the
% matrix F. FX corresponds to dF/dx, the differences in x (horizontal)
% ... |
308cc997f0a3759f8885a365e74636aa83aa2da29c191d90a2442ebcfadbb364 | MATLAB | 6,004 | 228 | function varargout = permcca(varargin)
% Permutation inference for canonical correlation
% analysis (CCA).
%
% Usage:
% [pfwer,r,A,B,U,V] = permcca(Y,X,nP,Z,W,Sel,partial)
%
%
% Inputs:
% - Y : Left set of variables, size N by P.
% - X : Left set of variables, size N by Q.
% - nP : An integer repres... |
025df2e6a04d8ad987532c3946ad3de6e51f9cba65cb1d09284530047ce83bd1 | MATLAB | 6,011 | 206 | % Figure 5_be
% Code to generate receptive field plots based on MUA from area V1 and V6
% load data
addpath data
load('Fig5_be_data.mat')
% % get channel selection for modulated channels
selV1chns = chInfo.isModuTBothV1;
selV6chns = chInfo.isModuTBothV6;
%% create data for plotting
figure('Name',['Fig5be'], 'pos',... |
73317257b6c2bda168c5c1c145433512f05b20eed10cbcc65f25a1c6ccd29089 | MATLAB | 6,011 | 200 |
%function FM_sweep_testing()
% close all;
% handles.RPfile = 'C:\gits\epsych\UserFiles\SanesLab\RPVdsCircuits\KP\FM_sweep_to_tone.rcx';
handles.RPfile = 'C:\gits\epsych\UserFiles\SanesLab\RPVdsCircuits\KP\FreqChange.rcx';
% handles.RPfile = 'C:\gits\epsych\UserFiles\SanesLab\RPVdsCircuits\KP\FM_sweep_test_manualcirc... |
217444de9b0bd9d041b67fb33acf1bb426cfb287c3876ec67bdb7468241be774 | MATLAB | 6,025 | 186 | addpath('helpers');
addpath('neuron-demo\matlab');
dataFolder = 'data';
if ~isfolder(dataFolder)
warning('Download data.zip and extract its contents in folder data.');
return;
end
movementsFolder = fullfile(dataFolder, 'movements');
movements = list_subfolders(movementsFolder);
% Select movement
iMovement ... |
eec3910fe4c308188a4057383e5201c1e1655a6a8d250063f2c65721e693806c | MATLAB | 6,025 | 217 |
%function FM_sweep_testing()
% close all;
handles.RPfile = 'C:\gits\epsych\UserFiles\SanesLab\RPVdsCircuits\KP\FM_sweep_test_harmonics_noiseband.rcx';
% handles.RPfile = 'C:\gits\epsych\UserFiles\SanesLab\RPVdsCircuits\KP\FM_sweep_test_manualcircuit.rcx';
%Load in speaker calibration file
% [fn,pn,fidx] = uigetfile... |
657758055bf52b9e3c83a23bc1bacad9a99e8190528738a63465b2204bf6de67 | MATLAB | 6,038 | 176 | % PURPOSE: subroutine for pop_filterp.m
%
% FORMAT
%
% ERP = filterp(ERP, chanArray, locutoff, hicutoff, filterorder, typef, remove_dc);
%
% ERP - input ERPset
% chanArray - channel(s) to filter
% locutoff - lower edge of the frequency pass band (Hz) {0 -> lowpass}
% hicutoff -... |
cfb621ed59723f94948857290848a71920525bfe7999aeaf127a3fdd04fc467f | MATLAB | 6,042 | 167 | classdef ModelParams
properties
%% Nerve parameters:
% Distribution coded for nerve type
nerve = 'sciatic'; % only implemented for now
% Which data used for paper giving fiber diameter distribution
% 3, 28 or 70 years old patient
% Used in fiber_pop.m... |
324508b9fc0404bf56ed63b1aedc328ff19325d4d25ffaf8cd691485b8875ea7 | MATLAB | 6,043 | 162 | function [cross,lags,collision_info] = plot_xcorr( spikes, show1, show2 )
% UltraMegaSort2000 by Hill DN, Mehta SB, & Kleinfeld D - 07/12/2010
%
% plot_xcorr - plot cross-correlation between 2 spike clusters
%
% Usage:
% [cross,lags,collision_info] = plot_xcorr( spikes, show1, show2 )
%
% Description:
% Plots ... |
10aef842194f6dd04ce8089a196e15b3f71b829328621e432c8415c87e273734 | MATLAB | 6,048 | 202 | function [hObject,handles] = filterTrials_SanesLab(hObject, eventdata, handles)
%[hObject,handles] = filterTrials_SanesLab(hObject, eventdata, handles)
%
%Custom function for SanesLab epsych
%
%This function allows the user to select or deselect trials for delivery.
%at least one GO and one NOGO trial must always be se... |
990c1545bfb19977af17ba7e43240e1ce25356747bdf5cf5bf201f83166408a6 | MATLAB | 6,050 | 154 | % PURPOSE: Removes the best straight-line fit from epoched-EEG or averaged ERP data.
% Matlab: detrend() computes the least-squares fit of a straight line to the data
% (whole epoch or interval) and subtracts the resulting function from the data
% (whole epoch). To obtain the equat... |
1ab495826b73de42dcb33e4c41b826fd84f64ddde88ec243f5f64d9608287672 | MATLAB | 6,055 | 231 | function [w, infos] = apg(problem, options)
% Accelerated proximal gradient.
%
% Inputs:
% problem function (cost/grad/hess)
% options options
% Output:
% w solution of w
% infos information
%
% This file is part of SparseGDLibrary.
%
% Created by H.Kasai on Nov. 01, 2016... |
59be5604ff08e5594745e7c0ef1a0b4f0912c883d2a48da1ba625cf4d1ac6213 | MATLAB | 6,059 | 233 | function step2_crossref_temp_and_behavior_spatialUnmask(rootDir)
% Add temperature to each trial
% Add label (bilateral, right, left)
% Define paths
if nargin == 0
% rootDir = Cloudstation('Vowels\Noise\Cooling\Data');
rootDir = Cloudstation('Vowels\Spatial_Unmasking\Cooling\Data');
end
behavDir... |
bcf86e875e39d5d42a4af54ef33a4fa2975e9a077e7757b9dbcf3cd4f8a977f3 | MATLAB | 6,060 | 173 | function step3f_validation_pairwise_decoding_stack_plot(bids_dir, toolbox_dir, imagewise_nblocks, sessionwise_nblocks, varargin)
%% Stacking the pairwise decoding results and making a plot
%
%
% @ Lina Teichmann, 2022
%
% Usage:
% step3f_validation_pairwise_decoding_stack_plot(bids_dir, ima... |
3e9d3bd3ad040e7e39b0c2418e208dd64a91daed0249a9b0285f4d95a9bffb47 | MATLAB | 6,074 | 172 | function [pvimg, params, total_frames] = TPPreviewImageFunctionListGetPreviewImageParams(dirname, shortname, channel, frame)
% TPPREVIEWIMAGEFUNCTIONLISTGETPREVIEWIMAGEPARAMS - Get preview image and parameters
%
% [PVIMG,PVPARAMS,TOTAL_FRAMES] = TPPREVIEWIMAGEFUNCTIONLISTGETPREVIEWIMAGEPARAMS(DIRNAME, ...
% SHO... |
99475b0ab69053da88e7a6e886fe2f83ee261bfc1666615eb02d2d4d864dcef7 | MATLAB | 6,075 | 217 |
%function FM_sweep_testing()
% close all;
handles.RPfile = 'C:\gits\epsych\UserFiles\SanesLab\RPVdsCircuits\KP\ephys_harmonics_test.rcx';
% handles.RPfile = 'C:\gits\epsych\UserFiles\SanesLab\RPVdsCircuits\KP\FM_sweep_test_manualcircuit.rcx';
%Load in speaker calibration file
% [fn,pn,fidx] = uigetfile('C:\gits\eps... |
3fdbe2f873d273bd6c558c248d58512aa6b5c550fd9c3a66cba8a2a6a48a0ebe | MATLAB | 6,083 | 153 | function FIGURE_SpiralActMaps
% This function loads in the activation data associated with the spiral
% wave problem, including both the finescale case and the homogenised cases
% present in the relevant .mat files
% Specify the ending timeframe (just used to ensure all time windows used
% are consistent
t_end ... |
c6549d24f6b1b569b11ef47684a13ad417ffcf9e9713976103636f058f02d566 | MATLAB | 6,083 | 126 | % function [G,H] = GetGH (M, m)
%
% Modification of GetCSD.m to obtain the G- and H-matrices, which are
% invariant for a given EEG montage, which are then used as input with
% the EEG/ERP data to the CSD.m routine
%
% Usage: [G,H] = GetGH (M, m)
%
% Input parameter:
% M = a MatLab structure for an ... |
cfcf69e7e0d48fa330c1439b0920003499b92844bc01cde761dee4b597d1b130 | MATLAB | 6,083 | 181 | function [x1,x2,w] = plot_fld( spikes, show1, show2, display )
% UltraMegaSort2000 by Hill DN, Mehta SB, & Kleinfeld D - 07/12/2010
%
% plot_fld - Fisher Linear Discriminant projection of 2 clusters
%
% Usage:
% [x1,x2,w] = plot_fld( spikes, show1, show2, display )
%
% Description:
% Plots a projection of 2 ... |
156744ff7175812f5c5aab2e37c249081ec19e14ae6254861a5f1b6d37c1900b | MATLAB | 6,084 | 134 | %%
clear all
close all
run(['..' filesep 'def_local'])
addpath(path_fieldtrip)
ft_defaults
run make_stimuliList
%%
allfiles={'405','406','407','408','409','410','411','412','413','414','415','416','417','418','419','420','421','422','423'};
StimProfiles_freq=[2 8];
for n=1:length(allfiles)
stimrec=[];
%%% ... |
db0223c863030df6a14a96c8e33e02be26eb828aae0ebacb527dc145f66bcbb3 | MATLAB | 6,098 | 185 | classdef ImageColorMap
%ImageColorMap Reads a set of images from a text file. Uses these
%images to map points to a color
properties
Images = {};
Scalars = [];
Offsets = [];
Sections = [];
Color = [];
end
properties (Constant = true)
... |
0b7df73e009f7addc4cd0db9cb36c349a1b1ff701035da11d3738a234770501e | MATLAB | 6,099 | 248 | function SCRATCH_WAV2STA
%% DB2STA WAV
pvar = 'BuID';
subselection = [1:12];
% subselection = 13 - subselection;
tadjustments = [];
fullwin = [0 0.7];
% fullwin = [0.05 0.5];
clear opts
opts.clustering_exponent = -2;
opts.unoccupied_bins_strategy = -1;
opts.metric_family = 0; % 0: D^spike; 1: D^interval
opts.parallel ... |
b4362401c8b197ceef41768f6265ef646a72e82ad005ed7fe6eda3661e0dafb5 | MATLAB | 6,115 | 202 | function [ T ] = CylinderFacesOffset( NumPts, AOffset, BOffset, A, B, VertsA, VertsB )
%CYLINDERFACES Given a cylinder defined by two circles
%with NumPts around their perimeters
%Return a Nx3 matric defining faces required to render the cylinder
%with the patch command
T = zeros(NumPts*2, 3);
%Find two v... |
9dc66bcce715c424ce3ac9f15b865b8c46eb688530b2240432254c303a242b89 | MATLAB | 6,122 | 159 | function [percExplSndMean,percExplVidMean,p] = plotSubspaceOverlap(subOvDat,sideTransec)
Cov_compVid = subOvDat.Cov_comp_vid;
percExplVid = subOvDat.percExpl_vid;
Cov_compSnd = subOvDat.Cov_comp_snd;
percExplSnd = subOvDat.percExpl_snd;
vidColor = [0.0417 0.6250 0.0417];
sndColor = [0.62... |
29fa9e586ecfbd2e8011043118496984c8351c3d66545bc1969d9dd919c8b12d | MATLAB | 6,125 | 208 | %% One-way ANOVA for No_Saccades for specific condition between FH,SD,SH
No_Saccades = [];
[p,tbl,stats] = anova1(No_Saccades);
Fstat = tbl{2,5};
[results,means,~,gnames] = multcompare(stats,"CriticalValueType","bonferroni");
tbl = array2table([results,means],"VariableNames", ...
["Group A","Group B... |
262235e43d4659746dc32ad85debfb7b17eca252ab3f61a75fc16ebe85fc6c95 | MATLAB | 6,136 | 138 | restoredefaultpath
clc; clear; close all force;
base_path = fullfile('C:\Users\Vincent\Desktop\scratch');
out_path = fullfile(base_path, 'output'); addpath(out_path);
codes_dir = fullfile(base_path, 'ET_biomarker', 'tab_data');
sub_list_file = fullfile(codes_dir, 'PPMI_subjects.list'); % read in: subjects_suit.list
... |
a895f8189cabe11591cfc6062313f415992ec293e5d2586285dbef74892f7310 | MATLAB | 6,148 | 147 | %% An object (target or distractor) in OH/OHA/TOH/TOHA
% Copyright (C) 2022 Richard Hugh Moulton
%
% This program is free software: 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 3 of the License, or
% (at... |
5d8f84449d225b9aa65604be80c02b483f0479cb939a31f6a97d61e8f7a243a5 | MATLAB | 6,156 | 192 |
function plot_bars(data_mat, varargin)
% Plot bars of input data.
% used in TSL_fit_on_ratings (exceedance proba).
%
% data_mat
% Matrix (M, N) with M x-positions and N bars per x-position.
% === Default arguments
eps_fig = 1 ; fig_fig = 0 ; pdf_fig = 0 ;
fn_save = 'test' ;
save_fig = 1... |
86a4f844ffa93d6ede66f368d620949ad000bd84ceb1b699b254d480e006c396 | MATLAB | 6,157 | 128 | function celllist = drawmarkspots_sri(parameters, inputs)
% DRAWMARKSPOTS_SRI - Import a cell list from drawing of centroids.
%
% CELLLIST = DRAWMARKSPOTS_SRI(PARAMETERS, INPUTS)
%
% PARAMETERS should be a structure with the following entries:
% min_area Minimum area for a spot to be considered a ... |
d4abaa58fe25b879c9c0576557e00e387f5f55767cafd63c1c9c0c02c40a075e | MATLAB | 6,161 | 201 | function Model_test_Noise_2(p1,p2)
%p1: seed for random number and p1=1:1:\mu. There are \mu independent simulations
%p2: pattern length. p2=1 is for 50 ms;
rng(10+(p1-1)*1e7);
%There are 2 steps in this program.
%%Step 1: jittering spikes
%%Step 2: gaussian distribution
%Data from this progra... |
4e026d2d68bf5b64a03fe1663729e9bc535092f2d4008800c1e5100830ff4903 | MATLAB | 6,172 | 249 | function PlotBehaviorResults_psignifit
%---Script that analyzes behavior data from AM Rate Discrimination Task with psignifit.
%Created 02/04/2018 JDY.
%1) Click Run ("Play" button)
clear all
close all
clc
%---Load Data---%
[f,p] = uigetfile;
file = [p f];
load(file)
D = extractfields(Data);
%---Organize Data---... |
35becbbfeca8f0b189a12082588df4d87de602f7e05b35b6c5a74eac9f0f04d0 | MATLAB | 6,175 | 171 | % FIG.3: data files generated by runFAassem.m/ ExtractAssemFA.m
%
% (c) 2014 Daniel Durstewitz, Bernstein Center for Computational Neuroscience, CIMH/ Heidelberg University
% Edited by Aleksander PF Domanski PhD UoB 2015
% aleks.domanski@bristol.ac.uk
clear all
close all
%figure(3), hold off cla
% pp=genpath('/home/dd... |
4b538bd918217938672863e962846ee93afb50625056b033efc0bedc35cc868d | MATLAB | 6,176 | 226 | function X = gigrnd(lambda, psi, chi)
%% Generalized inverse Gaussian random number generator
% generate random sample from the three parameter GIG distribution with
% density given by
% f_GIG(x) = 0.5*(psi/chi)^(lambda/2)/besselk(lambda,sqrt(psi*chi)) * x^(lambda-1)
% * exp( -0.5*(chi/x + psi*x) )
%
% this ... |
2df8b94e052a5bd1592cb16af0532980f7bc95d0464eb7eed4305d0da8cd7776 | MATLAB | 6,185 | 146 | function recrMad = compare_extruded(iFascBranch, iFascExtr, modelBranch, iAS_branch, modelExtr, iAS_extr, newFigure)
%COMPARE_EXTRUDED Summary of this function goes here
% % For subject 1 placement 10:
% compare_extruded('10', rootDir, 'MRG', 44, 56, 3)
% compare_extruded('10', rootDir, 'MRG', 35, 47, 10)
% ... |
ec89410727991abfd34f3fe6c0af842599800b6155c2deb0e04b1183831c860c | MATLAB | 6,185 | 153 | function MDIvsResAnalysis(QUIQI)
% Analysis of image noise vs motion degradation index.
% For a given tissue type, compare the MDI values with the spatial variance
% of the residuals obtained from the model under testing. Two measures of
% heteroscedasticity on the residuals are computed: a global (tissue type)
... |
c661f66f5240d87e884f01d686166065a8bddd899cbc35d5811149694ac9876c | MATLAB | 6,194 | 209 | clear
Areas = {'HP','PFC'};
Delays_ = {'Naive','Debutant','Expert'};
Events_ = {'CueLight','SamplePress','DelayEnd','NosePoke','ChoicePress','RewardConsume'};
Events__ = {'Cue Light','Sample Press','Delay End','Nose Poke','Choice Press','Reward Collection'};
pat = 'C:\Analysis\AssemblyAnalysis\raw\UnitTuni... |
728abe7f9b07ce7ee3e7ea216b0eb0ed25eadd76b47a52d182a6fc78a0380c65 | MATLAB | 6,198 | 199 | function varargout = importERPSS_GUI(varargin)
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @importERPSS_GUI_OpeningFcn, ...
'gui_OutputFcn... |
3d8ae2aea88d53bd682b50b23eee54daeb24169befbc2b7f8141895c1b3e9901 | MATLAB | 6,204 | 130 | function [EEG,com]=pop_marks_merge_labels(EEG,infotype,labels,varargin)
com = ''; % this initialization ensure that the function will return something
% if the user press the cancel button
% display help if not enough arguments
% ------------------------------------
if nargin < 1
help pop_mark... |
7f12a08ebae40e5586eb48643d15fd05bacdf68146c9084b91061a3999565f85 | MATLAB | 6,206 | 214 | function Control_v_fe_model_parameters
% Script recreates figure 11 from the manuscript. This compares parameter
% values recovered from control and FE data, using the MOEA20 appaoch. The
% 4 parameters with the largest devation between the cohorts are shown.
% Load simulation results
sims = 100;
subjects=2... |
f5890c6a5daa75f3948c5e61102688f70639635f5d56505b044a64dec13974ea | MATLAB | 6,209 | 192 | %
% Author: Javier Lopez-Calderon & Steven Luck
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2009
%b8d3721ed219e65100184c6b95db209bb8d3721ed219e65100184c6b95db209b
%
% ERPLAB Toolbox
% Copyright © 2007 The Regents of the University of California
% Created by Javier Lopez-Cald... |
6db5126773801aa9934e067f048ec9159105ed1e9bafd25bf97b4d60d9db1530 | MATLAB | 6,211 | 164 | % Package GMLM_dmc for dimensionality reduction of neural data.
%
% References
% Kenneth Latimer & David Freeedman (2021). Low-dimensional encoding of
% decisions in parietal cortex reflects long-term training history.
% bioRxiv
%
% Copyright (c) 2021 Kenneth Latimer
%
% This software is distributed unde... |
e16238eb377f895bca514c0cebf80d17e8d299fc93bfb08fa61ca8e8f203f2f3 | MATLAB | 6,221 | 148 | function [FracCorr,FracCorr_CIshuffLow,FracCorr_CIshuffHigh]=DecodePredErrCrossTemporal_CV_GPU(FR,evt0,reg,runShuffle)
%
% (c) 2020 Aleksander PF Domanski PhD UoB
% aleks.domanski@bristol.ac.uk
%
% Cross-temporal regularised leave-one-out cross-validated decoder
% - Trains and tests at each time-point using separ... |
f4d8b248597b9e223d58c33bac2982f6da68372ac472a4203ce6f1c412939e30 | MATLAB | 6,229 | 193 | %% Display results
PLOT_DELAY_EMBEDDED = 1;
PLOT_PHASE = 0;
numTrial = max(saveData.TrialData);
reducedSize = size(saveData.TrialData,2) - size(saveData.FinalStream,1);
reducedSize = reducedSize / numTrial;
% trialLength = size(saveData.FinalStream,1) / numTrial;
% times = 1:trialLength;
% if max(times) > trialLeng... |
1651600475f877f01e4d7c6d2335682343e9538aeef2f8d7da163e4d5bb0484d | MATLAB | 6,230 | 219 | function [critrow,critcol,rowind,colind]=values2flags(EEG,inmeasure,flagdir,flagzcrit,critdir,critmethod,critvalue,chan_win_sd,varargin)
g=struct(varargin{:});
try g.trim; catch, g.trim=0; end;
%try g.fisherz; catch, g.fisherz='off'; end;
try g.plot_figs; catch, g.plot_figs='off';end;
critrow=[];
critcol=[];
rowind=... |
b2170f2a7f7f6435f857fe3ee6fce3650bb4fac18f1c6d1c2a20c4fc0b95f17c | MATLAB | 6,234 | 176 | %%This function is to add the path for eeglab plugins that has not been
%%added to Matlab path. PS: thanks for eeglab team
% *** This function is part of ERPLAB Studio ***
% Author: Guanghui Zhang & Steven Luck
% ghzhang@ucdavis.edu, sjluck@ucdavis.edu
% Center for Mind and Brain
% University of California, Davis,
% ... |
9f23baa22dd7ec454523bb8a6c736ec7db0fc941092c223a08597e279ca5ea02 | MATLAB | 6,243 | 176 | %% Neuron time series data source: https://osf.io/na4f9
%% Neuron connectivity data source: https://www.wormatlas.org/neuronalwiring.html#Connectivitydata
clear
%% Load the downloaded dataset and choose a particular time-series
load WT_NoStim
x=WT_NoStim(5);
%% List of neurons to use and their IDs in the da... |
9447c18862ec2a778a8f3fe7b9c1fd437c810c5808d14a193c5db291c0c6251f | MATLAB | 6,244 | 151 | function spikes = ss_energy(spikes)
% UltraMegaSort2000 by Hill DN, Mehta SB, & Kleinfeld D - 07/12/2010
%
% ss_energy - Interface energy based cluster similarity computation.
%
% Usage:
% spikes = ss_energy(spikes)
%
% Description:
% SPIKES = SS_ENERGY(SPIKES) adds an interface energy matrix to a
% spi... |
cbe9cff23d569b9cb345a01a3f8d70593e38b40b6066f48664d38aa520aec3d6 | MATLAB | 6,252 | 158 | clear
Target = 'LONG';
warning ('off')
if ispc
pat = 'C:\Analysis\AssemblyAnalysis\raw\';
addpath(genpath('C:\Users\ad15419\Dropbox\MATLAB\PC MATLAB Path\AssemblyCode\Eleonora\Mic\programs'))
elseif ismac
addpath(genpath('/Users/aleksanderdomanski/Dropbox/MATLAB/PC MATLAB Path/AssemblyCode/Eleonora/Mic'))... |
4d92e3b908da66c25122064161f0e4c109e8b6227d8fd9dd8e795478ab890f88 | MATLAB | 6,253 | 153 | function [EIR_curve_up,EIR_curve_middle,EIR_curve_down]=bifurgraph_anesthesia_fieldmodel()
% plot the bifurcation curve for the steady-state without spatical couple
% parameter setting
I_sc=0.018; % subcortical firing strength (/ms)
[ge,gi]=deal(0.156,0.875); % E,I synaptic gain strengths , ACh,GABA effect (mV*ms)
[V... |
99a211d287a3d31171b1a79a6af2f17a6e1e3268935905b32d180751cc8f1b60 | MATLAB | 6,265 | 97 | % CHECKED
%
% ASK ANNABELLE IF WAY WE HAVE THIS RANDOMIZATION ORGANIZED OK
%
% study_conditions = PSEUDORANDOMIZATION(conditions,repeat_limit,number_trials_per_condition)
%
% Randomizes trials in a way that does not repeat a trial of a given
% condition quality (for ex. modality or frequency of flicker) too many times... |
9da73eb7edcf906a8a7aad1e5ed61396fa98b50138315d7d5ab26abb37fe325d | MATLAB | 6,270 | 154 | function [Out, Settings] = MSSQLconn(dbname, userpassmethod, varargin)
% MSSQLCONN Establishes connection with MS SQL
%
% MSSQLCONN(DBNAME) Every other input by default
% - dbname: database name to which you want to connect (char format)
%
% MSSQLCONN(DBNAME, USERPASSMETHOD) Supply username and pass... |
b8617837eca8450d9fe8928f57a3752b91050fe10319ace695fc9cb0f11d8c2c | MATLAB | 6,271 | 174 | function [coh_,f] = CalculateSTcoherenceOptions(testspikes,STmultiplier,WL,tlims)
% Calulates a signal-noise-ration based measurement of single unit
% frequency locking, across a spectrum. Uses windowed Welch's method for
% calculation and has an optional adjustment for Poisson firing rate
% assumption based on ref... |
d7d7a995c3f5a593ee0eb918a1ecb380e6e3c6286aaa740afbe5ef4e70359aa0 | MATLAB | 6,282 | 187 | classdef AnnotationKeys < DeepActionProject
%UNTITLED2 Summary of this class goes here
% Detailed explanation goes here
properties
FilePath
KeyTable
end
methods
function self = AnnotationKeys(project, varargin)
self = self@DeepActionProject(project.ProjectPath... |
443791c19fba104306561f902827c8747011b5a46bdec4216caedf77136c4a5b | MATLAB | 6,289 | 181 | function varargout = Appetitive_Training_Menu(varargin)
% This GUI lanuches a menu that allows a user to select a
% appetitive training paradigm. Paradigms are as follows:
%
% Pure Tone Training Stage 1:
% A pure tone is generated by default. Water is available at the spout
% as long as the pure tone is on. The ... |
0f253c3262583ae07faed64ce78848315b4a4e86892f1d3b9818ef9207045237 | MATLAB | 6,292 | 233 | function varargout = permcca(varargin)
% Permutation inference for canonical correlation
% analysis (CCA).
%
% Usage:
% [pfwer,r,A,B,U,V] = permcca(Y,X,nP,Z,W,Sel,partial)
%
% Definitions: Left side = Part CCA (semipartial correlation - all the
% confounding variables are regressed out only for IV, not DV)
% ... |
e269f3ef6750b3ba836f012b3b7718d55869534d125fdb1776864d5c188edfef | MATLAB | 6,292 | 158 | %% %%%%%% PREAMBLE %%%%%%
clear
Target = 'LONG';
warning ('off')
if ispc
pat = 'C:\Analysis\AssemblyAnalysis\raw\';
addpath(genpath('C:\Users\ad15419\Dropbox\MATLAB\PC MATLAB Path\AssemblyCode\Eleonora\Mic\programs'))
else
path(path,'/panfs/panasas01/phph/ad15419/MATLAB')
addpath(genpath('/... |
addc7954e263ef2fc09248d53c6156c1ed0aea426a3ac00db6cd1826923690b7 | MATLAB | 6,293 | 163 | % 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 3 - figure supplement 3a
clear all; close all; clc;
nPartic = 31; % nr of participants
% define c... |
01c008d770f4298358021a0b555ce636b9381dd741cb31d6c0ae386870793527 | MATLAB | 6,299 | 159 | %% %%%%%% PREAMBLE %%%%%%
clear
Target = 'LONG';
warning ('off')
if ispc
pat = 'C:\Analysis\AssemblyAnalysis\raw\';
addpath(genpath('C:\Users\ad15419\Dropbox\MATLAB\PC MATLAB Path\AssemblyCode\Eleonora\Mic\programs'))
else
path(path,'/panfs/panasas01/phph/ad15419/MATLAB')
addpath(genpath('/... |
cc7beebdafae2f714b2501857250f239423f5217258fff64fdec457ddb546000 | MATLAB | 6,305 | 175 | % 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 3 - figure supplement 2c
clear all; close all; clc;
nPartic = 31; % nr of participants
% define c... |
78736fdcb74431a3c6ca370c3d56824a82e0cd822e7e0eb81ad07f77f72ff062 | MATLAB | 6,314 | 163 | % 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 Figures 3a, 3b, & 3c
clear all; close all; clc;
nPartic = 31; % nr of participants
% define conditions
... |
a634e2ff298bdec6f2f261e1592f8882d344df0109d15fed5b850ca953c4a31d | MATLAB | 6,317 | 169 | close all
clear all
filename = 'D:\DATA\CaIM\Organoids_SCZ\2021\m_08\d_100821\10082021_sz10_d240_06.sif';
trial_name= filename(47:end-4);
T_date = filename(47:54);
T_num = filename(end-5:end-4);
disp([trial_name])
%% MAKING Stack of Tiff images extracted from the .sif file
[tiff_stack_... |
0688eb44f2fca1fc77e6a9335f7454ae0cb0bb45ce2dbeac523d46431574c149 | MATLAB | 6,321 | 121 | %% GMLM.computeMAP_crossValidated
% Fits the MAP using cross validation. Cross-validation is done over trials, not individual bins.
%
% inputs:
% foldIDs (cvparition or array of length obj.dim_M) : the folds for cross validation (K folds)
% if foldIDs is a vector, specifies the test set for ... |
2a3f8ce9c436760b391fbf9a8f6cf1e74d3e66e5f20a1e60f491b1ff094d38e4 | MATLAB | 6,323 | 158 | %% %%%%%% PREAMBLE %%%%%%
clear
Target = 'LONG';
warning ('off')
if ispc
pat = 'C:\Analysis\AssemblyAnalysis\raw\';
addpath(genpath('C:\Users\ad15419\Dropbox\MATLAB\PC MATLAB Path\AssemblyCode\Eleonora\Mic\programs'))
else
path(path,'/panfs/panasas01/phph/ad15419/MATLAB')
addpath(genpath('/... |
a9155fceb46f3070b779e52160ac5754b8e76623017bc0dea181c32afceffbcf | MATLAB | 6,327 | 188 | function [q, qLo, qUp, effRecrMean, effRecrLo, effRecrUp, ...
collRecrMean, collRecrLo, collRecrUp] = ...
proprio_stim(t, var_in, var_name, iStimAll, targetFreq, ...
recrNormIa, recrNormIb, recrNormAlpha, recrNormII, recrNormIII, ...
recrNormTouch, Q)
%PROPRIO_STIM Summary of this function goes her... |
f855e73fb0d9a0c70f2590eb7ccbb554d41cd6291addcaf369072423a57d78f5 | MATLAB | 6,329 | 162 | % 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 3 - figure supplement 4
clear all; close all; clc;
nPartic = 31; % nr of participants
% define co... |
8f713048351d862bcdda419804587f1548e4107c770d3b7ab1e730c919e8fd55 | MATLAB | 6,330 | 165 | % 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 3 - figure supplement 3b
clear all; close all; clc;
nPartic = 31; % nr of participants
% define c... |
9abac0e046de484867b00cb07a9379f4de685346c790ecb5cd974363168359fe | MATLAB | 6,330 | 158 | %% %%%%%% PREAMBLE %%%%%%
clear
Target = 'LONG';
warning ('off')
if ispc
pat = 'C:\Analysis\AssemblyAnalysis\raw\';
addpath(genpath('C:\Users\ad15419\Dropbox\MATLAB\PC MATLAB Path\AssemblyCode\Eleonora\Mic\programs'))
else
path(path,'/panfs/panasas01/phph/ad15419/MATLAB')
addpath(genpath('/... |
d1aec01771cf5eeebc96ebe2b5d9e3f083aa7107c1455db55d644e5e6dce5a92 | MATLAB | 6,332 | 177 | %% Analysis Epxeriment 3: 1-sec stimuli
% 1. Load perceptual data
load('../dataFiles/Exp3_results.mat')
% 2. Load Stimuli information
load('../dataFiles/Exp3_stimuli.mat')
stimIDs = {stimuli.id};
nSubs = size(rawResults, 3);
elasticities = unique([stimuli.elasticity]);
nElas = numel(elasticities);
nStim = nu... |
4e01252383ef3a79b314b93d85fbfde2278aa5cbe3433d67a8932c4ac5112505 | MATLAB | 6,336 | 212 | % fresh start
clearvars
close all
%% run config
config_file='config_mammals_1.m';
addpath(strcat(pwd,'/config'))
run(config_file);
%% setup vars
thr_vals = [ 0 0.05 0.1 0.15 ] ;
filename = [ DD_INTERM '/' OUTSTR '_divergences_n_outlierdetect.mat' ] ;
divo = load(filename) ;
ff = [ PROJ_DIR '/reports/lab_meeting/... |
1f71cad33c49985b3274b8d733cfc3ac1ae9d9bad52567318fe73905aaa7dddb | MATLAB | 6,342 | 195 |
function plot_bars(data_mat, varargin)
% Plot bars of input data.
% used in CN_fit_on_ratings (exceedance proba).
%
% data_mat
% Matrix (M, N) with M x-positions and N bars per x-position.
% === Default arguments
eps_fig = 1 ; fig_fig = 0 ; pdf_fig = 0 ;
fn_save = 'test' ;
save_fig = 1 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.