sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
f41f85c51b13de74f4e639cc443264b39abe08f725cbe6497f25a8c052331450 | MATLAB | 2,135 | 61 |
%%
clear all
direc='/Users/helge/Library/Mobile Documents/com~apple~CloudDocs/2D_IVIM/20251108_R1_NewOptim_Distributions/20251112_Liver_largerTE_conB_D_Phantom_Model_2d_b_set_'
n_splits ={'100','200','300','400','500','600','700','800','900','1000'};
n_splits ={'100','200','300','400','500','600','700','800','900',... |
2c5bd7176c52ace53698cd41233ab8e43c4509a4410343cfbbffb547458fbf2a | MATLAB | 2,136 | 64 | function directions = setDirections(cfg)
%
% directions = setDirections(cfg)
%
% Compute the directions to be displayed
% in a matrix of size ``nbBlocks`` by ``nbEventsPerBlock``
%
% condition1 = 'static';
% condition2 = 'motion';
%
%
% (C) Copyright 2020 CPP visual motion lo... |
3016f8cedd37f7d4896140c7abf3a7d9e8ead5a664fd46fd08b52546f09d5f1e | MATLAB | 2,136 | 77 | function [out_img,n_dim,vecs,vals,mu] = mnf(in_img,frac)
%
%function [y,n_dim,vecs,vals,mu] = mnf(x,frac)
%
% Maximum Noise Fraction transform for hyperspectral images
% (actually a more useful minimum noise variant,
% returns bands ordered by minimum noise fraction/max SNR)
% transforms input image using MNF, redu... |
0911787100e75a567dbbd013c1b3b751c33619304bd35b1092b8383a25662b99 | MATLAB | 2,137 | 62 | function [y2x,n]=surfing_invertmapping2(x2y,ymask)
% inverts a (possibly non-injective) mapping from N1 to N1, where N1 is the
% set of positive integers.
%
% [Y2X,NX]=SURFING_INVERTMAPPING(X2Y)
% INPUT:
% X2Y: NxK vector with postive (>=1) integer values
% YMASK: Optional S-element vector with mask of values in... |
a706c7a8ced4eb232242e5d07eb2193cd0f1c680f11d0f97ead25870b18b413c | MATLAB | 2,138 | 64 | function [chunkSize,summary]=chunkh5(filepath,maxRAMfactor,varargin)
% HELP
% Determines the chunk size to load H5 without exceedint the maxRAMfactor limit e.g. 0.1 for 10% of remaining RAM.
% SYNTAX
%[chunksize,summary]= chunkh5(filepath,maxRAMfactor) - use 3, etc.
%[chunksize,summary]= chunkh5(filepath,maxRAMfactor,'... |
2ba00460487f8e51e886f972536e19d0ded16878d87926a74c465a3e798916e0 | MATLAB | 2,139 | 55 | % Regenerates the STTC ground-truth fixtures used by test_pipeline_step3.py.
%
% Calls MATLAB's own get_sttc.m (the deterministic, unthresholded STTC
% computation) directly on the reference spike times in OutputData03Mar2026,
% and saves the resulting adjacency matrices as .mat files. These are then
% converted to .np... |
8849ce0937a4f32e8e160cc9b1bc131054f14b332387b6a229e1cc5cc628edcb | MATLAB | 2,139 | 65 | % op_dccorr.m
% Jamie Near, McGill University 2014.
%
% USAGE:
% [out,dcOffset]=op_dccorr(in,mode,var1);
%
% DESCRIPTION:
% Do a DC Correction on the data. This method is a frequency domain
% operation.
%
% INPUTS:
% in = input data in matlab structure format.
% mode = ppmrange('p') or Value('v'). In ppmrange mo... |
a3b43985b4ebfee2d6491bee9577a048ee4a3f04e5c2f47923c7a146e493a185 | MATLAB | 2,139 | 57 | function spharm(input_img, L)
%
% Input: input_img <string> fullpath to T1 MRI image to be segmented
%
% This function constructs the weighted-SPHARM representation from the cortex
% surface (output of read_cat.m). It does the follwoing:
% 1. Reads the cortex surface.
% 2. Computes spherical harmonics Y_lm from... |
a4e32371dd857c2e80adb0a6d9efae1f3dca04489847e1ed32e5cf8b1ba9e215 | MATLAB | 2,139 | 59 | function eventInfo = loadEventTimes(datasets, dataPath)
% Load all desired datasets and extract the single trial event times for
% relevant fields
% Loop over datasets
eventInfo = [];
count = 1;
for dataset = datasets
% Load
R = loadCombinedDataset(dataset, dataPath);
% Choose trials
R = R([R.succ... |
b897376c5fcd8c7cb209d1331f9ff52c8845bf58f4ff27294ea9f9d9d4419a3d | MATLAB | 2,139 | 57 | % READTXTFILE - Read text file into a Matlab variable
%
% Usage: >> str = readtxtfile( filename );
%
% Input:
% filename - [string] name of the file.
%
% Output:
% str - [string] content of the file.
%
% Author: Arnaud Delorme, SCCN / INC / UCSD, August 2009
% Copyright (C) Arnaud Delorme, August 2009
%
% This fil... |
6f57b8c97bb21835b6adc06f5397afb22649482dcc7d8edc381c19cf996c4390 | MATLAB | 2,140 | 75 | function tests = tapas_physio_conv_test()
% Tests whether current PhysIO's own convolution fulfills specifications,
% i.e.
% 1) is causal (i.e., response starts only at t=0 of the input) in the
% 'causal' setting, and
% 2) is symmetric in the symmetric setting (i.e.,
% response function centered around ... |
71e03383f4f7c0ebd776aecedc96b6b8850e362b9061533755e405ac4659cb90 | MATLAB | 2,140 | 67 | function plotVEvsVar(outputs, field)
% Colormap
proxcol = [215, 15, 175]/255;
distcol = [255, 160, 25]/255;
% Figure
fig;
hold on
axis off
% Params
markers = {'s', 'x', '+', '*', 'o'};
kinematicField = 'data';
jointsP = 1:7;
jointsD = 8:24;
count = 1;
for output = outputs
marker = markers{count};
% Plot eac... |
81f835f0d5372caf488c61fa95f85a4e66cc1db979a6e917a9d45385f39531fb | MATLAB | 2,142 | 62 | function [path,prev] = search_BF(g,startNode,maxIter)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% SEARCH_BF finds connected components utilising the Breadth-First search
% algorithm.
%
% Arguments:
% g: Graph or adjacency matrix.
% startNode: Index of node with which the BFS ... |
bb5543117194f7a8e9dc731f35a4457a4453c778313aa0b9a7a294f19a48928c | MATLAB | 2,142 | 61 | function value = loadvar(filename, varname)
% LOADVAR is a helper function for cfg.inputfile
%
% See also SAVEVAR
% Copyright (C) 2010, Robert Oostenveld
%
% This file is part of FieldTrip, see http://www.fieldtriptoolbox.org
% for the documentation and details.
%
% FieldTrip is free software: you can redistribut... |
bdbd4f69871d0c111727ad6ae0d609f51734e65c57e09c4659b15b33fbe840e5 | MATLAB | 2,142 | 54 | function waterAmpl = osp_importfile_waterAmpl_Tarquin(filename, startRow, endRow)
%IMPORTFILE Import numeric data from a text file as a matrix.
% waterAmpl = IMPORTFILE(FILENAME) Reads data from text
% file FILENAME for the default selection.
%
% waterAmpl = IMPORTFILE(FILENAME, STARTROW, ENDROW) Reads
% data f... |
bfb8d55cb57d8b69ad51e9b16245e8fd4f8e52a8bea0a6f0720bc6e212f86d98 | MATLAB | 2,142 | 57 | function data = osp_import_Tarquin_data_fit_baseline(filename, startRow, endRow)
%IMPORTFILE1 Import numeric data from a text file as a matrix.
% data = IMPORTFILE1(FILENAME) Reads data from text
% file FILENAME for the default selection.
%
% data = IMPORTFILE1(FILENAME, STARTROW, ENDROW) Reads
% data from rows... |
0ea5e9f8a2b20255504c352c5e160a0a33d71c376cee29f9f072f390040ccca2 | MATLAB | 2,143 | 72 | function [clout,testclass] = simple_knn(data,clas,k,varargin)
% function [clout,testclass] = simple_knn(data,clas,k,[test set])
% used in tor_knn
% tor wager
% prior class probabilities - percentage of points in each class
for i = 1:max(clas), pcl(i) = sum(clas == i);, end
pcl = pcl ./ sum(pcl);
% weights for each cl... |
50b7d07b13aacbc8516257a629a5288062d51ef9aba6bd9624a781ddc9b01dbe | MATLAB | 2,144 | 42 | % STD_READITC - load ITC measures for data channels or
% for all components of a specified cluster.
% Usage:
% >> [STUDY, itcdata, times, freqs] = ...
% std_readitc(STUDY, ALLEEG, varargin);
%
% Note: this function is a helper function that contains a call to the
% std_read... |
d4501e4e862957455a0150c3279854570112a1514a1f1894ebd8cba5828b9aee | MATLAB | 2,144 | 71 | function X = tapas_uniqc_create_image_with_index_imprint(X)
% Creates image with imprinted index of 3rd..nth dimension on each 2D slice
% (1st and 2nd dim are considered a slice)
%
% X = tapas_uniqc_create_image_with_index_imprint(X)
%
% NOTE: This function needs Matlab's Computer Vision System Toolbox for
% ... |
bdb63092c37dcf95e4b70650071898ceedc5ddb9b3dbaba37ee3ace297126b8a | MATLAB | 2,146 | 49 | function rsc_dist = get_rsc_dist(spktr, neuron_indices, dist_max, grid_size, bin_subdivisions)
% GET_RSC_DIST
% Syntax:
% rsc_dist = get_rsc_dist(spktr, neuron_indices, dist_max)
% rsc_dist = get_rsc_dist(spktr, neuron_indices, dist_max, grid_size, bin_subdivisions)
% Description:
% Compute mean pairwise spike-co... |
a0c01b3a23b3a49b545f2686043af403e3e3c9c3c52d351bb141795b70421c7a | MATLAB | 2,147 | 70 | colors = struct();
%% behavior events color code
colors.IntruderIn = [147, 44, 255]./255;
colors.NoseSniff = [190, 133, 255]./255;
colors.IntruderOut = [.5 .5 .5];
colors.FoodSniff = [255, 176, 0]./255;
colors.FrootloopIn = shade([255, 176, 0]./255,0.5);
colors.Photostim = [255 96 96]./255;
colors.photostim = [... |
a9e2539bba92e7dca4a69fd51ebec89f3303113494e8bcb4a509d55c27e2a844 | MATLAB | 2,147 | 43 | function data = nsd_et_import(files2importSamples,data, settings)
% ----------------------------------------------------------------------- %
% import all eye-tracking ascii files. MN, July 2021
% ----------------------------------------------------------------------- %
cRun = settings.cRun; cSub = settings.cSub;... |
4a3eef111d604c7c1f03696556bcee17190436703f8b2e0dc784d3d4dd38c79f | MATLAB | 2,148 | 84 | % op_zeropad.m
% Jamie Near, McGill University 2014.
%
% USAGE:
% out=op_zeropad(in,zpFactor);
%
% DESCRIPTION:
% Apply zeropadding (a.k.a. zero-filling) to MRS data.
%
% INPUTS:
% in = input data in matlab structure format.
% zpFactor = the factor by which the number of points in the fid will be
% ... |
cbd80664197f3e869279adce8f5f3c8b27d744d5bf568050e5674182063480d1 | MATLAB | 2,149 | 46 | function [optimalThreshold, maxSENSAIScore] = SENSAI_fminbnd(minThreshold, maxThreshold, refCOV, Eval, Evec, noise_multiplier, COV, evecs_Template_cov, signal_type, SSI_top_PCs)
max_number_of_epochs = 500; % if EEG recording is long (default = 500 epochs)
number_of_epochs = size(COV, 3);
if number_of_epochs > max_nu... |
a94ac760f3dfde013befeec25f5a4a22863b3d4306ec4bbd2969b3668e9c6710 | MATLAB | 2,150 | 70 | function [BA,gray,prange,num,tx,ty,tz,subc] = read_talairach_daemon(infile,varargin)
% function [BA,gray,prange,num,tx,ty,tz,subc] = read_talairach_daemon(infile,[opt] print text table)
%
% reads output from Talairach Daemon Database (v1.0)
% and outputs BA (Brodmann area), range from nearest label, and gray matter sta... |
ea980c028fbf8b62a37ebb92accbaa11aa36e4af0aac733c7b45deb8fc0d00f4 | MATLAB | 2,150 | 73 | %% sepia_universal_variables
%
% Description: a script contains all the method names and related function
% names
%
% Kwok-shing Chan @ DCCN
% k.chan@donders.ru.nl
% Date created: 6 March 2020
% Date modified: 6 May 2021 (v0.8.1.1)
% Date modified: 7 June 2021 (v1.0)
% Date modified: 4 August 2021 (v1.0.1)
% Date modif... |
077140fe8170f9f1ee16121f6efba01ec1084c3c9cab175e261e63e2bfeed98d | MATLAB | 2,151 | 50 | % COVARY - For vectors, covary(X) returns the variance of X.
% For matrices, covary(X)is a row vector containing the
% variance of each column of X.
%
% Notes:
% covary(X) normalizes by N-1 where N is the sequence length.
% This makes covary(X) the best unbiased estimate of the ... |
8b314ecc37d39140ca77e9dabae1e041709621ddb39c387e5382bc70530dec09 | MATLAB | 2,151 | 89 | function run_nbs(filename,threshold,designMatrix,nodecoor,nodelabels)
h = figure;
close(h)
clear nbs
clear UI
UI.alpha.ui = '0.05';
% Scalar
% Significance (alpha threshold).
% See also NBSstats
UI.method.ui = 'Run NBS'; %| 'Run FDR'
% Perform NBS or FDR?
UI.test.ui = 't-test'; %| 'F-test' | 'One Sample... |
9f8af1a1748bc5349759b71b9207ffe259ce61b37f0e46828702890945d307fd | MATLAB | 2,151 | 68 | % rcepsminphase() - Convert FIR filter coefficient to minimum phase
%
% Usage:
% >> b = minphaserceps(b);
%
% Inputs:
% b - FIR filter coefficients
%
% Outputs:
% bMinPhase - minimum phase FIR filter coefficients
%
% Author: Andreas Widmann, University of Leipzig, 2013
%
% References:
% [1] Smith III, O. J. (20... |
1f8a665080cb64337f418e1a1f4c26f3a22fc2043b0514faeff7fcf5414b8c05 | MATLAB | 2,153 | 63 | function approxhess = getApproxHessian(problem, x, d, storedb, key)
% Computes an approximation of the Hessian of the cost fun. at x along d.
%
% function approxhess = getApproxHessian(problem, x, d)
% function approxhess = getApproxHessian(problem, x, d, storedb)
% function approxhess = getApproxHessian(problem, x, d,... |
95a84dfb10f80a3f8b14ace02884f4bf355c1f6b76eff8cad5b81bd654dae2bf | MATLAB | 2,153 | 95 | %% [r2s,t2s,m0] = R2star_regression(img,te,mask,isParallel)
%
% Input
% --------------
% img : multiecho images, time in last dimension
% te : echo times
% mask : signal mask
%
% Output
% --------------
% r2s : R2* map
% t2s : T2* map
% m0 : M0, T1-weighted i... |
a57fe2a7079c8856a7c059bf42cf9e9d8c58bc27bb25a1f893ae45a18522e851 | MATLAB | 2,153 | 49 | function ProcessData_ExtendedData1(datadir, savedir, codedir)
%ProcessData_ExtendedData1 - Process raw data saved under datadir such that it can be plotted by PlotExtendedData1.
% INPUTS:
% datadir - Local directory where 'Golden_Nature/RawData_ExtendedData1.mat' from Zenodo was saved
% codedir - Local directory wh... |
ca4e10a3126857e9dcbad6a8f2f33a84fbca30fd5d611a101171ac56d56f880c | MATLAB | 2,153 | 62 | % pop_kaiserbeta() - Estimate Kaiser window beta
%
% Usage:
% >> [beta, dev] = pop_kaiserbeta; % pop-up window mode
% >> beta = pop_kaiserbeta(dev);
%
% Inputs:
% dev - scalar maximum passband deviation/ripple
%
% Output:
% beta - scalar Kaiser window beta
% dev - scalar maximum passband devi... |
e80b6c8328dad73ac98847b33c3bf8595b81223dc36354215a32620cb91baaf5 | MATLAB | 2,153 | 64 | function this = MrAffineTransformation_transformation(this)
% Unit test for MrAffineTransformation applying transformations
%
% Y = MrUnitTest()
% run(Y, 'MrAffineTransformation_transformation')
%
% This is a method of class MrUnitTest.
%
% IN
%
% OUT
%
% EXAMPLE
% MrAffineTransformation_transformation
%
% See ... |
762b59ba38aac9db3252304711c7da2912729c35814ab6c5e342e523380bc240 | MATLAB | 2,154 | 87 | radius=50;
radiusunit='vx'; % vx or mm
hemi='l'; % left hemisphere
centercount=NaN; % number of searchlight centers; NaN for all
% input directories
rootdir='/Users/nick/organized/_datasets/fingerdata-0.3/'; %'../../surfing_exampledata/';
indir=[rootdir 'glm/']; % input dir
outdir=indir;
voxselfn=... |
90cd6863054f0d50a9af9dc5d9f699cfc2a9cc78b18f2c7804073343812eeb50 | MATLAB | 2,155 | 68 | function [DA, AUC, yint, slope] = delay_effect_stages(bstruct, ...
pstruct, block, event, delaybins, window, Stages)
%block = 1, 2, or 3
%delays_rats = empirically determined delay bins
yint = NaN(1, 2);
slope = NaN(1, 2);
bins = delaybins;
%initiate variables
DA = cell(length(Stages), length(bins));
AUC = NaN(... |
98a17eef28cbe5ed692c99d2eadc697e0fa6296a6a89df1a34175045cda8207e | MATLAB | 2,155 | 67 | function [newVol, xyz, labels, labelsstr ] = load_afni_atlas(sourcemodel, headmodel, sourcemodel2mni, downsample)
afni = ft_read_atlas(sourcemodel);
vol = afni.brick1(:,:,:,1);
labelsstr = afni.brick1label;
sub = downsample; % Subsample by 4
newVolCell = cell(ceil(size(vol)/sub));
for x = ... |
1307dccde24827418759bb768ba28d8ee8e8a51fdc8834623129419f5f7927cb | MATLAB | 2,156 | 63 | function [logp, yhat, res] = tapas_rs_precision_whatworld(r, infStates, ptrans)
% Calculates the log-probability of response speed y (in units of ms^-1) according to the precision
% model introduced in:
%
% Vossel, S.*, Mathys, C.*, Daunizeau, J., Bauer, M., Driver, J., Friston, K. J., and Stephan, K. E.
% (2013). Spat... |
31bd5dada6abe1776d493f390d8674fab154682cab0591321e59ebd86de4eb7d | MATLAB | 2,156 | 61 | clear all
close all
clc
exp_root = 'C:\Users\User\Documents\fMRI_EXP\';
more_code = fullfile(exp_root, 'cells_data_muller');
data_folder = fullfile(more_code, 'wetransfer_neil-s-data_2023-09-25_1057');
addpath(genpath(more_code));
addpath(genpath(data_folder));
grid_rats = [1, 3];
num_grid_rats = length(grid_rats);
... |
8fd59a29ac14b50d17dd01a0fc3360945e7426d158db7567129c5ce46d643e55 | MATLAB | 2,156 | 56 | % intersect_bc - intersect backward compatible with Matlab versions prior to 2013a
% Copyright (C) 2013 Arnaud Delorme
%
% This file is part of EEGLAB, see http://www.eeglab.org
% for the documentation and details.
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted pro... |
a6f374a693613ece1bb32bf57f4800af5329065af5a723ffed057892dfeb58d6 | MATLAB | 2,157 | 63 | function run_gaussian_noise_simulation(params, options)
% RUN_GAUSSIAN_NOISE_SIMULATION - Run with Gaussian noise modulation
%
% H1 Line: Execute simulation with Gaussian noise on inputs
%
% Syntax:
% run_gaussian_noise_simulation(params, options)
%
% Description:
% Runs simulation with temporally correlated Gaussi... |
f6af3c66113df6e7e06fc17c34fff127e4fbe8669bd08e7a9ed93361aff6c901 | MATLAB | 2,157 | 62 | % eegplugin_cleanline() - EEGLAB plugin for removing line noise
%
% Usage:
% >> eegplugin_cleanline(fig, trystrs, catchstrs);
%
% Inputs:
% fig - [integer] EEGLAB figure
% trystrs - [struct] "try" strings for menu callbacks.
% catchstrs - [struct] "catch" strings for menu callbacks.
%
% Notes:
% T... |
63c4d4192179152184d12342247dcaf40bb37ece5f69bdf1a78eb5b95d64d349 | MATLAB | 2,159 | 68 | classdef LossSmoothL1 < dagnn.Loss
%LossSmoothL1 Smooth L1 loss
% `LossSmoothL1.forward({x, x0, w})` computes the smooth L1 distance
% between `x` and `x0`, weighting the elements by `w`.
%
% Here the smooth L1 loss between two vectors is defined as:
%
% Loss = sum_i f(x_i - x0_i) w_i.
%
% where f is the func... |
0a0c04f1b8448168d7b20c26c3f98a9a09ac897708449305d50c9d0cf37dbc5e | MATLAB | 2,160 | 52 | %% AnalyzeFineDistanceData
basePath = 'D:\Data\Lobster\FineDistanceResult_other_decoders';
behavDataPath = 'D:\Data\Lobster\BehaviorData';
filelist = dir(basePath);
sessionPaths = regexp({filelist.name},'^#\S*.mat','match');
sessionPaths = sessionPaths(~cellfun('isempty',sessionPaths));
load("Apparatus.mat");
px2cm ... |
0b286d0bbb9c21ec6576117256579b271bf396bfe3c6bb498bf18e1774db47f6 | MATLAB | 2,160 | 90 | function [inference] = tapas_linear_inference(inference, pars)
%%
%
% aponteeduardo@gmail.com
% copyright (C) 2016
%
if ~isfield(inference, 'estimate_method')
inference.estimate_method = @tapas_mcmc_blocked_estimate;
end
if ~isfield(inference, 'initialize_states')
inference.initialize_states = @tapas_linear_... |
489610d462780501bad4dfc00e67a70b0f49ac711bbbc4481d138fe1d405de6e | MATLAB | 2,160 | 51 | function [] = orient_to_odorant (plate_orientation)
%% orient_to_odorant adjusts x/y coordinates of tracked worms (in cm)
%% based on the direction of the location of experiments or control ports
global info
global tracks
global vals
plate_orientation(plate_orientation>0)=-1; %Value = 1, experimental port = L
plate... |
51e6a2a102772b5a988b49fdd9bb77248fc3e010caa37d7c4be502359fdf76d6 | MATLAB | 2,160 | 75 | %% Load and preprocess data (30 minutes each to balance across mice)
mouse_data_files = {
'Y:\Alice\0012_NeuroGI\NeuroGI_ephys_data\2024-09-24 Experiment\iv13-wt-01.mat',...
'Y:\Alice\0012_NeuroGI\NeuroGI_ephys_data\2024-09-25 Experiment\iv13-wt-03.mat',...
'Y:\Alice\0012_NeuroGI\NeuroGI_ephys_data\2024... |
23d0b7452938f29fa4655d55a6856fe612a23c1a6ee2c76ffede91ef9e67a1f6 | MATLAB | 2,161 | 96 | function [output]=functionTemplateSIA(input,varargin)
% GOAL: Batch process all data. Assume that all metadata have been
% generated
%
% INPUTS
% - input: the input variable
% OUTPUTS
% - output: the output variable
% OPTIONS
% - 'option1' : to set option1 (default: true)
% EXAMPLE
% [output]=functio... |
26ac6707c8988007948999ec44ebfdd24d2f056e98ffd431e8f85c81ba9c4023 | MATLAB | 2,161 | 70 | function originIndex = get_origin(this, iDims, voxelOrVolumeSpace)
% returns (also fractional) index of samplingPoint with value [0 0 ... 0]
% for nifti counting, i.e. the first sample is [0 0 0 ...], whereas matlab
% starts counting a [1 1 1 ...]
%
% Y = MrDimInfo()
% originIndex = Y.get_origin(iDims)
%
% This is ... |
84f0d470b5136f0e68e335cb754841c6fded6bdf594791d803185007aaf5ec74 | MATLAB | 2,161 | 84 | function R = test06()
% function R = test06()
%
% Test case for the Stiefel manifold, applied to Cryo-EM problem.
%
% This file is part of Manopt: www.manopt.org.
% Original author: Nicolas Boumal, Dec. 30, 2012.
% Contributors:
% Change log:
% Load the data
data = load('cryoemdata500_SNR03.mat', 'S');... |
3d3fb991d504c04caffb583acf0ecbb5438172c4be6de26893a06267bb7cb54e | MATLAB | 2,162 | 87 | radius=50;
radiusunit='vx'; % vx or mm
hemi='l'; % left hemisphere
centercount=NaN; % number of searchlight centers; NaN for all
% input directories
rootdir='/Volumes/organized/116_surfing_toolbox/fingerdata-0.2/'; %'../../surfing_exampledata/';
indir=[rootdir 'glm/']; % input dir
outdir=indir;
vo... |
78fee06b8679d039f3841a0be8ffc7df7f85e62f132e65ef1564fdd442b35065 | MATLAB | 2,162 | 62 | function [controller_start, controller_fs] = extractControllerClock(fileID)
% Collects the start and sample rate of the recording stream from the saved
% test file sync_messages. Updated 08/2024 SSS
% Input:
% fileID: file to open
% Output:
% controller_start: time of data stream start in sample number
% contr... |
2b3eb3b7ec2835093f07320cb396fc875065e22965fef558598c8b3091fc5318 | MATLAB | 2,163 | 53 | %{
# Trace corresponding to <module>.Activity.Trace
-> fuse.Activity
unit_id : int # unique per scan & segmentation method
%}
classdef ActivityTrace < dj.Computed
methods(Access=protected)
function makeTuples(self, key)
% %!!! compu... |
6536e1d4896fb9db2cbbb7b7497ab247d2247f48cc40be10170ec26be8904c35 | MATLAB | 2,163 | 77 | function [fh yMin, yMax] = tapas_uniqc_plot_abs_image(Y,iDynSli,fh, yMin, yMax, ...
colorMap, colorBar)
%simple plotting routine for one dynamic within a 3D-dataset
%
% [fh yMin, yMax] = tapas_uniqc_plot_image_diagnostics(Y,iDynSli,fh, yMin, yMax)
%
% IN
% Y [nVoxelX nVoxelY, nSlices, nVolumes] real v... |
de2bf5cf69887a183acab063ec6cc99444d40fa21f213f5b6163ba2c39f82b34 | MATLAB | 2,163 | 66 | function [p, Q Qnew]= chi2test(x)
% Usage: [p, Q]= chi2test(x)
%
% The chi-squared test.
%
% Given a number of samples this function tests the hypothesis that the samples are
% independent. If Q > chi2(p, nu), the hypothesis is rejected.
%
% Each column represents a variables, each row a sample.
%
% If you fin... |
c2117380519be77ed01d41bc778149ef1d893647cecf4e31608d2e3f1268cb7f | MATLAB | 2,164 | 46 | % Toolbox Fast Marching - a toolbox for the computation of the Fast
% Marching algorithm both in 2D and 3D.
%
% The Fast Marching algorithm, introduced by Sethian (1996) is a numerical
% algorithm that is able to catch the viscosity solution of the Eikonal
% equation |grad(D)|=P. The level set {x \ F(x)=t} can be seen ... |
d90a6367c28d1e06eba91844070eb9291075c13a3fa3fe5c4e36d19dc920a41b | MATLAB | 2,164 | 81 | function dimInfo = make_dimInfo_reference(~, varargin)
% create a dimInfo reference object for unit testing
%
% Y = MrUnitTest()
% Y.make_dimInfo_reference(do_save, fileName)
%
% This is a method of class MrUnitTest.
%
% IN
%
% OUT
%
% EXAMPLE
% make_dimInfo_reference
%
% See also MrUnitTest
% Author: Saskia... |
4a1494d24dc44ca9fe2b9a0f287cd27a9da6057e75edee54bc31da26a95c6c3b | MATLAB | 2,167 | 77 | function this = MrDataNd_arithmetic_operation(this, testVariantArithmeticOperation)
% Unit test for MrDataNd for arithmetic operations (perform binary
% operation)
%
% Y = MrUnitTest()
% run(Y, 'MrDataNd_arithmetic_operation')
%
% This is a method of class MrUnitTest.
%
% IN
%
% OUT
%
% EXAMPLE
% MrDataNd_arithme... |
e0241b4837ec0f38ffc7bfefe85be14d65f16777d38af10ed500e873c3031830 | MATLAB | 2,168 | 86 | % op_freqrange.m
% Jamie Near, McGill University 2014.
%
% USAGE:
% out=op_freqrange(in,ppmmin,ppmmax);
%
% DESCRIPTION:
% Output only a specified frequency range of the input spectrum.
%
% INPUTS:
% in = input data in matlab structure format.
% ppmmin = minimum extent of frequency range in ppm.
% ppmmax... |
c77b0dd0e013dc70b9486d17efc61c6e58efb92b6354d55d54a493dc82fb3b17 | MATLAB | 2,169 | 70 | function [results] = analysis01C(config)
% Runs analysis 1A: control analysis, examining the extent to which psi of
% the reservoir forecasts are driven by autocorrelation.
% Parameters
% ----------
% config : struct with fields trainTime (int), testTime (int), nTest (int),
% reservoirProperties (cell with name-value p... |
d12429fd97a4612a7be32a70ef7fe0b3247cc69278b756760e414ba41682e6df | MATLAB | 2,169 | 78 | function new = DBDuplicate(old,new,varargin)
%DBDuplicate - Duplicate database.
%
% USAGE
%
% name = DBDuplicate(old,new)
%
% old database to duplicate
% new new database name (see NOTE below)
%
% NOTE
%
% Database names can include wildcards to indicate current date and time:
%
% ... |
09ab5e1817fbd54c7e16dd22649ddd7678e2ae21b37d4808a466ccfe98bd9eb7 | MATLAB | 2,170 | 48 | function tapas_rw_binary_plotTraj(r)
% Plots trajectories estimated by tapas_fitModel for the tapas_rw_binary perceptual model
% Usage: est = tapas_fitModel(responses, inputs); tapas_rw_binary_plotTraj(est);
%
% --------------------------------------------------------------------------------------------------
% Copyri... |
1f1afe10b480754736d40bcc98d96029b456a099637c459a763e472c37378e27 | MATLAB | 2,170 | 79 | function imageGeom = make_imageGeometry_reference(this, varargin)
% create a MrImageGeometry reference object for unit testing
%
% Y = MrUnitTest()
% Y.make_imageGeometry_reference(do_save, fileName)
%
% This is a method of class MrUnitTest.
%
% IN
%
% OUT
%
% EXAMPLE
% make_imageGeometry_reference
%
% See also... |
8411504ef2ad0f8abe1d38ec1e365c5e4fdd3be02d65a3df1b548457fe03b297 | MATLAB | 2,170 | 74 | % ===== FEATURE EXTRACTION (your style, pick one CNN) =====
% === USER: EDIT THESE TWO LINES BELOW ===
modelName = 'efficientnetb0';
% <- choose: 'efficientnetb0','resnet18','resnet50','resnet101','googlenet',
% 'inceptionresnetv2','alexnet','darknet19','darknet53'
dataFolder = 'C:\YOUR\PATH\TO\DATASET';
% <- FUL... |
beba35635c5049d5b952c81846e985d7760099e0df98489e1295a5646d0029c8 | MATLAB | 2,173 | 69 | function herr = plotBoxChartWithDots(plotdat,xdat,colormat,plot_lines,plot_sig,plot_sig_diff,plot_exact,maxdat,maxdat2)
if nargin<9
estim_maxdat2 = true;
else
estim_maxdat2 = false;
end
if nargin<8
estim_maxdat = true;
else
estim_maxdat = false;
end
... |
cd30ffa13615cb0c73bc7c550746d801e2a66bc30b13c2ae2e397fc67fcda80d | MATLAB | 2,173 | 72 | classdef image < brca.format.base
properties
fileformat = 'pgm'
type = 'single'
end
methods
function obj = image(fileformat)
if nargin > 0
obj.fileformat = fileformat;
end
end
function data = read(obj,array,varargin)
... |
e5e43908f6a698484b29daf6fe76c54bb09afba764ea0c82aaf3213fa9d32ad7 | MATLAB | 2,173 | 112 | function [results] = tapas_ti_example()
%% This script simulates data from different models and checks where it comes
% from.
%
% Input
% mi Model to be used for inversion
% session Session of the experiment (either 1 or 2)
% block Block of the experiment, either 3, 4 or 5
% sbj Sub... |
23056544805b767e2f8e2ed5209c1cb41db0419ff64a4120d6e1df1c0f683af9 | MATLAB | 2,174 | 58 | function msSEI_FC_PLV_impl(params, trials, fileName_ec)
% computes PLV
% (c) Jiri, Dec23
nCh = size(trials.data,2);
nClz = length(unique(trials.labels));
FC_freqBands = params.connectivity.freqBands;
M = nan(nCh,nCh,size(FC_freqBands,1),size(trials.data,1),nClz); % 5D: [ch,ch,f,t,clz]
%% -----------PLV: for FB ... |
f0fe9d5a5d3898edb534d56f0d1c4a511e70c140ce84c5acc21fe25ce1550f93 | MATLAB | 2,174 | 65 | function outputImage = set_geometry_property(this, varargin)
% Allows the setting of specific values in the geometry.
%
% Y = MrImage()
% Y.set_geometry_property(inputs)
%
% This is a method of class MrImage.
%
% NOTE: This is a method of MrImage rather than MrImageGeometry, because
% the latter is composed o... |
422ba9bfe347433c2cd7ad5c9eb863ac789e8af21f077c8a35d667d10ff1e191 | MATLAB | 2,175 | 55 | function nii_hdr_ext = osp_generate_nii_hdr_ext(in,OspreyVersion)
%% nii_hdr_ext = osp_generate_nii_hdr_ext(in,OspreyVersion)
% This function creates the NIfTI header extension for NIfTI-MRS
% following the standard described in "Clarke WT, Bell TK, Emir UE,
% Mikkelsen M, Oeltzschner G, Shamaei A, Soher BJ, Wils... |
1b32df84ace1a39c001050d00cbf369cd8efed1c67bfcb834fed39a71f5ece29 | MATLAB | 2,178 | 48 | function tapas_sutton_k1_binary_plotTraj(r)
% Plots trajectories estimated by tapas_fitModel for the tapas_rw_binary perceptual model
% Usage: est = tapas_fitModel(responses, inputs); tapas_rw_binary_plotTraj(est);
%
% --------------------------------------------------------------------------------------------------
%... |
6836ba0d5e6521452643cc1b35d2e8ba036aae2a7039962dbcfea601c3f51fa6 | MATLAB | 2,180 | 67 | function s = hlp_handleerror(e,level)
% Displays a formatted error message for some error object, including a full stack trace.
% hlp_handleerror(Error, Indent)
%
% In:
% Error : error object, as received from lasterror or via a catch clause
% (if omitted, lasterror is used)
% Indent : optional inden... |
cca0ea013692b149172f4a761d70cf0d3427bbe7df8aaff9e47b8dccc8ca0e70 | MATLAB | 2,180 | 67 | function samplingPoints = index2sample(this, arrayIndices, iDims)
% Returns index (coordinate) as given by dim-info for specific voxel samplingPoints
%
% Y = MrDimInfo()
% samplingPoints = Y.index2sample(arrayIndices, iDims)
%
% If the samplingPoints-arrays are filled explicitly, these values are taken. If
% not, t... |
1f1172194ea95c28288f892959224e9672c7ba5c95fb470c10e4c5d4ccc43210 | MATLAB | 2,181 | 63 | function [ output_args ] = SVD_ASSEMBLY_DETECTION( SPIKE_PROBABILITY_RASTER_file )
%SVD_ASSEMBLY_DETECTION( SPIKE_PROBABILITY_RASTER_file )
%
%
% === Jan Moelter, The University of Queensland, 2018 ===================
%
narginchk(1,1);
fprintf( 1 , [ '\n' ] );
timerVal = tic;
%% > PRINT FUNCTION-CALL
if( isdeploy... |
cd23e0fa8b6fb895d6dd6cd109b3b9895fd9da78795fffbbde33377ebe4a06f7 | MATLAB | 2,181 | 67 | function [K,dK] = covNNone(hyp, x, z)
% Neural network covariance function with a single parameter for the distance
% measure. The covariance function is parameterized as:
%
% k(x,z) = sf2 * asin(x'*P*z / sqrt[(1+x'*P*x)*(1+z'*P*z)])
%
% where the x and z vectors on the right hand side have an added extra bias
% entry... |
82408f96e30f00a3dfa6b09f0d0e0bef7fda0c09a2f0fe1c4ecb7eecc70bc939 | MATLAB | 2,184 | 89 | function h = plot_mesh(vertex,face,options)
% plot_mesh - plot a 3D mesh.
%
% plot_mesh(vertex,face, options);
%
% 'options' is a structure that may contains:
% - 'normal' : a (nvertx x 3) array specifying the normals at each vertex.
% - 'edge_color' : a float specifying the color of the edges.
% ... |
ee468c5c1bfbdb2693d1f6a3e114e28e15bd3a89f00507fabfa19f8576869121 | MATLAB | 2,184 | 57 | function phase = osp_importfile_ph0ph1_Tarquin(filename, startRow, endRow)
%IMPORTFILE Import numeric data from a text file as a matrix.
% phase = IMPORTFILE(FILENAME) Reads data from text file
% FILENAME for the default selection.
%
% phase = IMPORTFILE(FILENAME, STARTROW, ENDROW) Reads data
% from rows STARTR... |
fd7b5e5af5225bf599484c3f08e0b0728b47321a54b43f97695d06c03e1371a0 | MATLAB | 2,185 | 66 | function output = decodeResiduals(kinematics, neurons, tBins, ROIs, kinematicField, neuralField)
if nargin < 4
kinematicField = 'jointAngles';
neuralField = 'data';
end
if nargin < 5
neuralField = 'data';
end
nFolds = 5;
nPartitions = 10;
% Prep for regression
outcomes = kinematics([kinematics.locked]);... |
05cada23a27dfd59f4eb978db9706836154582b7f06a2bd9b42405baca65fb68 | MATLAB | 2,186 | 78 | function fear_getSpdlFrMod(basename)
% basename='~/data/Fear/triple/hoegaarden181115/hoegaarden181115';
load([basename '.basicMetaData.mat'])
fprintf('%s start %s with data of %s\n',datestr(now),mfilename,basicMetaData.SessionName)
%%
load([basicMetaData.Basename '.sessions.events.mat'])
load([basicMetaData.Basename '... |
7571e491dbf47cdb35705262bc4976735c7fe51f931f374ecb9d47c59e670952 | MATLAB | 2,186 | 75 | % Script to facilitate the generation of a new release of Manopt.
fprintf('Release? Are your sure? CTRL+C if not. Any other key if yes.\n');
pause();
reproot = pwd(); % Manopt root directory -- no slash at the end
repreleases = '../manopt-releases/'; % relative to root (slash at the end)
repweb = '../manopt-web/'; % ... |
b3f8741e9907cb1f48be6a5b13e4b0141f29ca5c331730ef2f749aa055128887 | MATLAB | 2,186 | 52 | function [peak_locations,number_of_windows,average_window_time,window_time]=get_data_driven_windows(connectivity_complete,mean_freq,fs)
% Computes measures derived from the temporal activation sequence and the
% instantaneous correlation tensor
% Nunez et al., 2020 Abnormal meta-state activation of dynamic brain
% ... |
8878e95c586a649f587a132e103d7339cdd8fb38be9519b573d209935d572b05 | MATLAB | 2,187 | 66 | function [logp, yhat, res] = tapas_softmax_binary(r, infStates, ptrans)
% Calculates the log-probability of response y=1 under the binary softmax model
%
% --------------------------------------------------------------------------------------------------
% Copyright (C) 2012-2016 Christoph Mathys, TNU, UZH & ETHZ
%
% T... |
a1fec5c49418fe39e7c160353bba24b539df1e3bb3f42d86082fa253ed9fdfac | MATLAB | 2,187 | 89 | function y = perform_convolution(x,h, bound)
% perform_convolution - compute convolution with centered filter.
%
% y = perform_convolution(x,h,bound);
%
% The filter 'h' is centred at 0 for odd
% length of the filter, and at 1/2 otherwise.
%
% This works either for 1D or 2D convolution.
% For 2D the matrix h... |
f330e6e47ab7c13c522685457b052dc309fe542cc96345b9050cf077ee966cdf | MATLAB | 2,187 | 119 | function fn_par = sero_srr_nii2fit(nii_fn, xps_fn, mask_fn, reg_str, do_t1, do_v, mode, new_nii, fast_recon, opt)
% function fn_par = sero_srr_nii2fit(nii_fn, xps_fn, mask_fn, reg_str, do_t1, mode, opt)
if isempty(xps_fn) || nargin < 2
xps_fn = mdm_fn_nii2xps(nii_fn);
end
if isempty(mask_fn) || nargin < 3
ma... |
7e9ed76c7a423b5442356a8df95dcd0a375aaf5e9d945cbfe67639e6df14b558 | MATLAB | 2,188 | 65 | function t = getLinesearch(problem, x, d, storedb, key)
% Returns a hint for line-search algorithms.
%
% function t = getLinesearch(problem, x, d)
% function t = getLinesearch(problem, x, d, storedb)
% function t = getLinesearch(problem, x, d, storedb, key)
%
% For a line-search problem at x along the tangent direction... |
3702e1799ef094182646cea234443a4ccdec5873abba66b4fb1674550e6e4fb8 | MATLAB | 2,190 | 66 | function [img_pp] = FD_clVAE_ImagePreprocess(img)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Identification and interpolation of block artifacts caused by image
% compression.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
r_channel = double(img(:,:... |
6290aea5ae7cd28543ee94d59365a79cab0a181c0b32fa12e1b60f9d910d8293 | MATLAB | 2,190 | 73 | function plotPESBoxplots(Tmean, stats, outDir)
% PLOTPESBOXPLOTS Colored boxplots of PES by Age with LME stats.
if nargin < 3 || isempty(outDir), outDir = pwd; end
if ~exist(outDir,'dir'), mkdir(outDir); end
ageLevels = {'12','16','21'};
cols = [0.85 0.33 0.10; % orange
0.00 0.00 0.00; % black
... |
9e8d93cd7fe4a3791f0c4c735be4a89d7cf56b739fd32ccb7c20550087439c91 | MATLAB | 2,190 | 70 | function indexFoundPattern = tapas_uniqc_find_string(stringArray, searchPattern, isExact)
% Finds a string pattern in a cell of strings and returns found cell indices
%
% NOTE: this function behaves the same as find should behave
%
% indexFoundPattern = tapas_uniqc_find_string(stringArray, searchPattern, isExact)
%
%... |
ac281ad5077d001faeaa8282b7134a3bc85a43495314b45246f120f1a112ed69 | MATLAB | 2,190 | 102 | clear all % just clearing workspace
% define mean firing rate
Network_opts.meanspikebin = 1;
% define number of neurons
Network_opts.nneurons = 20 ;
% define number of bins
Network_opts.nbins = 10000;
% above define assembly membership
% line below sets neurons 1,2,3 and 4 to be in assembly 1
Assembly_opts.assembl... |
f83e625f33fe2c63f8fff05473aef1eb06a2f25430f95ca19cf51bb5478edc36 | MATLAB | 2,190 | 79 | function [newWaveletIntegral, newWaveletSqN] = adaptWavelet(aveWaveform, wavelet_name)
% Description:
% Uses spike waveform to adapt custom wavelet that can be used for
% continuous wavelet transform
% INPUT:
% aveWaveform: average (mean or median) spike waveform
% OUTPUT:
% newWaveletIntegral: area under th... |
fc968ec24f5bad473859e88d60e06d4ddbcf14fba032f87e3b0e99c2e05e2c71 | MATLAB | 2,190 | 54 | function []=wavelet_coherence(Fs, time_ms,LP_Signal_fix, Downsample_rate, t1, t2, e1, e2, PhaseDisplayThreshold)
%WAVELET_COHERENCE Compute and plot wavelet coherence between two electrodes
%
% INPUTS:
% Fs - Original sampling frequency (Hz)
% time_ms - Time vector (mill... |
3fcac0a95ac0b0bd8d632989625cd76fea7c2eb94b185fd90994a2c6a25a8cdb | MATLAB | 2,191 | 53 | function ops = glm_defaultOps()
%base function for commonly used forms of all options
ops = struct();
%basics
ops.fname = 'glm_default'; %file save name
ops.dispL = 5; %level of verbosity. 5 gives most output. 1 gives least
%stimulus and data treatment
ops.dt = 0.01; %binsize
ops.T0 = 0; %initial trial time. used on... |
9536a98672400fa99318160cdf3cc568fe02237c939bd72690a0878d6ca38279 | MATLAB | 2,191 | 86 | function [tMin,fMin,Q2Flip,output]=essential_distMinAngle(Q1,Q2,varargin)
NQ1=size(Q1,3);
NQ2=size(Q2,3);
if NQ1==1 && NQ2>1
Q1=repmat(Q1,[1 1 NQ2]);
NQ1=NQ2;
end
if NQ1>1 && NQ2==1
Q2=repmat(Q2,[1 1 NQ1]);
end
if NQ1>1
tMin=zeros(NQ1,1);
fMin=zeros(NQ1,1);
Q2Flip=zeros(6,3,NQ1);
if nargou... |
27067f2d255ca9d3abec87bc2b365c441dfbff370712f4b94eb33da5b6d22817 | MATLAB | 2,192 | 72 | function [FVF, FR, MVF, AVF] = compute_statistics( d, gap, pts, side, g_ratio, resolution)
% % author : Tom Mingasson
% stat evaluate from the results of the simulation :
% - FVF : the fiber volume fraction e.g. the axon (=disk) density
% - MVF : the myelin volume fraction
% - AVF : the axon volume fr... |
e1bf89c0caffd1678cdd27e70460fbb0e2b8c9a67316c5f34820b10640e0b9e9 | MATLAB | 2,193 | 57 | function out = DN_CV(x, k)
% DN_CV Coefficient of variation
%
% Coefficient of variation of order k is sigma^k / mu^k (for sigma, standard
% deviation and mu, mean) of a data vector, x
%
% ---INPUTS:
%
% x, the input data vector
% k, the order of coefficient of variation (k = 1 is default)
% ----------------------... |
8e2ed2a571f68c1ce1dca02cbf96146a1d6e0be8664a4ba8e78d580331d0a4d4 | MATLAB | 2,194 | 81 | %
% nets_spectra - calculate and display spectrum for each node, averaged across subjects
% Steve Smith and Ludo Griffanti, 2013-2014
%
% [ts_spectra] = nets_spectra(ts);
% [ts_spectra] = nets_spectra(ts,node_list);
% [ts_spectra] = nets_spectra(ts,node_list,tailnorm);
%
% node_list is optional, and is a vector list... |
d424ce3558a7f9dd9f62eda010f4e95d5036db369c92ab210a228e66873071db | MATLAB | 2,194 | 69 | function this = read_nifti_analyze(this, fileName, selectedVolumes)
% loads matrix into .data from nifti or analyze file using spm_read_vols
%
% this = read_nifti_analyze(this, fileName, selectedVolumes)
%
% IN
% fileName
% selectedVolumes [1,nVols] index of selected volumes to load,
% I... |
e1ea7b24938340aecdd560bd9eb7030db669e619a1108af1a81643553c1080d5 | MATLAB | 2,194 | 83 | function A = fast_ica(x,pcomponents,nit)
% Originally written by the Finish (Aapo) team;
% Modified by the PIB team in Aug. 21, 2007
% PIB - Biological Information Processing Lab - UFMA - Brazil
% Modified by Vítor Lopes dos Santos Aug. 2011.
if nargin < 3, nit=100; end
% fprintf ('Removing mean...\n');
... |
1c7af66e8ef1297f1dd0fc8186602cf5609e0981d618e9d1ee231a663f0b8fe0 | MATLAB | 2,195 | 57 | classdef MrCopyData < handle
% Provides a common clone-method for all object classes, plus
% generalized find, compare and print-capabilities
%
% based on a posting by Volkmar Glauche
% http://www.mathworks.com/matlabcentral/fileexchange/22965-clone-handle-object-using-matlab-oop
%
% heavily... |
1679f22290f1fec9b7d428d151a2234d214a1400b51066ebf57ec9cab0a472ab | MATLAB | 2,197 | 74 | function this = set_from_filenames(this, fileArray)
% creates dimInfo from file naming scheme e.g. image_sli035_echo001_asl000_dyn123_dif000.mat
% <prefix>_<dimLabel1><dimValue1>..._<dimLabelN><dimValueN>.<suffix>
%
% NOTE: interpretes file counter as relative index in each dimension
%
% Y = MrDimInfo(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.