sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
f2c31f919004e22730260f38b789dfa98fabf6e724ac177c6d538d2816117128 | MATLAB | 36,927 | 1,148 | function NIFTI_NORDIC_wt(fn_magn_in,fn_phase_in,fn_out,ARG)
% fMRI
% fn_magn_in='name.nii.gz';
% fn_phase_in='name2.nii.gz';
% fn_out=['NORDIC_' fn_magn_in(1:end-7)];
% ARG.temporal_phase=1;
% ARG.phase_filter_width=10;
% NIFTI_NORDIC(fn_magn_in,fn_phase_in,fn_out,ARG)
%
% dMRI
% fn_magn_in='name.nii.gz';
% fn... |
a52b1cf84101d7af4340b71aac5e0166b46dd2da2c5b154ad3c2692a7d6a58ab | MATLAB | 36,952 | 732 | function [I_recon header] = mb3d_grappa_wt3p(train_img, collapse_img_t, header, varargin)
%function [I_recon header] = mb3d_grappa_wt3p(train_img, collapse_img_t, header, varargin)
%
% Wei-Tang Chang, UNC-Chapel Hill
% Feb. 15, 2024
%
% Usage : slice-GRAPPA with option of SPSG
% Input arguments:
% train_img: The t... |
6640ed6c4b6158331acf5323ac7bb727d06a0c03fc557ec385f6b839b9dfd451 | MATLAB | 36,954 | 732 | function [I_recon header] = mb3d_grappa_wt3(train_img, collapse_img_t, header, varargin)
%function [I_recon header] = mb3d_grappa_wt3(train_img, collapse_img_t, header, varargin)
%
% Wei-Tang Chang, UNC-Chapel Hill
% Feb. 15, 2024
%
% Usage : slice-GRAPPA with option of SPSG
% Input arguments:
% train_img: The tra... |
eb0e5294da0cce79bd3fe3fb859a138196ffbc77995352f7b2e5dfe54864d0b3 | MATLAB | 36,963 | 1,095 | % ========================================================================
classdef iRecManager < eyetrackerCore & eyetrackerSmooth
%> @class iRecManager
%> @brief Manages the iRec eyetrackers https://staff.aist.go.jp/k.matsuda/iRecHS2/index_e.html
%>
%> The eyetrackerCore methods enable the user to test for common beh... |
5f8def0e8ac153d40bc344d2f523c7d030a5f004e35af546724e3f89f95d8bfb | MATLAB | 37,019 | 944 | % ========================================================================
%> @class stateMachine
%> @brief run a task via a series of states.
%>
%> stateMachine allows a set of 'states' to be run, with functions executed
%> on entering state, within the state, and on exiting the state. States can
%> be linked, so a 'm... |
949eb72c2c23ce478f51a6b3a0c74c11e1cb36a1ef30ba434a539ccb1182cade | MATLAB | 37,239 | 1,093 | % ========================================================================
classdef taskSequence < optickaCore & dynamicprops
%> @class taskSequence
%> @brief Block-based variable randomisation manager
%>
%> This class takes one or more variables, each with an array of values
%> and randomly interleves them into a rand... |
081c133f31c1e227f0fff451d5ebfe6895d50f354028b535655292f2d51bcca4 | MATLAB | 37,473 | 837 | function [noise_data refscan_data image_data ref_slcidx_all]=datapack4_VE(twix_obj,varargin)
noise_data=[];
refscan_data=[];
image_data=[];
%setting up defaults
file_prot='meas.asc'; %default protocol file name
file_raw='meas.out'; %defualt rawdata file name
flag_debug=0;
flag_debug_file=0;
output_stem='meas';... |
6465b5422c4280665b278b42605715c46fedb3b7a437a6bd8e7506726fc9ecd1 | MATLAB | 37,573 | 623 | function [InputParam, TrainedParam, SrcParam] = nk_GenPreprocSequence(InputParam, TemplParam, SrcParam, TrainedParam)
% =========================================================================
% FORMAT [InputParam, TrainedParam, SrcParam] = nk_GenPreprocSequence( ...
% InputParam, TemplParam,... |
b72ce3db1ff8257687dc86ec025c3f93b0dbae6089ad35a118f0ed142a8599fe | MATLAB | 37,597 | 1,141 | <<<<<<< HEAD
function mvtk_write(M,filename,format)
% Write geometric data on disk using VTK file format (legacy/XML,ascii/binary)
% FORMAT mvtk_write(M,filename,format)
%
% M - data structure
% filename - output filename [Default: 'untitled']
% format - VTK file format: legacy, legacy-ascii, legacy-bin... |
1aa5a92187cdb42b1760abc66a07a3f46f7e0a8394f0b3717093d28c67540ee3 | MATLAB | 38,088 | 996 | function [PREPROC, act, stepind] = nk_Preproc_config(PREPROC, varind, parentstr, stepind, enind)
% =========================================================================
% FORMAT [PREPROC, act, stepind] = nk_Preproc_config(PREPROC, varind, ...
% parentstr, stepind, enin... |
1f3e2be041534fd10504c36c7f2f51df51e798a00b22a3a811b07b53a42857d0 | MATLAB | 39,371 | 1,023 | % =========================================================================
% = VISUALIZATION PLOT =
% =========================================================================
function handles = display_visual(handles)
global st
st.ParentFig = handles.figure1;
vari... |
ed99887df28d393a594d92ea0d4e8d5e048489e4d58fb84653675d101af952a3 | MATLAB | 39,515 | 1,167 | % ========================================================================
classdef optickaCore < handle
%> @class optickaCore
%> @brief optickaCore base class inherited by other opticka classes.
%>
%> @section intro Introduction
%>
%> optickaCore is derived from `handle` and provides shared infrastructure
%> for Optic... |
3d0ca49fa3172954b5b39d1c706a02afb26477fd1354f8b46cef3d21974c1f99 | MATLAB | 39,540 | 836 | classdef startle < handle
properties
experiment
day
end
methods
function obj = startle(in,varargin)
% inputs
if ~exist('in','var')
in = pwd;
end
p = inputParser;
p.addRequired('in',@(x) iscellstr(x) || exist(... |
ab222c5b82812af71563ee89eecc8018e861278f34281f9771183b4a36895e33 | MATLAB | 41,670 | 1,132 | classdef twix_map_obj < handle
% class to hold information about raw data from siemens MRI scanners
% (currently VB and VD software versions are supported and tested).
%
% Author: Philipp Ehses (philipp.ehses@tuebingen.mpg.de), Aug/19/2011
%
%
% Modified by Wolf Blecher (wolf.blecher@tuebingen.mpg.de), Apr/26/2012... |
b652753d34b3fded0dfe4266c33317fbba0440e9608379fcc7bb9134f9f44e19 | MATLAB | 41,715 | 1,094 | % ========================================================================
classdef alyxUploader < handle
%> @class alyxUploader @brief Retroactively upload session files to Alyx
%>
%> This tool scans an ALF-formatted folder hierarchy, creates matching
%> Alyx sessions for any data files that are not yet registered, up... |
baf2bdd2b63c093f7ade912b2dce9e6817bb48093bf7770452c5c4b718dd08d2 | MATLAB | 41,898 | 1,039 | % ========================================================================
%> @class stateMachine
%> @brief run a task via a series of states.
%>
%> stateMachine allows a set of 'states' to be run, with functions executed
%> on entering state, within the state, and on exiting the state. States can
%> be linked, so a 'm... |
5bf54064ac754b676239269042640e4557538cfa7f1d958a1c7593d1e1a3f32b | MATLAB | 42,411 | 1,031 | function choice = menuN(mtitle, options, Opt)
%% MENUN An alternative to Matlab's menu function with added functionality
%
% Syntax:
% choice = MENUN(mtitle, options)
% choice = MENUN(mtitle, options, Opt)
%
% Input:
% mtitle - [string OR cell with 2 elements] - Menu window title and message
% - {'Menu t... |
7d591b0131b7a440eca145c5505a517d725735eb4d5ceabf41357dd876eb1aaf | MATLAB | 43,475 | 770 | %power spectra cross subjects
%mostly base on RS_powbase
%This version: 200903 by poem
%% set parameters (initialize)
clear all;
SL = '\';
FilePath = '';
if isunix
mypath;
FilePath = '~/liang/RS/'; %directory
SL = '/';
end
DR_PBase_setup; %load setup file
%datasets
PLOT_SET = {
's01... |
d8b06fa24acf30ba7a256bf812fd2d0529ea58432a757f35220d5e5f9f1d6d11 | MATLAB | 43,768 | 1,239 | % ========================================================================
classdef baseStimulus < optickaCore & dynamicprops
%> @class baseStimulus
%> @brief baseStimulus is the superclass for all stimulus objects
%>
%> Superclass providing basic structure for all stimulus classes. This is a dynamic properties
%> desc... |
0d1750f98d2509c5bab199e8004feb7f442fab4ad9140491e1f4633e0d0cd537 | MATLAB | 44,074 | 1,216 | function NORDIC_wt_ker7(file_filter,ARG)
%
% Processing of matlab files. Assume that the data is a 4D array, and
% that the 4th dimension has [vol_1 ... Vol_N noise_volume gfactor_map ]
% Variable should be stored in an array labelled KSP
% KSP should be in image-space and complex valued
% An auxilary var... |
139694a67d6070517b3291d793eb65a1604891da1ac84d779a04b607e68d5639 | MATLAB | 44,074 | 1,216 | function NORDIC_wt_ker9(file_filter,ARG)
%
% Processing of matlab files. Assume that the data is a 4D array, and
% that the 4th dimension has [vol_1 ... Vol_N noise_volume gfactor_map ]
% Variable should be stored in an array labelled KSP
% KSP should be in image-space and complex valued
% An auxilary var... |
09c8234fea05363c90c49e02083020e7f8482b7d20aa8dcdf95eca6a9847396a | MATLAB | 44,076 | 1,216 | function NORDIC_wt_ker11(file_filter,ARG)
%
% Processing of matlab files. Assume that the data is a 4D array, and
% that the 4th dimension has [vol_1 ... Vol_N noise_volume gfactor_map ]
% Variable should be stored in an array labelled KSP
% KSP should be in image-space and complex valued
% An auxilary va... |
80f93c5fa6166e891063b9651d87f9bca0c99919718108defd8bbfb571921e87 | MATLAB | 44,206 | 960 | function handles = display_comparator(handles, act)
% =========================================================================
% function handles = display_comparator(handles, act)
% =========================================================================
% Main function to either perform model comparisons (Quade's t... |
a37f68a1fde6902c98f905800b10d9c95de9d8203db912bff7b088c048e89384 | MATLAB | 44,213 | 1,392 | % ========================================================================
%> @brief opxOnline Provides an interface between Opticka and the Plexon
%> for online data display
%>
%>
%>
%> Copyright ©2014-2022 Ian Max Andolina — released: LGPL3, see LICENCE.md
% ==========================================================... |
30b16baa806fe195d13821ac791a5910d55eb91266c926e5ead198263ca9127e | MATLAB | 44,254 | 1,221 | % ========================================================================
classdef tobiiManager < eyetrackerCore & eyetrackerSmooth
%> @class tobiiManager
%> @brief Manages the Tobii eyetrackers
%>
%> tobiiManager wraps around the Titta toolbox functions
%> offering a interface consistent with eyelinkManager, offering... |
b35f3e509a819a74c3f67912f9e65ac788a1691411b9e5b4862425a03667677a | MATLAB | 44,340 | 1,280 | % ========================================================================
classdef baseStimulus < optickaCore & dynamicprops
%> @class baseStimulus
%> @brief baseStimulus is the superclass for all stimulus objects
%>
%> Superclass providing basic structure for all stimulus classes. This is a dynamic properties
%> desc... |
42921df507f2aa7947ed2e306af869e47359f8e232c3b900749f63fbaa57fe8e | MATLAB | 44,342 | 1,222 | % ========================================================================
classdef tobiiManager < eyetrackerCore & eyetrackerSmooth
%> @class tobiiManager
%> @brief Manages the Tobii eyetrackers
%>
%> tobiiManager wraps around the Titta toolbox functions
%> offering a interface consistent with eyelinkManager, offering... |
f1ff16c473cb83fc924a8830cb808e82052cc8e7a45c24f240acacb7dded1041 | MATLAB | 44,360 | 1,220 | function NORDIC_wt(file_filter,ARG)
%
% Processing of matlab files. Assume that the data is a 4D array, and
% that the 4th dimension has [vol_1 ... Vol_N noise_volume gfactor_map ]
% Variable should be stored in an array labelled KSP
% KSP should be in image-space and complex valued
% An auxilary variable... |
e968efa42fa1c8fe4b13e99e2794add5df2e195dfa50af85b45e7c9dc1ed1d0d | MATLAB | 44,776 | 1,208 | % =========================================================================
% FORMAT [InputParam, TrainedParam] = nk_PerfPreprocess_core(InputParam,
% TrParam, act)
% =========================================================================
% This is the main... |
0d9083f5ba8ea2eea81eb97326d6ba15f2e3bed6a7df4071377a01a4eb2849db | MATLAB | 45,164 | 1,302 | % ========================================================================
classdef taskSequence < optickaCore & dynamicprops
%> @class taskSequence
%> @brief Block-based variable randomisation manager
%>
%> This class takes one or more variables, each with an array of values
%> and randomly interleves them into a rand... |
4ec874d2381ff087b10d548219220ba25b475f3df165f8b69c4ec73f90b9946e | MATLAB | 45,285 | 1,162 | function [rew,raw] = ltsregres(x,y,varargin)
%LTSREGRES carries out least trimmed squares (LTS) regression, introduced in
%
% Rousseeuw, P.J. (1984), "Least Median of Squares Regression,"
% Journal of the American Statistical Association, Vol. 79, pp. 871-881.
%
% The LTS regression method minimizes the sum of... |
abdce06da51c0ab22c906a469e24e7e1e8b3d2d6a6b828a60ae06d03cb550022 | MATLAB | 45,912 | 908 | % code to analyze behavioral pilot for performance accuracy and reaction
% time (for true positive data)
% NOTE: sub_mask_results stores the proportion of masked faces in different
% response types (TP, FN, FP, TN)
% and sub_mask stores performance accuracy of subjects according to mask
% type (unmasked v/s masked... |
289a3cf510f78924ea2be71c0309de27402dfd9b17c5bbb258130f9baf53ea08 | MATLAB | 45,988 | 1,050 | %% load spike train of behaves for units
clc;
clear;
cd 'J:\930_project\paper_figure\fig4\fig_4_replot\tuning_0116\'
fs = 25640;
save_folder_onset = 'listen_50ms_trial_average_5_15Trails';
% save_folder_offset = 'listen_offset_50ms';
save_path = 'J:\930_project\paper_figure\fig4\fig_4_replot\tuning_0116\';
sa... |
7cbf62120c6ae3eafb65bddfbdd2d4f9f2e4cff70f57d0194ea902c7f8f2213f | MATLAB | 46,067 | 830 | function [Results, FileNames, RootPath] = nk_MLInterpreter(inp)
% =========================================================================
% FORMAT Results = nk_MLInterpreter(inp)
% =========================================================================
% Interpretable ML module
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
d97106f7daf96d6fe21c1fc7ad06693fb8a5b5a10f808909772a75fd8cf11d8d | MATLAB | 46,189 | 1,334 | % ========================================================================
classdef touchManager < optickaCore
%> @class touchManager @brief Manages touch screens (wraps all the PTB
%> TouchQueue* functions), and also provides touch area management methods.
%>
%> TOUCHMANAGER -- call this and setup with screen manager,... |
1128b623e8dc8b0cabf31ea66cd58af098dcd373a0492f2c230164f49aae7771 | MATLAB | 46,540 | 1,140 | classdef tittaAdvancedController < handle
properties (Constant)
stateEnum = struct('cal_positioning', 0, 'cal_gazing',1, 'cal_calibrating',2, 'cal_done',3, ...
'val_validating' ,12, 'val_done' ,13)
pointStateEnum = struct('nothing',0, 'showing',1, 'collecting',2, 'discarding',3, 'collected', 4)
end
propertie... |
cfc8b912b2324dbbc9279241331730dfa69e551e78ad71d41d309a70f7e5f719 | MATLAB | 46,814 | 1,373 | % ========================================================================
%> @brief analysisCore base class inherited by other analysis classes.
%> analysisCore is itself derived from optickaCore. Provides a set of shared methods
%> and some core properties and stats GUI for various analysis classes.
%>
%> Copyright ©... |
ff33956e00dfc61792a0ed77e88e5fbc226b0129790f6e83713886061249744b | MATLAB | 46,867 | 1,373 | % ========================================================================
%> @brief analysisCore base class inherited by other analysis classes.
%> analysisCore is itself derived from optickaCore. Provides a set of shared methods
%> and some core properties and stats GUI for various analysis classes.
%>
%> Copyright ©... |
96f548674801840ea69d8c2c47f5fdc0f5ffd6e3fd73cff0a4aaab24f5a88140 | MATLAB | 46,905 | 1,097 | %% load spike train of behaves for units
clc;
clear;
warning("off");
cd 'J:\930_project\paper_figure\fig4\fig_4_replot\tuning_0116\'
fs = 25640;
save_folder_onset = 'speak_50ms_trial_average_5_15Trails';
% save_folder_offset = 'speak_offset_50ms';
save_path = 'J:\930_project\paper_figure\fig4\fig_4_replot\tun... |
4d865449ded7dc099f61da5bcd727dfa8f314eb83443fcbf458d90a3b8171415 | MATLAB | 47,152 | 1,053 | % Created May, 2011
% This is a brand new program that simplifies and expands the sleep
% analysis, to 1) be streamlined in one function 2) expand the stats 3)
% batch everything together in one step.
% UPDATE-- May 23rd, 2011; It appears that the function works to produce
% the activity and sleep traces along ... |
6084e4dd4d395b19acbe84253c08b81072b8a8a4152f65b609b96b931f6ea985 | MATLAB | 48,039 | 730 | clear;
% Note before starting; mouse NEC273332 does not have any behavioral data,
% given the current way this script is written, a behavior file is
% expected, so I have supplied a dummy file in the main directory. Didn't
% want to use seperate trace extraction scripts for behavior/no behahvior
% and I haven't updated... |
c7f71e21b65c8aeac9db600b75daa308cb77d587e5997527513aca1c8435fd15 | MATLAB | 48,176 | 1,299 | % ========================================================================
%> @class eyetrackerCore -- parent class for all eyetrackers
%> Class methods enable the user to test for common behavioural eye tracking
%> tasks with single commands. For example, to initiate a task we normally
%> place a fixation cross on the... |
4b19b99b6c8afd3d2a855e7a3c219c01b475085fadc00f8c632a1e0d56afeac6 | MATLAB | 48,501 | 774 | function [TrainParam, act] = nk_Grid_config(TrainParam, SVM, varind, defaultsfl, parentstr)
global NM
OptimFlag = 1;
if ~exist('defaultsfl','var') || isempty(defaultsfl), defaultsfl=0; end
[~, CompStr] = nk_ReturnEvalOperator(SVM.GridParam);
nP = 1;
if isfield(TrainParam,'PREPROC')
if ~isempty(varind)
PX_... |
bac3bde778fdf910f2c0f031a04cde09b3ce088550cbe1a497780a0717c79aed | MATLAB | 48,604 | 1,468 | % ========================================================================
%> @brief calibrateLuminance: automatic luminance calibration
%>
%> calibrateLuminance automatic luminance calibration:
%> To enter settings:
%>
%> >> c = calibrateLuminance()
%> >> c.nMeasures = 40
%> >> c.useSpectroCal2 = true
%> >> c.run(); %... |
df2739c39dd41e619a3fcc2ed3abaec967ef8d4395bcd2a38f5f9372036673ac | MATLAB | 48,636 | 1,468 | % ========================================================================
%> @brief calibrateLuminance: automatic luminance calibration
%>
%> calibrateLuminance automatic luminance calibration:
%> To enter settings:
%>
%> >> c = calibrateLuminance()
%> >> c.nMeasures = 40
%> >> c.useSpectroCal2 = true
%> >> c.run(); %... |
4e521948dca41ffaf5ea81a08cf2029f675fb77894b20c9420f3edfa063eab7a | MATLAB | 48,637 | 1,472 | % ========================================================================
%> @brief calibrateLuminance: automatic luminance calibration
%>
%> calibrateLuminance automatic luminance calibration:
%> To enter settings:
%>
%> >> c = calibrateLuminance()
%> >> c.nMeasures = 40
%> >> c.useSpectroCal2 = true
%> >> c.run(); %... |
f8abdc4074cf4ae1c497c6a2f903040315b6d8da21d5d66f003961b1be945bff | MATLAB | 48,667 | 1,308 | % ========================================================================
%> @class eyetrackerCore -- parent class for all eyetrackers
%> Class methods enable the user to test for common behavioural eye tracking
%> tasks with single commands. For example, to initiate a task we normally
%> place a fixation cross on the... |
109d5fa0823df709ce8258e212230819af754ef3e0f2e189bc38f032cfda8058 | MATLAB | 48,777 | 1,413 | function [X,Y,T,auc,optrocpt, indexopt, subY,subYnames] = ...
perfcurve2(labels,scores,posClass,varargin)
%PERFCURVE Compute Receiver Operating Characteristic (ROC) curve or other
% performance curve for classifier output.
%
% [X,Y] = PERFCURVE(LABELS,SCORES,POSCLASS) computes a ROC curve for a
% vector of cl... |
2bbf618ec1eaf6084f4f891717b21fd450b1a9be6197776f6e3a041dd09cbdfb | MATLAB | 49,697 | 855 | % Computing baseline power
% Core code provided by Ruey-song Huang (SCCN, UCSD)
% ver 200901
%% set parameters (initialize)
clear all;
SL = '\';
FilePath = '';
if isunix
mypath;
FilePath = '~/liang/'; %directory
SL = '/';
end
DR_PBase_setup;
%datasets
PLOT_SET = {
's01_061102'; %motionless
... |
d78b4e532c26eef7e58dcea4c305590a671f7a903a34c7b9995847f5b53cb75d | MATLAB | 50,384 | 1,364 | classdef plxReader < optickaCore
%> PLXREADER Reads in Plexon .plx and .pl2 files along with metadata and
%> eyelink EDF files. Parses the trial event / behaviour structure.
%> Integrates EDF events and raw X/Y data into trial LFP/spike structures.
%> Converts into Fieldtrip and custom structures. The plexon files con... |
af404bd02dda0fbaf372c804c4b8ec0bcce84e1b113a4d2dbc1e57abe0eb1fb6 | MATLAB | 50,859 | 1,503 | classdef spikeAnalysis < analysisCore
%spikeAnalysis Wraps the native and fieldtrip analysis around our PLX/PL2 reading.
%------------------PUBLIC PROPERTIES----------%
properties
%> plexon file containing the spike data
file char
%> data directory
dir char
%> � time window around the trigger, if empty us... |
4e0e6886d19bd7039fab87efb885ff5690472dddb53ae8f5f95ff07f8d31e41d | MATLAB | 51,356 | 1,302 | function ERSP_plot_stat(sess2analyse,EventTypes,SubEventTypes, epoch_win,baseline_win,varargin)
%ERSP_PLOT_STAT Event-related spectral perturbation (ERSP) maps with statistics
% ERSP_plot_stat(sess2analyse,EventTypes,SubEventTypes,...)
% - plots ERSP maps patient-by-patient using normalized epoched data ... |
b2bdfaf803086f9e3a56ce804b21d6966bb4d1ba8a0f2130f6f23a49b4617a8a | MATLAB | 51,778 | 917 | function [Results, FileNames, RootPath] = nk_OOCV(inp)
% =========================================================================
% FORMAT Results = nk_OOCV(inp)
% =========================================================================
% Independent test data prediction module
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
c585e30abad5ca2709c0a80103c9e7e271dae581cbdc5b3d9d64f41f005486af | MATLAB | 57,654 | 1,959 | function result=bagplot(x,varargin)
%BAGPLOT draws a bagplot, which is a generalisation of the univariate boxplot
% to bivariate data. The original bagplot is described in
%
% Rousseeuw, P.J., Ruts, I. and Tukey, J.W. (1999),
% "The bagplot: a bivariate boxplot", The American Statistician, 53, 382-387.
%
% The constru... |
43bd9cc7eff08c0f804b9027b5714bb138ca0d08c7e09784413d049a08eaec10 | MATLAB | 58,132 | 1,210 | classdef nk_ItemSelector_App_exported < matlab.apps.AppBase
% Properties that correspond to app components
properties (Access = public)
figure1 matlab.ui.Figure
uipanel1 matlab.ui.container.Panel
tglOpCases matlab.ui.control.StateButton
tglOpFeats ... |
108aea92b9037bc2345b78ffecbc821e4832b7634150f40c90c27ee244b5a35d | MATLAB | 60,059 | 1,267 | function [IO, act, mess] = DataIO(NM, parentstr, IO, mess, varind)
% =========================================================================
% function [IO, act, mess] = DataIO(NM, parentstr, IO, mess)
% -------------------------------------------------------------------------
% This function performs the main data i... |
7f9a35c3284b268c59ce72d26cb7cbf332324b4e58fcb70da1cf0c81ed027087 | MATLAB | 60,207 | 1,297 | function [imageData, alpha] = export_fig(varargin)
%EXPORT_FIG Exports figures in a publication-quality format
%
% Examples:
% imageData = export_fig
% [imageData, alpha] = export_fig
% export_fig filename
% export_fig filename -format1 -format2
% export_fig ... -nocrop
% export_fig ... -c[<val>,<val>,<val... |
7e05ba174e306fe09c04052dc397da2c92276d6a133587d0eb622cef80056087 | MATLAB | 60,450 | 1,445 | function [rew,raw]=mcdcov(x,varargin)
%MCDCOV computes the MCD estimator of a multivariate data set. This
% estimator is given by the subset of h observations with smallest covariance
% determinant. The MCD location estimate is then the mean of those h points,
% and the MCD scatter estimate is their covariance matri... |
dac75b297ce0e81886b9424a4d7de33064d94202a8e6a3a67d8db9db4aee0b0d | MATLAB | 61,906 | 1,501 | function makeplot(out,varargin)
%MAKEPLOT makes plots for the main functions. These figures can also be obtained
% by setting 'plots = 1' in those functions.
%
% Required input:
% out = a structure containing the output of one of the following classes:
% MCDCOV, LS, LTS, MLR, MCDREG, CPCA,CPCR, CSIMPLS, RAPC... |
34d176fa77b7fd18557f79963ea384629eaeccd578e8f6f050cccf74c911e450 | MATLAB | 61,997 | 1,555 | function PD_eeg_stats(sess2analyse,EventTypes,SubEventTypes,groups2comp_labels,varargin)
%PD_EEG_STATS Comparison of time-frequency maps
% PD_eeg_stats(sess2analyse,EventTypes,SubEventTypes,groups2comp_labels,...)
% performs intra and inter subject comparison of specified event partitions/ patient groups... |
fc5471b0fe898afdf46f309ae95461f79e54db2a64281263bb763cc2ccb408af | MATLAB | 62,000 | 1,120 | % =========================================================================
% FORMAT GDanalysis = nk_MLOptimizer(inp, strout, id, GridAct, batchflag)
% =========================================================================
% This function performs fixed grid search optimization of machine learning
% parameters (e.g.... |
0a6a880527accfe929a2e3dab8d145062fe1667d67ec90c09f30ee25334a4980 | MATLAB | 62,390 | 1,573 | % ========================================================================
classdef alyxManager < optickaCore
%> @class alyxManager
%> @brief manage connection to an Alyx database
%>
%> Copyright ©2014-2024 Ian Max Andolina — released: LGPL3, see LICENCE.md
% ============================================================... |
646dcd5d279a63eb4351e25d49fad61c3a22ea41ece5e5d4414b3e6437046927 | MATLAB | 62,623 | 987 | function summarizeCorrelograms(sw, plotProps, AnalysisRegions, InjuryIndicies, ProcessedData, RecordingMetrics, Correlograms)
%This function classifies correlograms based on metrics (uniformity, peak
%count, area left of zero) and plots classification-related outputs
%% Find where recording regions occurr relativ... |
732000cdcdae890bc56e3bbef6e21ca2d596569189e974dccdf3de3f5698caa5 | MATLAB | 63,109 | 1,467 | function varargout = nk_PrintResults2(varargin)
% nk_PrintResults2 MATLAB code for nk_PrintResults2.fig
% nk_PrintResults2, by itself, creates a new nk_PrintResults2 or raises the existing
% singleton*.
%
% H = nk_PrintResults2 returns the handle to a new nk_PrintResults2 or the handle to
% the exis... |
80c0ca35570c1f72c1dcc6cec6d8c9de90a966554d48b9c3270d30241bdb1c8c | MATLAB | 63,536 | 2,033 | classdef getDensity < handle
%GETDENSITY computes bootstrapped density estimates and full stats for two
%groups. You can pass a set of cases to the function and it will compute
%statistics automagically for all cases as well. There are numerous
%settings:
% x - our first data group, plotted along the abscissa
% y... |
4cdebec9dedaf07094c7ce9005fbee3fd484947c5521cf64d6dcaa7ebf25a907 | MATLAB | 63,797 | 1,731 | % topoplot() - plot a topographic map of a scalp data field in a 2-D circular view
% (looking down at the top of the head) using interpolation on a fine
% cartesian grid. Can also show specified channnel location(s), or return
% an interpolated value at an arbitrary scalp locat... |
0aa3acc8ddc221fccde94b72af36747083c6b6901ed8795d9e59e36fd0f8d5f7 | MATLAB | 66,633 | 1,863 | % ========================================================================
classdef alyxManager < optickaCore
%> @class alyxManager @brief manage communication with an Alyx database
%>
%> https://alyx.readthedocs.io/en/latest/
%>
%> This class provides methods to connect to an Alyx database, login/logout,
%> upload dat... |
f7e347542a3572af43819b9622d501c284ed1a18d8a100e59bf9cdc79fb6b7b1 | MATLAB | 68,389 | 1,383 | close all; clc; clearvars;
%% dFC state analysis: FL (10 Hz, 1 Hz), neural, and fMRI
%
% Required files in the working directory:
% dFC_10Hz.mat
% dFC_1Hz.mat
% dFC_fMRI.mat
% dFC_neural.mat
%
% Expected data dimensions: [num_regions x num_regions x num_windows x num_animals]
%% Load data
load('dFC_10Hz.mat'... |
5d73761e75c598ac980be68b625a404f3a75767c003f5763375c388b5cef70fd | MATLAB | 69,493 | 1,399 | close all;
clear all;
fclose all;
%=================================================================
% SETUP FOR INPUT DATA
%=================================================================
addpath(genpath('/proj/weitangc/users/weitangc/matlab_lib/fhlin_toolbox'));
addpath /proj/weitangc/users/weitangc/matlab_lib/N... |
9cb5c5a1c21702d35cee0b6eca726bceafb9a149003aae75a0ff7a788959f7c0 | MATLAB | 70,100 | 1,944 | function varargout = nk_orthviews(action,varargin)
% Display Orthogonal Views of a Normalized Image
% FORMAT H = nk_orthviews('Image',filename[,position])
% filename - name of image to display
% area - position of image
% - area(1) - position x
% - area(2) - position y
% - area(3... |
3a611fc0d4a6d9624660451c14be6e63a28cbce67110ee84363bb22d2d5dccc6 | MATLAB | 70,717 | 2,031 | % ========================================================================
%> @brief iRecAnalysis offers a set of methods to load, parse & plot raw CSV files. It
%> understands opticka trials (where CSV messages INT start a trial and 255
%> ends a trial by default) so can parse eye data and plot it for trial groups. Yo... |
6ee89cfb55270499ae1f9b34d8616513f1336b0792985c0696cbbac70ddf8231 | MATLAB | 70,725 | 2,031 | % ========================================================================
%> @brief iRecAnalysis offers a set of methods to load, parse & plot raw CSV files. It
%> understands opticka trials (where CSV messages INT start a trial and 255
%> ends a trial by default) so can parse eye data and plot it for trial groups. Yo... |
ce44cadfb1efb07f9029caf03abdbdba7b5eded3493a261a1086ec89ba4927a3 | MATLAB | 71,717 | 1,952 | function varargout = mli_orthviews(action,varargin)
% Display Orthogonal Views of a Normalized Image
% FORMAT H = mli_orthviews('Image',filename[,position])
% filename - name of image to display
% area - position of image
% - area(1) - position x
% - area(2) - position y
% - area... |
565047cd13b1c8f074473d447305fcf3d807570d4f076594ec982bf98bb78d7c | MATLAB | 71,742 | 1,418 | function vargout = nk_GetParamDescription2(res, params, action, descrip, varind)
global NMinfo
if exist('descrip','var') && ~isempty(descrip)
vargout = descrip;
else
vargout = [];
end
switch action
case 'VarDesc'
if isfield(params,'datadescriptor')
for i=1:numel(varind)
... |
1c243aa2004844438db6799cfabe4efc7b141567831ba0675be7a3ece3fa32b6 | MATLAB | 71,954 | 2,153 | classdef arduinoSerialPort < handle
% This class defines an "arduino" object
% Giampiero Campa, Aug 2013, Copyright 2013 The MathWorks, Inc.
% Modified for use with PTB
% This version uses serialport, requiring MATLAB 2019B
% or later. Also added a timedTTL function, requiring
% a compatible arduino sketch: adi... |
45211769a35904d53089f467548be14c304e3b7cacdddc1e512f11e192d3671d | MATLAB | 72,224 | 2,105 | % ======================================================================
%> @class opticka
%> @brief GUI Manager for runExperiment() class
%>
%> Opticka is an object-oriented experiment manager wrapping the Psychophysics
%> toolbox; see http://iandol.github.com/opticka/ for more details. This
%> class builds and contro... |
04f17d1a62852012279e369e0ebad6da6e258eec14a0f81477b323a17da16fe2 | MATLAB | 73,097 | 2,441 | function varargout=jdqr(varargin)
%JDQR computes a partial Schur decomposition of a square matrix or operator.
% Lambda = JDQR(A) returns the absolute largest eigenvalues in a K vector
% Lambda. Here K=min(5,N) (unless K has been specified), where N=size(A,1).
% JDQR(A) (without output argument) displays the K eige... |
09a4088095d542e9f2d51869110684d9d19dcd03dbff785ecd875d07c3e9e955 | MATLAB | 75,421 | 2,206 |
% ======================================================================
%> @class opticka
%> @brief GUI Manager for runExperiment() class
%>
%> Opticka is an object-oriented experiment manager wrapping the Psychophysics
%> toolbox; see http://iandol.github.com/opticka/ for more details. This
%> class builds and contr... |
f3483bfcb4beb5a78e4aec93a19939d7f32625b304ec81b2b17e1abc17a217b6 | MATLAB | 75,748 | 1,633 | function palm_saveall(plm,opts)
% Save most of the outputs from PALM.
%
% _____________________________________
% Anderson M. Winkler
% FMRIB / University of Oxford
% Oct/2014
% http://brainder.org
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% PALM -- Permutation Analysis of Linear Models... |
538a2ddb484c2b67b9edee7f0494ef82e6715a62e94419fff8f35ca2ee7f3098 | MATLAB | 76,435 | 2,097 | function varargout = nk_input(varargin)
% Comprehensive graphical and command line input function
% FORMATs (given in Programmers Help)
%_______________________________________________________________________
%
% nk_input handles most forms of interactive user input for SPM.
% (File selection is handled by spm_select.m... |
13b4a0fa431f584dcf9ad33ab17eaec9f606df06c0766401d8eca9689832ff9d | MATLAB | 76,636 | 2,366 | classdef arduinoSerial < handle
% This class defines an "arduino" object
% Giampiero Campa, Aug 2013, Copyright 2013 The MathWorks, Inc.
properties (SetAccess=private,GetAccess=public)
startPin = 2 % First addressable pin (arduino=2,xiao=0)
endPin = 13 % Number of controllable pins (arduino=13, xiao=10)
co... |
6d2c37a4ecb7df215f9d00b9ba21f2606e44de10383faae47f3b57ea585d8e3e | MATLAB | 77,145 | 2,232 | % ========================================================================
%> @brief eyelinkAnalysis offers a set of methods to load, parse & plot raw EDF files. It
%> understands opticka trials (where messages TRIALID start a trial and TRIAL_RESULT
%> ends a trial by default) so can parse eye data and plot it for tria... |
a7579b1980e59f686d293bc7d26779fdc132bf404e5900e6e895a8ac586f9942 | MATLAB | 77,737 | 2,279 | % ========================================================================
%> @brief eyelinkAnalysis offers a set of methods to load, parse & plot raw EDF files. It
%> understands opticka trials (where EDF messages TRIALID start a trial and TRIAL_RESULT
%> ends a trial by default) so can parse eye data and plot it for ... |
e64937298c3528610a795faba089de170a3d73348bd2ae43f556663fd6a46723 | MATLAB | 78,396 | 2,273 | % ========================================================================
%> @brief eyelinkAnalysis offers a set of methods to load, parse & plot raw EDF files. It
%> understands opticka trials (where messages TRIALID start a trial and TRIAL_RESULT
%> ends a trial by default) so can parse eye data and plot it for tria... |
c2c0e1119a528918a7034e54942468d1e004e422ae2795125a0e5aeca7d01c1e | MATLAB | 78,916 | 2,242 | % ========================================================================
%> @class screenManager
%> @brief screenManager — manage opening and configuring the PTB screen
%>
%> screenManager manages the (many!) PTB screen settings. You can set many
%> properties of this class to control PTB screens, and use it to open ... |
db2995c49ca2908423d94dbd82357cc180efb3bf78840e773e53125f969b1be6 | MATLAB | 78,986 | 2,507 | function varargout=jdqz(varargin)
%JDQZ computes a partial generalized Schur decomposition (or QZ
% decomposition) of a pair of square matrices or operators.
%
% LAMBDA=JDQZ(A,B) and JDQZ(A,B) return K eigenvalues of the matrix pair
% (A,B), where K=min(5,N) and N=size(A,1) if K has not been specified.
%
% [X,J... |
55c5643116c9ee3a6cc9c17c47af88040ad2b9979dfad3643ec8cc855e7fa445 | MATLAB | 80,164 | 1,237 | clear all;
close all;
fclose all;
dbclear all;
%dbstop in inplane_grappa_wt.m at 349;
%dbstop in inplane_grappa_wt.m at 271 if (slice_idx==25);
%dbstop in recon_mb3d_s2019041202_run5.m at 413;
%=================================================================
% environment setting
%============================... |
727dadd6c4265beffbd9dd932373dc58443a97e25fb0148a56ef08624ee945c1 | MATLAB | 83,835 | 1,416 | function visdata = nk_VisModels(inp, id, GridAct, batchflag)
% =========================================================================
% visdata = nk_VisModels(inp, strout, id, GridAct, batchflag)
% =========================================================================
% Visualisation module of NeuroMiner
% This c... |
8d5ace485dd61a882e4c8279b152a31e13f0f4000bb141ee13e1aa01d9305956 | MATLAB | 84,895 | 2,453 | % ========================================================================
%> @brief eyelinkAnalysis offers a set of methods to load, parse & plot raw EDF files. It
%> understands opticka trials (where EDF messages TRIALID start a trial and TRIAL_RESULT
%> ends a trial by default) so can parse eye data and plot it for ... |
a566768033405f324a75bc803415b09001fa363b790cd2530523f6ca4f2fbddd | MATLAB | 85,767 | 2,534 | % ========================================================================
classdef screenManager < optickaCore
%> @class screenManager
%> @brief screenManager — manage opening and configuring the PTB screen
%>
%> screenManager manages the (MANY!) PTB screen settings. It ensures screen
%> coordinates are based on visua... |
7b8d1c95e7a8c7b62fa09b7445302f61f86a0980af0c471ca96041815c3a736c | MATLAB | 87,996 | 2,145 | classdef Sources2D < handle
% This class is a wrapper of Constrained NMF for standard 2D data. It
% Both CNMF and CNMF-E model can be used.
% Author: Pengcheng Zhou, Columbia University, 2017
% zhoupc1988@gmail.com
%% properties
properties
% spatial
A; % s... |
8bf5a2fb0a4c55f6c7b6d7c88e381772c687a4b1ea89d73caf01cc0e0be1d6e8 | MATLAB | 100,477 | 2,812 | function [opts,plm] = palm_takeargs(varargin)
% Handle the inputs for PALM.
%
% _____________________________________
% Anderson M. Winkler
% FMRIB / University of Oxford
% Oct/2014
% http://brainder.org
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% PALM -- Permutation Analysis of Linear ... |
133b0d0fea63c1498f9556079f69c53adcd22435b379499b531469abe7c97cdd | MATLAB | 110,473 | 3,106 | classdef LFPAnalysis < analysisCore
%> LFPAnalysis Wraps native and fieldtrip analysis around our
%> PLX/PL2 reading, taking our trial selection and behavioural
%> selection into account. As we can do spike-LFP anaysis this asks for a
%> spike data file, it can be the same as the LFP file or different if we resor... |
234b1cdd21088aea7ef0aceacb419a144787930d98064e80492ff376f09ca0aa | MATLAB | 121,812 | 3,381 | % ========================================================================
classdef runExperiment < optickaCore
%> @class runExperiment
%> @brief Behavioural & MOC Task experiment runner.
%>
%> RUNEXPERIMENT accepts a variable sequence « taskSequence », stimulus set «
%> metaStimulus » and for behavioural tasks a « sta... |
f38c3f6cd414341069760b7605093b28cc5fa4f623b489c98a417643c5eedfc0 | MATLAB | 128,267 | 3,528 | % ========================================================================
classdef runExperiment < optickaCore
%> @class runExperiment
%> @brief Behavioural & MOC Task experiment runner.
%>
%> RUNEXPERIMENT accepts a variable sequence « taskSequence », stimulus set «
%> metaStimulus » and for behavioural tasks a « sta... |
5b9b0fc4ea376b0d6f158aa15037bd05f753283979ca0aa127eb3330e44a098e | MATLAB | 129,821 | 3,002 | function hFig = uiinspect(obj, fig)
% uiinspect Inspect an object handle (Java/COM/HG) and display its methods/props/callbacks in a unified window
%
% Syntax:
% hFig = uiinspect(obj, hFig) % hFig input argument is optional
%
% Description:
% UIINSPECT(OBJ) inspects an object handle (e.g., Java, COM, Handle
% ... |
c411a605d1dca02e29dd26bffde8e99bb8e729b7c5fd5f716d6e39fbd9144f32 | MATLAB | 132,401 | 5,201 |
% Panel is an alternative to Matlab's "subplot" function.
%
% INSTALLATION. To install panel, place the file "panel.m"
% on your Matlab path.
%
% DOCUMENTATION. Scan the introductory information in the
% folder "docs". Learn to use panel by working through the
% demonstration scripts in the folder "demo" (list the d... |
a9fbc2ebfa3c3a466a14bdbeb7305842ac2a42679bfd79833709b56969e26246 | MATLAB | 162,222 | 3,911 | classdef animalBehaviorAnalysis < handle
properties
meta;
% save_location;
% project_name;
files;
% startup_file;
% grouping_file;
% viewpoint_file;
% timing_file;
% merged_file;
... |
0bcaafe66906161bcff570e06288e589a48b520f780e3aab79ee1666a882e78c | MATLAB | 167,981 | 3,800 | function palm_core(varargin)
% This is the core PALM function.
%
% _____________________________________
% Anderson M. Winkler
% FMRIB / University of Oxford
% Oct/2014
% http://brainder.org
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% PALM -- Permutation Analysis of Linear Models
% Copy... |
4bab6fa5e55b53a61056d92ef09c832ca6cb11860be9af7c1b888b3068e1216e | MATLAB | 200,000 | 1,139 | classdef HEDTags
%> HED schema enumeration generated from HED8.4.0_Tag.tsv
properties
tag
tagPath
description
hedId
end
enumeration
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Event
Event ("Event", "Event", "Something that happens at a given time and (typically) place. Elements of this tag subtree designate the ge... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.