sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
5fc0d62f6ecfa9ef059f2bb8b4d54d764deb398aa3b7aaa4ec442c31b1e419ad | MATLAB | 3,996 | 143 | % mglFillRect3D - draw filled rectangle(s) on the screen
%
% usage: results = mglFillRect3D(x, y, z, size, [rgb], [rotation], [antialias])
% by: Benjamin Heasly
% date: 03-17-2022
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% inputs: x,y,z - vectors of x, y, and z c... |
7268cf6e70abbafe9a8110b54815973753069bc584a803fdd036c20da5401e2a | MATLAB | 3,998 | 98 | function compute_popvectors_dotproduct_cumulative(obj, session)
animalName = obj.Experiment.getAnimalName();
sessionName = session.getName();
sessionAnalysisFolder = session.getAnalysisDirectory();
mapNameToUse = obj.Config.calcium_popvectors_dotproduct_cumulative.map_name_to_use;
sessionDa... |
ba7de14b98d1f0ab6cbd4a557d72602014780e0a5c40c4ed8a7c417b82d465d6 | MATLAB | 3,998 | 53 | function pix_hdr = GE_readHeaderPixel(fid, byte_align)
%
% pix_hdr = read_pixel_header(fid, byte_align)
%
% Loads the pixel header from the file with filed id fid
% and returns it as a structure.
% if byte_align = 1 then 32-bit alignment (SGI, LX2 format)
% if byte_align = 0 then 16-bit alignment (Sun, 5.X format)
%
%... |
dbca739340658a3ac3e9c9d2626cca7531b2ca27ddf3e819f4595a9175b73716 | MATLAB | 4,003 | 97 | function artitable = add_multiple_features(artitable)
% eg. outputtable = add_multiple_features(balancedgrouped);
% once you've done this, you can save the table to file using
% writetable(outputtable, 'balanced_epochs.csv')
displayplots = true;
Fs = 2000;
ids_missing_data = [];
spectra = nan([height(artitable),106])... |
48a5b356ca2d530ebe36e94f27c6ca77095d126b756354cd023835d946701390 | MATLAB | 4,006 | 165 |
function loss_group_info=gen_network_loss_group(train_opts, net_config, group_input_info)
feat_output_dim=group_input_info.var_dims;
assert(length(feat_output_dim)==1);
loss_group_info=My_net_util.gen_group_info_basic(net_config, 'loss_group');
stageout_info=[];
stageout_info.stage_idx=1;
stageout_info.output_d... |
a92b443530659cc621640bfd620b6db2f8545984a1ec0c37d3a0ffc96cefc20c | MATLAB | 4,008 | 101 | function R = RVT_from_PeakFinder(R, Opt)
if (~isfield(Opt,'Demo') | isempty(Opt.Demo)),
Opt.Demo = 0;
end
if (Opt.Demo),
Opt.Quiet = 0;
else
pause off
end
for (icol=1:1:length(R)),
%calculate RVT
if (length(R(icol).ptrace) ~= length(R(icol).ntrace)),
dd... |
58ca87bc5884d28539c04778700cbaeff2eea4857faa58d8c25cc202432df218 | MATLAB | 4,010 | 108 | function write_edf(filename, hdr, data);
% WRITE_EDF(filename, header, data)
% Writes a EDF file from the given header (only label, Fs, nChans are of interest)
% and the data (unmodified). Digital and physical limits are derived from the data
% via min and max operators. The EDF file will contain N records of 1 sample ... |
8e37392dc0646be6427711d3504358bbccf27f1ee3284adc3f75724b9ca88b6b | MATLAB | 4,011 | 120 | gcp;
addpath(genpath('.'))
addpath(genpath(fullfile('..','ANE')))
%%
% name of the videos
list_Exp_ID={'blood_vessel_10Hz','PFC4_15Hz','bma22_epm','CaMKII_120_TMT Exposure_5fps'};
num_Exp = length(list_Exp_ID);
rate_hz = 20; % frame rate of each video
th_IoU_split = 0.5;
thj_inclass = 0.4;
thj = 0.7;
meth_baseline='m... |
cec47627f23b6e80611a6765df616331845bfe6662c6a50300d522cadfeb8c8f | MATLAB | 4,011 | 85 | function W = meshwire(Pcenter, a, b, M, flag, sk)
% Outputs structure W with the equivalent FMM computational wire grid
% Inputs:
% Pcenter - centerline of the conductor in 3D [:, 3];
% a - major axis/side (always in the z direction) of conductor cross-section;
% b - minor axis/side (always in the z direction... |
fe8eb43d979d0efc4e3f985df3e0ddb1ad39c0e4927ce6cfdba6a729248d605f | MATLAB | 4,011 | 92 |
% Compute match costs between detections in neighboring frames,
% based on body overlap (if segmentation available) and distance.
%
function cost_mx = detection_match_costs(det_curr, det_next, PPM)
% get number of body components
n_body_curr = det_curr.body_cc.NumObjects;
n_body_next = det_next.body_cc.NumOb... |
cbc275fad6ab7aa8f997cbd4656d44d23dd77ab3bb8ba9f6d91cb57f8d532436 | MATLAB | 4,013 | 133 | function niml = afni_niml_parse(s)
% Simple parsing routine for AFNI NIML datasets
%
% N=AFNI_NIML_PARSE(S) parses the niml string S and returns a parsed
% structure P.
%
% P can either be an niml element, or a group of niml elements. In the
% formder case, P contains a field .data; in the latter, a cell .nodes.
%
% If... |
3967ba69a205eea43881d3a7d494ac3061791c7031eb99322668bbce1c6efc17 | MATLAB | 4,014 | 100 | function behav = msExtractBehavoir(behav, trackLength)
%MSEXTRACTBEHAVOIR Summary of this function goes here
% Detailed explanation goes here
ROI = uint16([behav.ROI(1) behav.ROI(1)+behav.ROI(3) behav.ROI(2) behav.ROI(2)+behav.ROI(4)]);
%% Removes background
% takes the median of each pixel from 100 frames spread... |
f88689209298d710d7e194b8b037d75f536fe561089b24aa3b966c9a16485f5e | MATLAB | 4,014 | 173 |
% Author: Guosheng Lin (guosheng.lin@gmail.com)
function exp_info = my_net_tool(opts, imdb, net_config, input_exp_info)
net_run_opts=opts.net_run_opts;
exp_info=[];
assert(isa(net_config, 'ref_obj'));
work_infos=cell(0);
work_info_trn=gen_work_info_basic();
work_info_trn.ref.run_type='train';
wo... |
7ecb6d57a005ed779ac3587039161f9bfdcc5c0a8b9ec5658d5bd6012d844cc8 | MATLAB | 4,016 | 139 | function Dat = aedes_gui_defaults;
% AEDES_GUI_DEFAULTS - Default fonts and colors for GUIs
%
%
% Synopsis:
% Dat = aedes_gui_defaults;
%
% Description:
%
% Examples:
%
% See also:
%
% This function is a part of Aedes - A graphical tool for analyzing
% medical images
%
% Copyright (C) 2006 Juha-Pekka Niskan... |
f96a81eafedb10d705fada37d6bc53b6221b3d3890c6d6f3ca4f67dc8245b8f6 | MATLAB | 4,020 | 119 | function [ds_unit_angles,ds_within_angles,unit_angles,within_angles] = get_vector_angles_degrees(outcomes,ds_events)
sunit_angles=[];
swithin_angles=[];
punit_angles=[];
pwithin_angles=[];
eunit_angles=[];
ewithin_angles=[];
peunit_angles=[];
pewithin_angles=[];
seunit_angles=[];
sewithin_angles=[];
ds_unit_angles... |
fd555192471c0b903dc9c1912f0d97d3486756e9b369d0f156c55b5a6e39cc32 | MATLAB | 4,021 | 99 | function [probe] = getSDSeparations(probe)
%GETSDSEPARATIONS Calculates separation for each src/det pair
% Given a probe with src and detposns defined as [x, y, modidx,
% src/detidx], calculate the euler distance between all
% permutations/pairs of sources and detectors, of active modules only.
% Output is a N... |
763f606f6f6756323f7b5e68180d71b6d3d67d90980689dd1e82efa49dc147a4 | MATLAB | 4,022 | 111 | % mglTestContextStash.m
%
% $Id: mglTestContextStash.m
% usage: mglTestContextStash()
% by: ben heasly
% date: 09/07/2022
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: Demonstrate how to stash and reactivate mgl contexts.
%
% This script d... |
b5302d553356bd726f210e32d1baadb705c64d4d98de2fdd0a6e26cfec326098 | MATLAB | 4,022 | 129 | function [] = ExtDataFig01_TuningCurve_OptStim_Song_pIP10
% Code for plotting the tuning curves of pulse and sine songs induced by optogenetics in Extended Data Fig. 1r.
Target = [1,2,3,4,6]; % not enough data from 5 due to flight
TargetPeriod = [0,10];
OptStim = [10,20,30,40,50,60];
%% get filenames
selpathOrg = ['... |
087076f684cec1bcbea1bc8d3efe56a48d73ca235a6af469dddf8cc75ba2c9a6 | MATLAB | 4,023 | 143 | function [] = ExtDataFig09_TuningCurve_OptStim_Song
% Code for plotting the tuning curves of pulse and sine songs induced by optogenetics in Extended Data Fig. 9a.
GT = 'pIP10_Chr';
% GT = 'dPR1_Chr';
% GT = 'TN1_Chr';
% GT = 'pMP2_Chr';
switch GT
case 'w_Chr'
Target = [1,2];
case 'pIP10_Chr'
... |
10bc0cf52f43450b4b9f93627c8492db5af61ee311ecd4f49c92a035587edd8b | MATLAB | 4,023 | 90 | function [ text ] = getGroupsInformation( obj )
% Display information about Groups.
%
% Syntax:
% GETGROUPSINFORMATION( obj );
%
% Input parameters:
% * data - data from json file(s)
%
% Example:
% GETGROUPSINFORMATION( );
%
% Available at: https://github.com/NCN-Lab/DBScope
% For referencing, please use: Andreia... |
53ccb1a3af3c2a1d097386672c65f4cfb8cffac93fc0d505284cba6011a778d3 | MATLAB | 4,023 | 124 | % taskTemplate.m
%
% $Id$
% usage: taskTemplate
% by: justin gardner
% date: 09/07/06
% copyright: (c) 2006 Justin Gardner (GPL see mgl/COPYING)
% purpose: example program to show how to use the task structure
%
function myscreen = taskTemplate
% check arguments
if ~any(nargin == [0])
h... |
cfe24e0d90089163b27e551f8d772fe5f1d60ae805db058666bac192298b61be | MATLAB | 4,023 | 130 | function [] = ExtDataFig01_GrandAveTimeCourse_OptStim_Song_pIP10
% Code for plotting the time course of pulse and sine song during optogenetic stimulation of the pIP10 split-Gal4 in Extended Data Fig. 1p.
Target = [1,2,3,4,6]; % not enough data from 5 due to flight
%% get filenames
selpathOrg = ['../Data/Summary_pIP1... |
3e370abb2a0ecbb3061fb83c1a90314622dcd825fa00019dd0f699e4e7d2a595 | MATLAB | 4,024 | 135 | function imdb = setupGeneric(datasetDir, varargin)
% SETUPGENERIC Setup a Caltech-101-like dataset
% IMDB = SETUPGENERIC(DATASETDIR) initializes a IMDB structure
% representing the dataset located at DATASETDIR. The dataset
% is supposed to be organized similarly to Caltech-101, i.e.
% to have one directo... |
7770e270a1cae65c1ec41576a9b8b1e8776dc869cb6cbd08fb1a32e257678da1 | MATLAB | 4,027 | 85 | %% anticiptory lick
clear
file=dir('ACC*uncertain*.mat');
Licktrace.stim=cell(1,4);Licktrace.reward=cell(1,4);
Licktime.stim=cell(1,4);Licktime.reward=cell(1,4);
Licklatency=cell(1,4);
for jj=1:6
load(file(jj).name)
hit=find(outcome(:,1)==1 | outcome(:,1)==5);
totalevent=sortrows([Events.C1S3;Event... |
92e7fcf6d15a8b59b47b709b758c810d4d473a03ee5d03a060c07971e2600637 | MATLAB | 4,029 | 85 | function compute_placemaps_shrunk(obj, session, trial)
% This shrinks from a rectangle to a square in so that the 90 degree
% rotations can be performed for the pixel-to-pixel correlations.
if ~strcmpi(obj.Experiment.getArenaGeometry().shape, 'rectangle')
fprintf('No need to shrink since shape is a ... |
bf39b2e0941c256f820504ade955ca7f18642510b31e20f0e76d7b2f9ca68463 | MATLAB | 4,029 | 100 | function mltp_plot_behaviour_averaged_placemaps_contexts(obj, session)
tfiles_filename_prefixes = session.getTFilesFilenamePrefixes();
digTypes = ['C', 'G', 'F', 'W']; % don't match '?'
numDigTypes = length(digTypes);
numCells = session.getNumTFiles();
firstDigs = {};
trialIds = zeros(1, sess... |
78b2c3e51df106c92dd5bcf0c9e1f338544ded62eb90c2924b32a187edaa2c97 | MATLAB | 4,033 | 95 | function [hdr] = read_shm_header(filename)
% READ_SHM_HEADER reads the header in real-time from shared memory
% this is a helper function for READ_HEADER
% Copyright (C) 2007-2010, Robert Oostenveld
%
% This file is part of FieldTrip, see http://www.ru.nl/neuroimaging/fieldtrip
% for the documentation and details.
%
... |
a230161e28d4161857c53d8e892a704aeaac47865bf11ae8bae43baaeccae067 | MATLAB | 4,034 | 109 | <<<<<<< HEAD
function indexes = computeIndexes(general)
% execute enroll
[result_f, indexes.enrollTime, errMessage] = goEnroll(general);
if not(strcmp(errMessage, ''))
indexes = [];
errordlg(errMessage);
return;
end
switch (general.MATCHING_function)
case 'biohashing'
if isempty(general.BIOHA... |
665f1c2b71b8e9dbd219393f6f9be661e584f8d1175b5357cd183d8595ba98c1 | MATLAB | 4,035 | 94 | %% Description
%{
This script computes burst occurrence rates of the specified frequency
band for the solitary and group conditions and tests whether burst rates of
mice change in response to task condition.
%}
%% Configure Library Path
UTIL_DIR = genpath('/Users/scho/Cho2024_MouseEscapeData/utils');
addpath(UTIL_DIR);... |
5e3aa66ce85952883f2caaaba8a4a75138cc6e17c73f65307c2d54240ea9ee5c | MATLAB | 4,037 | 135 | function h = uimage(varargin)
%UIMAGE Display image with uneven axis.
% UIMAGE(X,Y,C) displays matrix C as an image, using the vectors X and
% Y to specify the X and Y coordinates. X and Y may be unevenly spaced
% vectors, but must be increasing. The size of C must be LENGTH(Y)*
% LENGTH(X). (Most probably you... |
3d414987fbeb643c9601a4562653cb2db0774ee1c7fbee40f28e0c01749a1a9a | MATLAB | 4,038 | 135 | function f = calccod(x,y,dim,wantgain,wantmeansub,wantsafe)
% function f = calccod(x,y,dim,wantgain,wantmeansub,wantsafe)
%
% <x>,<y> are matrices with the same dimensions
% <dim> (optional) is the dimension of interest.
% default to 2 if <x> is a (horizontal) vector and to 1 if not.
% special case is 0 which mean... |
3b8f661a5e752926dbad4c0a55916c7c81202150de9dddbaf101e82a2119434c | MATLAB | 4,041 | 117 | % Marc Normandin, Muzzio Lab, Psychological & Brain Sciences, University of Iowa, 2024
% Set these
%MapsData = analysisInput.MapsData;
%MapsDataInfo = get_sessions_and_cellnames_from_table(MapsData);
%%
close all
% Select a cell
iRow = 3004;
%inds = find(ismember(MapsDataInfo.animalSessionCellName, {'CMG169_CA1_s3... |
0c3a7fc6f54a3b09ff02427a7de2c410f15e5d291e3d4c8335d1564d26a25562 | MATLAB | 4,045 | 119 | % chkVarLegStepParamsOpto.m
%
% Quick function to check the variance of a given leg step parameter, for
% one or more flies. Input is output of extractLegStepParamsOpto_fly() or
% extractOptomotorLegStepParamsOptoCond_fly()
%
% INPUTS:
% datDir - directory with output files
% whichParam - which step parameter
% ... |
502d9511a7fe6f624e157857cf482c28fe4060dad10152f0ba474abd15f984cf | MATLAB | 4,045 | 115 | function H = petropy(x,n,tau,method,accu)
% The petropy function calculates the permutation entropy of data series.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% version 1.1, 27.02.2015:
% - corrected typo in the description ('same' -> 'equal')
% - line 106: changed unique-fu... |
eaa499a44d0bb2f96b08afef60ad25b2b8fdf60a017bcb7c77685387e5f4ac61 | MATLAB | 4,045 | 96 | function [m_out, imaxf, overwrite_flag, imx2, imn2, ibmax, ibmin] = neural_enhance(m_in, filename, Params)
% batch version of anisotropic diffusion & background removal
% Jinghao Lu, 07/01/2018
h = tic;
msg = 'Overwrite neural enhanced & registrated .mat file (data)? (y/n)';
overwrite_flag = true; % judg... |
6fdef266d7c566202b4bef22a575723d56e05cfe3725d80e37eb1e5c10fdf7f3 | MATLAB | 4,046 | 117 | function plotFFTSurvey( obj, varargin )
% PLOTFFTSURVEY
% Plot Survey LFP recordings FFT
%
% Syntax:
% PLOTFFTSURVEY( obj, varargin );
%
% Input parameters:
% * obj DBScope object containg streaming data.
% * (optional) ax Axis where to plot.
% * rec Index of recording.
% * ch... |
09eed6ceec8d7efcdfe96443f61743d8189321ca9f208b1b41432716a6b1e229 | MATLAB | 4,047 | 138 | function h=vis_brainvoxslice(piall,whitel,voxl,pialr,whiter,voxr,scale,rm_cc,sl_pct)
slicel=round(size(voxl.in_pial,3)*sl_pct);
slicer=round(size(voxr.in_pial,3)*sl_pct);
%% move pialv and white v to vox space
piall.v_vox=(piall.v-[voxl.xmin voxl.ymin voxl.zmin])/scale - [0 0 slicel-scale/2];
whitel.v_vox=(whitel.v... |
682b15bcdf96284e51eb27fa97d6dc14346772abb40286510951e19fb14f01e2 | MATLAB | 4,050 | 67 | %----FUNCTION:
% extract statistical color features (mean and standard deviation) from various of color spaces (RGB, HSV, LAB, Opponent color space)
%----INPUT:
% I - the raw RGB image
% gridX - x grid
% gridY - y grid
% patchSize - patch size
%----OUTPUT:
% colorArr - the statistical color features
%----AUTHO... |
1003011fc3fbb98023937af1bef4e6dc708e5c4aea510b607e8dde5f99fa8785 | MATLAB | 4,055 | 1 | function pressKey2Begin(display, onlyWaitKb, speak, promptString, triggerKey)
% pressKey2Begin(display, [onlyWaitKb=1], [speak=0], ...
% [promptString = 'please press any key to begin.'],[triggerKey = 'any'])
%
% Displays 'please press any key to begin' on the SCREEN
% just below the center of the screen and waits ... |
f99ae6dde0595307e71e9d0d98c72e61beefa443e63bfdc98e2215aefe433821 | MATLAB | 4,055 | 144 | function [dsm] = openmeeg_dsm(pos, vol, flag)
% OPENMEEG_DSM computes the OpenMEEG DSM matrix
% i.e. Right hand side in the potential equation
%
% Use as
% [dsm] = openmeeg_dsm(po, vol, flag)
%
% flag = 1 non adaptive algorithm: does not try to approximate the
% potential in the neighborhodd of the lead... |
3875276ceed6ca41b35653318aa2389b38efa91fa50c1007a2e2a1ab3c028001 | MATLAB | 4,058 | 98 | function mltp_plot_singleunit_placemap_data(obj, session)
sr = session.sessionRecord;
ti = sr.getTrialsToProcess();
% Get unique ids for the contexts. Dont assume that
% they are just 1 or 1 and 2.
uniqueContextIds = sort(unique([ti.context]));
numContexts = length... |
a2b93bc16fe3285a9880a14ac4fb8756c910733afa33c91b23898d9b9c2ccaa6 | MATLAB | 4,058 | 129 | % plotMeanKernels.m
%
% Function to plot all kernels, where those relating the same variables in
% the same direction are plotted on the same subplot. I.e. the yaw
% velocity forward kernel for left, right, sum, and diff. Also shows
% variance explained and number of flies in figure legend. Produces 1
% plot, with... |
5621b2ee02b1be7d67bd68aa044b741c717069a63254c378bfdb0158069a80a3 | MATLAB | 4,062 | 100 | %{
Maxwell Gagnon 7/30/18
This script finds the 'S' 's' and 'L' key markers from a spike2 recordings
in order to automatically determine the start and stop of SINE segments.
'S' indicates START of a SINEWAVE segment. Either Drum, Chair or Both
's' indicates END of a SINEWAVE segment. Either Drum, Chair or Both
'L' in... |
58fd583bd098045a71ae6df6d8ad3e563373992596364e21435f51ade1a33490 | MATLAB | 4,062 | 126 | function simulation_simulate_signals_based_on_standardDKI(path_of_script, simulation_voxels_table, simulation_parameters)
contaminate_signal = simulation_parameters.contaminate_signal;
bvalues = simulation_parameters.simulation_bvals/1000;
diffusion_gradients ... |
2809b716ece9f707ddc6478fa8d280958a78a543a0861c2c016b60d6a26a0a66 | MATLAB | 4,065 | 143 | % mglTestText.m
%
% $Id: mglTestText.m 380 2008-12-31 04:39:55Z justin $
% usage: mglTestText()
% by: justin gardner
% date: 05/10/06
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose:
%
function retval = mglTestText(screenNumber,noClose)
% check argumen... |
3f6432c0a1632102a80421b4e8bf7b1ff9be28387a51a3dbf9d7c5f8c9584338 | MATLAB | 4,066 | 151 | function zaso = encapsulateRaw(X, Y, bX, bY, isBulkProcess)
% zaso = encapsulateRaw(X, Y, bX, bY, isBulkProcess)
% reference implementation ZASO for no feature space transformation
% Use this file as a template to create a new custom encapsuation procedure.
%
% Input:
% X: (N x dx) N samples from the indepenent varia... |
f95d43fdffaf3b0c02971bb787c33da7a0e6804c56a2f6f0b9ea9fdb5e49244d | MATLAB | 4,066 | 118 | function [GREPhase, GREMag] = mcpcVRC(GREMag, GREPhase, Params)
% [GREPhase, GREMag] = mcpcVRC(GREMag, GREPhase, Params)
% multiple coil phase combination with VRC
%% Author: Xu Li
% Affiliation: Radiology @ JHU
% Email address: xuli@mri.jhu.edu
%
% Multiple channel phase combination - using virtual reference coil met... |
608c5ac6541e8876846821278d1761c590fda95edec97ba483ef25132e531f72 | MATLAB | 4,067 | 115 | % legFictrac.m
%
% Experimental Function
% For simultaneous acquisition of leg tracking and FicTrac data
%
% INPUTS:
% settings - struct of settings from twoPhotonSettings()
% flyData - fly metadata from getFlyMetadata()
% exptDuration - duration of experiment, in seconds
%
% OUTPUTS:
% exptReturn - returns 1 u... |
94ae58c98748fe5819238159d66343f15444f9a7b05af9abaa0edc4c94e3dc26 | MATLAB | 4,068 | 114 | % Nonlinear fitting for Frequencey map estimation
% [p1, dp1, relres, p0]=Fit_ppm_complex(M)
%
% output
% p1 - field map, may need further spatial unwrapping
% dp1 - a priori error estimate (N_std), noise estimation.
% relres - relative residual
% p0 - initla phase
%
% input
% M - a multi-echo and c... |
dbf502881fbe288aa5f554311b4e6dd439156b994285cb46a0a49b34b258636e | MATLAB | 4,068 | 118 | % mglInstallSound: Install an .aiff file for playing with mglPlaySound
%
% $Id$
% usage: soundNum = mglInstallSound(soundName,<samplesPerSecond=8192>)
% by: justin gardner
% date: 02/08/07
% copyright: (c) 2007 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: Installs an aiff... |
0e041354bce7c0ec1f9b55e89f1667f6c1789a426cf89ee20cfb3915003bbd6a | MATLAB | 4,072 | 126 | function [pnt, tri, nrm] = read_stl(filename);
% READ_STL reads a triangulation from an ascii or binary *.stl file, which
% is a file format native to the stereolithography CAD software created by
% 3D Systems.
%
% Use as
% [pnt, tri, nrm] = read_stl(filename)
%
% The format is described at http://en.wikipedia.org/w... |
4a26085e9923b83049c3c5f50bf607072df7f8ae6fbffa108b8f8fea4e3cc4c6 | MATLAB | 4,073 | 152 | % plotExFreeWalkTraj2.m
%
% Script to plot example free walking trajectories (in XY plane) and
% corresponding forward and yaw velocities
%
% CREATED: 10/11/23 - HHY
%
% UPDATED:
% 10/11/23 - HHY
figure;
plot(bodytraj.tZeroed, bodytraj.angVelSmoS);
figure;
plot(bodytraj.tZeroed, bodytraj.fwdVelSmoS);
figure;
plo... |
7f53b480137d4c1729c40f8e2966f3d7e82622c00519d1081fa7f4bc9e184fb6 | MATLAB | 4,073 | 91 | function subject_FD_parse_v3_gaby(FD_movement_files,skip_seconds,epi_TR,brain_radius_in_mm,varargin)
% Code from OHSU Fair Neuroimaging Lab
% Written (2014) and commented (9/8/2015) by Eric Earl
%
% FD parsing Nipype wrapper pulling in list of motion files
%
% Modified to read (and ignore) DVAR_pre_reg, DVAR_post_reg... |
45580336fe55e31d3440c7f853b75b2ba3df881acff8fc6a2a20a997b29f9b1e | MATLAB | 4,076 | 94 | % Script to generate and fit simulated data arcording to a conditional intensity
% with spline based history dependence
close all;clear;clc;
%% Basis Functions
% 1. Cardinal Spline
% Define spline parameters
lastknot = 200;lag=200;
c_pt_c = [-10 0 10 20 40 100 201 210]; % Define control points
s = 0.5; % Define Ten... |
c093481d8b6cd3a15fdb8878933b48e4458018040a17ab037d21736eecfc9a99 | MATLAB | 4,076 | 82 | function allrat_lmeplot(variable_rip, variable_wait, labels_rip, labels_wait,varargin)
% assumes 8 animals, first 4 no-manipulation (1 set of bars) second 4
% manipulation (2 sets of bars
animcol = [123 159 242; 66 89 195; 33 42 165; 6 1 140; 254 123 123; 255 82 82; 255 0 0; 168 1 0; 148 148 148; 115 115 115; 82 82 82... |
90d9760841184f521ad6a364d5b3d563dcb8fe9ba8a8577c04c9ae345ac89826 | MATLAB | 4,078 | 133 | % plotResidualSpikeRate_fly.m
%
% Function to plot output of getResidualSpikeRate_fly() as
% average across flies and/or individual flies
%
% INPUTS:
% datDir - path to folder containing savePCAinterpStepParam() output files
% avg - 'mean' or 'median' for which type of average to plot
% indivFlies - plot individ... |
926572b7efbf0717fe2a68606f8a14006078e9e454d3acd1d703e338e612dfb6 | MATLAB | 4,079 | 144 | function handles = fix_FixTrackFly(fly,f0,f1,handles)
% do tracking (or fix tracking) of one fly
% splintered from fixerrorsgui 6/21/12 JAB
trk = handles.trx(fly);
se = strel('disk',2);
for f = f0+1:f1
drawnow;
handles = guidata(handles.figure1);
if isfield(handles,'stoptracking') && handles.stoptracking
br... |
d562d4cc39d1777de1610ac1bba557b66a44cef01a9697960c726a168adba38b | MATLAB | 4,081 | 172 | %Geoff launch
masterTable = table()
%% file handling
for fileIdx = 1:length(Params.FilePath)
file_name = Params.FilePath{fileIdx};
sizes = [20 250];
%[sect] = border_exclusion(X,Y);
erode = 4;
sens = 0.29;
%sens = 0.4
fsize = 0.5;
framelimit = 4;
v = VideoReader(file_name);
FR = 10;
%% SET TIME F... |
2e26a0ba6044328c1fae7e731416413c7e9ed66aed2bb2c7d89b9fade77494c0 | MATLAB | 4,083 | 76 | function [decoded_camera_frames, invalid_lags_count, dropped_frame_fraction, unmatched_stimulus_frame_count] = process_decoded_camera_frames(decoded_camera_frames, possible_decoded_camera_frames, parameters)
% process the decoded camera frames to ensure no weirdness.
% enforce rules:
% 1. the decodeded camera frame can... |
f23efbfb5e92f8d74719dc68a56ea90be6e68ab87c7862736db5125973bc58ec | MATLAB | 4,084 | 104 | function metadata = createMinimalOMEXMLMetadata(I, varargin)
% CREATEMINIMALOMEXMLMETADATA Create an OME-XML metadata object from an input matrix
%
% createMinimalOMEXMLMetadata(I) creates an OME-XML metadata object from
% an input 5-D array. Minimal metadata information is stored such as the
% pixels dimensio... |
63b968aad382589abfe3a1ae37de90e3588e822498ad719926dab4df517f0a29 | MATLAB | 4,085 | 104 | % mglMetalStartup: Open an mgl metal window (starts a separate standalone
% app which mgl communicates with via a socket).
%
% usage: mglMetalStartup(whichScreen, screenX, screenY, screenWidth, screenHeight)
% by: ben heasly
% date: 08/26/2022
% copyright: (c) 2021 Justin Gardner (G... |
6f6c02c9d15eacc372864f8da49b2b5999cca782a5518e47be8cfaee65f3b03a | MATLAB | 4,091 | 146 | function [M_R] = vox2ras_rsolveAA(Vc_C, inPlaneRotation, varargin)
%%
%% NAME
%%
%% vox2ras_rsolveAA.m (vox2ras_r{otation}solveA{uto}A{lign})
%%
%% AUTHOR
%%
%% Rudolph Pienaar
%%
%% VERSION
%%
%% $Id: vox2ras_rsolveAA.m 8776 2013-11-14 09:04:48Z roboos $
%%
%% SYNOPSIS
%%
%% [M_R] = vox2ras_rsolveAA(Vc_C, in... |
f6338b4e634aba28f9d0ee8503cd30649d9b28f81a347cb66f4a8643c4db0187 | MATLAB | 4,092 | 114 | function calculate_snr(DATA,ROI,AddInfo)
% calculate_snr - Calculate Signal-to-noise ratio (SNR) from two ROIs
% (this is an Aedes plugin)
%
% This plugin looks for two ROIs labeled "signal" and "noise", which it
% will then use to calculate SNR. SNR value is printed in the workspace and
% show in a messagebox.
% Th... |
e420aaff68d51b0db850f68f8b76657dbdcfd3d7fc0a9d456941a99f3f84b1fb | MATLAB | 4,095 | 123 | %% s_analyzeBehavioralPerformance.m
% Define params
subjnrs = [1,2,3,7,8,9,10,11,12,13];
projectDir = fullfile(simseqRootPath);
saveFigs = true; % Save figures or not
%% SIMSEQ DATA
% Preallocate space
nrRuns = 8;
hitRate = NaN(length(subjnrs),nrRuns);
HTS = hitRate;
MSS = hitRate;
FA = hitRate... |
6515d91d913f5224e3d4b3b2cd7301fbea3e8f2442e9ca38c5351860b132713b | MATLAB | 4,096 | 115 | % plotScatterEphysContParam.m
%
% Function to plot output of getCorrelationEphysContParam() as scatterplot
% binned scatterplot, or linear model
%
% INPUTS:
% datDir - path to folder containing savePCAinterpStepParam() output files
% plotType - string for type of plot to make
% 'binScatter' - binned scatterp... |
9a3e34ff5ad9531d4cb17db207cd414fa0701eb0d8e68d87959fe95ef8a856f0 | MATLAB | 4,097 | 137 | % Marc Normandin, Muzzio Lab, Psychological & Brain Sciences, University of Iowa, 2024
%% Paired TTest using cell as statistical unit.
%load('../output/ratemaps-2021_10_1_12_35_44.mat');
MIN_TRIALS = 4;
% animalName = 'AK42_CA1';
% sessionName = 'd7';
% cellName = 'TT2_02.t';
% animalName = 'CMG159_recut';
% sessi... |
c340ab3942ee45bcdbd979ec964daf08006d9b966136936516c13e4ff2e39299 | MATLAB | 4,097 | 126 | % f_fftFilter.m
%
% Copyright (C) 2015, Miguel Navarrete
%
% 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 your option) any later ve... |
d83b39b07ceb65ca88c6dc9499b5547f83a70d292c54c580e8ac10118d9a0d0b | MATLAB | 4,099 | 88 | function reSampleMovie(fullPath, varargin)
if nargin > 1; boostLvl = varargin{1};
else; boostLvl = [];
end
fprintf('Loading movie parts...')
[save_path,save_filename,~] = fileparts(fullPath); % Get parts of filename
m = matfile(fullPath,'Writable',true); ... |
f47a0ee9a5b37137bc6d413459837fae8fcc6b84767493fcdc730eb14f718c8f | MATLAB | 4,099 | 97 | function [BTA, behaviorCounts, BTA_RMSD, BTA_stats] = ML_BehaviorTriggeredAverage(Behaviors, Stim, bootstrap)
%finds the behavior triggered average, optionally determine the
%significance of the BTA by shuffling transitions randomly and finding
%the BTA; not used in paper
fps = 14;
BTA_seconds_befor... |
72f3b4f024c3ccf1e5ec3a218872381b0266f3933ebbb76036781beb8060ef91 | MATLAB | 4,104 | 92 | function subject_FD_parse_v3(FD_movement_files,skip_seconds,epi_TR,brain_radius_in_mm,varargin)
% Code from OHSU Fair Neuroimaging Lab
% Written (2014) and commented (9/8/2015) by Eric Earl
%
% FD parsing Nipype wrapper pulling in list of motion files
%
% Modified to read (and ignore) DVAR_pre_reg, DVAR_post_reg, and... |
d935593d9d71787a50340cef93ac2869baebc35ada3b99fd1eab91d261a4ff82 | MATLAB | 4,104 | 99 | classdef MLArena < handle
properties
shapeTypeStr;
% The number of reference points, N
numReferencePoints;
% 2xN reference points in the video frame
% (1,:) -> x
% (2,:) -> y
referencePointsVideo;
% 2xN reference points in th... |
f5601ca8522bf30cc9ab21de6f3e3dbcdbdf25b08d9ebe74c71da3c2b4af704e | MATLAB | 4,105 | 140 | close all
clear all
%% create figure 2B
%% janine.thome@zi-mannheim.de
%% paths
pato=['/###/Figures/']; %% add output path
if ~isdir(pato), mkdir(pato); end
%% fig set
fs=16; lw=2;
basevalue=-0.2; %baseline of background color
height=.5; %... |
7462442ae0772b30d1d44b41360ed7785dbfd9f9eb9708b5870ec371f8cc0d08 | MATLAB | 4,106 | 144 | % mglFrameGrab.m
%
% $Id$
% usage: mglFrameGrab()
% by: justin gardner
% date: 08/09/2023
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: does a frame grab of the current mgl screen and
% returns it as matrix of dimensions widthxheightx3
% ... |
7ea9e4a83893805b753f245fae9c429ebd7b959c2159776e690d0c4f14e97363 | MATLAB | 4,106 | 124 | function ax = plotpRFlocOnImage(ax,prfData, stim, mask, hemi)
if strcmp(hemi, 'lh')
xylim = [-1,12];
xyticks = [0 5 10];
elseif strcmp(hemi, 'rh')
xylim = [-12,1];
xyticks = [-10 -5 0];
elseif strcmp(hemi, 'both')
xylim = [-12,12];
xyticks = [-10 -5 0 5 10];
end
% Plot stimulus squares
X = lin... |
f406100a7b9816622a005879f1c26debd2d7157c91155d6b78c1315d83eafcd0 | MATLAB | 4,106 | 119 | function [f2c,c2f,cost] = match_ctrax_to_flytracker(ctrx,ftrx,varargin)
[dummycost,DEBUG,readframe,nfill] = myparse(varargin,'dummycost',100,'debug',0,'readframe',[],'nfill',5);
cnflies = numel(ctrx);
fnflies = numel(ftrx);
nframes = max(max([ctrx.endframe]),max([ftrx.endframe]));
firstframe = min(min([ctrx.firstfram... |
12d828c126a3ebcbd9af5c19b7d95a964d7bcad26911aea19f3714a748d1eac9 | MATLAB | 4,108 | 231 |
% %
% figuring out size of data set
dim = size(data);
t = dim(1); % number of time point
n = dim(2); % number of ROIs
% BG_avg = mean(BG,2);
%
%
% for i = 1:n
% data_mBG(:,i) = data(:,i) - BG_avg;
% end
%
% % %
% %
% % for i = 1:n
% % data(:,i) = data(:,i) + BG_avg;
% % end
% %
% data_mBG_min = mean(data_mBG... |
ebc5d989eaf27a8b8d4455e2f881e6958026c077ceb51696db3ff45ef9c1d81f | MATLAB | 4,111 | 102 | function PlotTimeFrequency(data,label,Fs,LowFreq,HighFreq)
channel = [1:17, 19:30];
MIEEGData = data;
trigger = find(MIEEGData(:,33)==2);
left_MI = zeros(2000,29);
right_MI = zeros(2000,29);
for i = 1:length(trigger)
bp_data = BandpassFilter(MIEEGData(trigger(i)-800:trigger(i)-800+2799,channel)',Fs,LowFr... |
bc7a1355e52b6a2fb8bd3dccb67427831fab06d86f02f674d9413a2bee703d1c | MATLAB | 4,113 | 111 | %% All necessary topoplots
% Load necessary data
addpath Z:\MATLAB\fieldtrip-20210328 %Windows
saveFolder = 'Z:\MATLAB\Perceptual_Load\FieldTrip\Results\group_level\';
ft_defaults
%% RFT
% Load
load([saveFolder 'RFT' filesep 'AVG_all_subs_nl_pow_RFT.mat'])
load([saveFolder 'RFT' filesep 'comb_planar_labels.mat'])
lo... |
7c33e43e26d2388199e4235739e21c278819a2465e944596ff0c73edfc4cbc75 | MATLAB | 4,116 | 126 | % Marc Normandin, Muzzio Lab, Psychological & Brain Sciences, University of Iowa, 2024
function [output] = ml_alg_best_aligned_average_context_maps_for_cell_v3(maps, trialIds, contextIds, comparisonMethod, REFLECT_ONE_CONTEXT)
%%
% sdataMaps should be a MxNxK matrix where K is the number of cells
% sdataCellIds should... |
2cf4f41799f6a972702958fdc0d22d198496e446b6e4c02a253e983f5ab661d2 | MATLAB | 4,117 | 119 |
function varargout = customDialog(type,varargin)
if strcmp(type,'warn')
warnDialog(varargin{:});
varargout = {};
elseif strcmp(type,'wait')
h = waitDialog(varargin{:});
varargout = {h};
elseif strcmp(type,'question')
if nargout == 2
[answer,ticked] = ques... |
3f372ccf14011ccdad96355044540c4623f564b892f18c64df9a4b8cc3ebda4f | MATLAB | 4,117 | 109 | % mglTestAlignment.m
%
% $Id: mglTestAlignment.m 380 2008-12-31 04:39:55Z justin $
% usage: mglTestAlignment(screenNumber)
% by: justin gardner
% date: 09/05/06
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose:
%
function retval = mglTestAlignment(screen... |
f5a57d0a6bf5ffa84d5bc2efb69471b813619ee11473689cc2904cdb877ca23b | MATLAB | 4,117 | 138 | function [] = ExtDataFig01_GrandAverTimeCourse_OptStim_Song_SongDriver
% Code for plotting the time course of pulse and sine song during optogenetic stimulation of the song driver in Extended Data Fig. 1m.
Cond = 'intact';
% Cond = 'decapitated';
switch Cond
case 'intact'
Target = [3,5,7,9];
case 'dec... |
a5067e527fd3ca1bbe5b21c290a0f54b9a90360ab09d41a4564b1bdf94325fef | MATLAB | 4,118 | 109 | % mglTestAlignment.m
%
% $Id: mglTestAlignment.m 380 2008-12-31 04:39:55Z justin $
% usage: mglTestAlignment(screenNumber)
% by: justin gardner
% date: 09/05/06
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose:
%
function retval = mglTestAlignment(screen... |
41d1cf27c1fbe4f29517794d42d33dba6fae8be3f5d03d045cbc07c89878b50a | MATLAB | 4,119 | 113 | function [ LFP ] = extractLFP( obj, data, parameters )
% Extract and visualize LFPs from Percept PC - JSON structure
%
% Syntax:
% [ LFP ] = EXTRACTLFP( obj, data, parameters );
%
% Input parameters:
% * obj - object containg data
% * data - data from json file(s)
% * parameters - recording mode parameters
%... |
938a04b832fcd232e9bf35994e9a128254d85af737415aeac90215ba0e8d87cb | MATLAB | 4,120 | 109 | % Marc Normandin, Muzzio Lab, Psychological & Brain Sciences, University of Iowa, 2024
function [R] = compute_bfo180_similarity_curves_shuffled(analysisSettings, analysisInput)
% If no shuffles are wanted, return an empty table
if isempty(analysisSettings.NORMAL_BFO180_SIMILARITY_NSHUFFLES) || analysisSettings... |
e932bef22c5de82fd53011ce0e9cb97377ed449185e59d9aa683204b901cdae5 | MATLAB | 4,121 | 116 | function [EER, deltaFMR_EER, deltaFNMR_EER, zeroFMR, FMR1000, fpr, fnr, eer_threshold, fmr1000_threshold] = ...
indiciStatisticiIncertezzaVLFEAT(gen_lr, imp_lr, resultTag, dbname, dirResults, plottaROCs, savefile)
%transpose if needed
if size(gen_lr, 1) < size(gen_lr, 2)
gen_lr = gen_lr';
imp_lr = imp_lr';... |
ed38a020c84d79407a61773dc70c713d1709c30c91606381a3c797b7abc8a0b1 | MATLAB | 4,122 | 137 | function [] = ExtDataFig01_TuningCurve_OptStim_Song_SongDriver
% Code for plotting the tuning curves of pulse and sine songs induced by optogenetics in Extended Data Fig. 1m,n.
Cond = 'intact';
% Cond = 'decapitated';
switch Cond
case 'intact'
Target = [3,5,7,9];
case 'decapitated'
Target = [1... |
4344536a2fb46052ace85e7539e9d2c250bae0c29555373acff92baf43873b1c | MATLAB | 4,123 | 114 | % Statistical analysis of findings
%% z-test to compare correlation coefficients
rho_1 = .262; %bring whichever rho you are looking into
rho_2 = .337;
n_1 = 6;
n_2 = 6;
mu_z1 = sqrt(log((1+rho_1)/(1-rho_1)));
mu_z2 = sqrt(log((1+rho_2)/(1-rho_2)));
sigma = sqrt((1/(n_1-3))+(1/(n_2-3)));
Z = (mu_z1 - mu_z2)/sigma;
if... |
f33d0a582cb5e27e39c2b8d1ef4320722ecee73d3a08441e6822b83fde42fb0c | MATLAB | 4,123 | 106 | function [precision, recall, cmat] = svm(numOfReturnedImgs, dataset, queryImageFeatureVector, metric, folder_name, img_ext)
%# load dataset and extract image names
img_names = dataset(:, end);
dataset(:, end) = [];
% extract image name from queryImageFeatureVector
query_img_name = queryImageFeatureVector(:, end);
quer... |
23ca0b53e8eb92104d14ddfb65b1045b5e9c7f2949976c1f93e7fe8879760acb | MATLAB | 4,124 | 102 | % This demo shows how to use the software described in our IJCV paper:
% Selective Search for Object Recognition,
% J.R.R. Uijlings, K.E.A. van de Sande, T. Gevers, A.W.M. Smeulders, IJCV 2013
%%
fprintf('Demo of how to run the code for:\n');
fprintf(' J. Uijlings, K. van de Sande, T. Gevers, A. Smeulders\n');
... |
9713958d49311945cecd1ed040e2291a7f7ac222ba6b6a09889eef86806b842d | MATLAB | 4,124 | 90 | % run amapOFshow
clear all; runMode = 'batch';
globals; initglobals;
PRINT_ERRORS = 0; PRINT_INFO=0; PRINT_NAN=0;
GDEBUGNEW.on = 0; GDEBUGNEW.fig = 33;
if GDEBUGNEW.on, figure(GDEBUGNEW.fig); clf; end;
COMPUTE.sta = 0; % what to compute in amap
DATA_TYPE = 'OF';
DATA_TYPE = 'EM';
PLOT_TYPE = {'tuning'}; %... |
0e744179e32b2d5eae62e5f02ecad6ab57988aa2c8eea1db438d33e0c98ec0a1 | MATLAB | 4,125 | 125 | function [varargout] = funname(varargin)
% SOLID_ANGLE of a planar triangle as seen from the origin
%
% The solid angle W subtended by a surface S is defined as the surface
% area W of a unit sphere covered by the surface's projection onto the
% sphere. Solid angle is measured in steradians, and the solid angle
% corr... |
beff294e43f1d1dcf3ffe6cd09ed6db0be0ecbb633ad695019c05067ea7de6dd | MATLAB | 4,125 | 123 | %% simseq_preprocess_workflow_raw_to_gray.m
%
% Script to preprocess sim seq pilot data.
% Includes the following steps:
% - Initialize (w/ slice timing correction)
% - Motion correct
% - Align inplane to T1w anatomy
% - Convert voxel data to mrVista gray nodes and average/group data
%
% Make sure to remove symbolic t... |
e502449c92c0815c1c02232cc8fdd9621d3240a3598b0ea11e791da4e89d3fbd | MATLAB | 4,126 | 128 | function [fv,W]=QuadQuad(fv,W)
% Subdivide a quadrilateral surface mesh using generalized quadrilateral
% quadrisection. This procedure is similar to generalized triangular
% quadrisection described in the documentation of 'TriQuad' function, the
% only difference being that it uses quad surface meshes as input.
%
%... |
0f3fd6df8ca907235cd8ab6b710c024ef667c3ffeb99cf55d536a8fa2047cf7d | MATLAB | 4,127 | 123 | % computeDFF_user.m
%
% Function that converts background-subtracted fluorescence signal into
% dF/F (for 1 channel data) or dR/R (for 2 channel data) for user selected
% trial folder. Saves processed data in pData file in same folder.
% Note: assumes that every imaging frame should be used for the baseline
% calcul... |
26664ac143f9824509403b2675cc49d9e600af77f99653bcec405fdd3e2c29ab | MATLAB | 4,127 | 103 | % SVM_CLASSIFIER - A function to perform Support Vector Machine (SVM) classification.
% Inputs:
% D: Cell array containing two matrices, where each matrix represents a class
% with neurons as rows and trials as columns.
% iter: Number of iterations for the outer loop (subsampling in case of different trial... |
3d98827daf4c40b55a8c9714a2c734e124d045c4ddb05700c8b131d19f9f0a60 | MATLAB | 4,129 | 108 | % This script assigns coil position, dIdt (for
% electric field), I0 (for magnetic field), and displays the resulting
% head-coil geometry. It may be be executed several times to adjust the
% coil position
%
% Copyright SNM/WAW 2017-2020
addpath('../../../../FMM3D/matlab');
%% Define dIdt (for ele... |
03edecd7aa6074f3d1a04b7f64eee963027ce9a97538ddf61dcfdd77c625b462 | MATLAB | 4,132 | 112 | function [hdr] = read_wdq_header(filename)
% READ_WDQ_HEADER reads header information from wdq files
%
% Use as
% [hdr] = read_wdq_header(filename)
%
% Copyright (C) 2011, Jan-Mathijs Schoffelen
%
% This file is part of FieldTrip, see http://www.ru.nl/neuroimaging/fieldtrip
% for the documentation and details.
%
% ... |
19e9897b18054610d0abb3c5a02083010ebb3a29adbeeb704b4132ba73492992 | MATLAB | 4,134 | 147 | % mglTestText.m
%
% $Id: mglTestText.m 380 2008-12-31 04:39:55Z justin $
% usage: mglTestText()
% by: justin gardner
% date: 05/10/06
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose:
%
function retval = mglTestText(screenNumber,noClose)
% check argumen... |
4701f3d99c172471cebbfc909951ea6fa43a38d060283401281fdd70526e4c26 | MATLAB | 4,136 | 108 | % This script assigns coil position, dIdt (for
% electric field), I0 (for magnetic field), and displays the resulting
% head-coil geometry. It may be be executed several times to adjust the
% coil position
%
% Copyright SNM/WAW 2017-2020
addpath('../../../../FMM3D/matlab');
%% Define dIdt (for ele... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.