sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
477d9cd1d1c5379edeac623e5af7106c454b590c3b98b2fc9a5f0c31dba74370 | MATLAB | 11,850 | 344 | function [X,ndx,dbg] = natsort(X,rgx,varargin)
% Alphanumeric / Natural-Order sort a cell array of 1xN char.
%
% (c) 2012-2020 Stephen Cobeldick
%
% Alphanumeric sort a cell array of strings: sorts by character order and
% also by the values of any number substrings. By default matches integer
% substrings and performs... |
a3d0fb799327722241cf3b213477b0c2abac05603696eb9ebb68ba039bdc9f4c | MATLAB | 11,885 | 303 | function Results = run_psd_lme_models(T, rootPath)
% =========================================================================
% run_psd_lme_quadrant_ipsi_contra_parallel
%
% PSD mixed-effects analysis with:
% • Stage 1: Trait-like quadrant effects
% • Stage 2A: Pain-only state models (Subject-Centered)
% ... |
4fe49c9f74d87c1b937fb823c8f45746d29fe9ad09f14605f2af51100960000b | MATLAB | 11,928 | 271 | function [ OUT ] = PCA_LBPD( S )
% Principal Component Analysis (PCA) calculation (eigenvector solution on
% data covariance matrix) with Monte-Carlo simulation (MCS) implementation
% designed considering the variance of PCs (eigenvalues) in real and
% randomized data.
% Please, note that here only the weights of the ... |
4b365ba1069f2d10342c8424c76bff868d1bb17101a6390625afd700b33a8493 | MATLAB | 11,929 | 351 | function varargout = process_nst_compute_voronoi( varargin )
% @=============================================================================
% This software is part of the Brainstorm software:
% http://neuroimage.usc.edu/brainstorm
%
% Copyright (c)2000-2013 Brainstorm by the University of Southern California
% This... |
f0b4143c1e10e3919c22097941f2278e4d1c07fad1fbb36a4c2fbf7aec8d9535 | MATLAB | 11,930 | 352 | function varargout = pixelinfo(varargin)
% function for compare pixels GUI (Name issue will be rectified in future release)
% Chris O'Shea and Ting Yue Yu, University of Birmingham
% Maintained by Chris O'Shea - Email CXO531@bham.ac.uk for any queries
% Release Date -
% For licence information, Please see 'licsence.... |
7e5e568849ec25cdf99684305dce3480accef7aa1120d138255d015ad24ce4f5 | MATLAB | 11,962 | 229 | function [AG,NSV,G] = islands(a)
%ISLANDS finds all islands of four-connected elements in a matrix.
% ISLANDS returns a matrix the same size as the input matrix, with all of
% the four-connected elements assigned an arbitrary island number. A second
% return argument is an nx3 matrix. Each row of this matrix has ... |
73f098df95696b6faf9c71b6e4f40d830ffa0febfbd34a9b2538df1405636c2b | MATLAB | 11,974 | 331 | %% Overview
% The main goal of this pipeline is calculate the bootstrap estimates
% of relative performance metrics between correction methods (i.e. HFC,
% ICA, CDM estimate).
%
% For the pipeline to run, the results from main pipelines
% (OPM_CFA_correction_Pilot_study.m and Comparative_analysis_with_ICA.m)
% need to... |
02d9c1fadc9f570cbd4e90372e9128d1c1206653a3dfa0c0a9e171f5c63754c7 | MATLAB | 12,077 | 395 |
% TO DO
% ENSURE EEG HAS AVERAGE REFERENCE!!!!!
% could average over trials after (only if induced effects)
% add spatial/temporal SVD of channel data? (not worth it)
clear
%subnum = [2 3 5 14 8 9 10 11 12 16 15 17 18 23 24 25] % Mapping from openneuro to Scott's numbers (original numbers)
subnum = [2 3 5 14 8 9 10 ... |
6d2c8be8166618c47d9b3886a8d1ede4d9c78b24a58c629afa882c0f84302dc4 | MATLAB | 12,143 | 276 | function BCCT_ShowGCmatrix_GUI
Hsize = get(0,'screensize');
MIDPOINT = [Hsize(3)/2,Hsize(4)/2];
Asize = [100*3,100+40];
MaxSIZE = [Hsize(3) Hsize(4)]*0.4;
factor = MaxSIZE./Asize;
factornew = min(factor);
POSSIZE = Asize*factornew;
Hshow.fig = figure('position',[MIDPOINT(1)-POSSIZE(1)/2,MIDPOINT(2)-POSSIZE(2)/2... |
ea1cd8f9a55a588ae8c22428ba651b7add1976aad5dc8c0a72d94c47af2aa55e | MATLAB | 12,187 | 255 | function [ h_deg, P_binary_deg, P_ROIs_deg_r, P_val, h_seg, ROI_seg_label, ROI_seg, glob_seg ] = degree_segregation_MCS_LBPD_D( P, thresh, permut, threshMC, ROI_label, reshlab, perm_max )
% It calculates the degree of matrix vertices and modularity (by using the
% 'modularity_und.m' function by Newman) in both origin... |
c2cbb6fcacc746ff605f0ec27cd8442d38e13f792c60d741ed9e3cfc38e85094 | MATLAB | 12,276 | 340 | function varargout = phasemapping(varargin)
% Main function for running phase mapping GUI
% Chris O'Shea and Ting Yue Yu, University of Birmingham
% Maintained by Chris O'Shea - Email CXO531@bham.ac.uk for any queries
% Release Date -
% For licence information, Please see 'licsence.txt' at ...
% Last Updated -
%... |
4efee06fe759eb2a123ad124a4a316d7a17088a1c400ef1c18c2748390fb39d0 | MATLAB | 12,280 | 360 | clc; clear;
% 1) Read data
filePath = "C:\Users\16055\behavior\oridata.xlsx";
T = readtable(filePath);
% 2) Get all unique subject IDs
subject_list = unique(T.subject);
nSub = numel(subject_list);
% 3) Preallocate structure
data = struct();
data.go = [];
data.acc = [];
data.stim = [];
data.RT = [];
... |
26c8c51a66be1552c4cb54820256c9ec30a1ef44af86b8f328e8a49753e98901 | MATLAB | 12,306 | 252 | %% make cluster stats
% current working directory needs to be /path/to/scripts
mainpath= pwd;
addpath([mainpath filesep 'toolboxes' filesep 'tc_functions'])
addpath([mainpath filesep 'toolboxes' filesep 'fieldtrip'])
addpath([mainpath filesep 'fmriRegAnalysis'])
addpath([mainpath filesep 'scriptTemplates'])
ft_default... |
5e23f13ddd282252f96954801741ac8ba72ad623a222b9bca434eca356926f1c | MATLAB | 12,401 | 255 | classdef ConcatMatrixTest < matlab.unittest.TestCase
properties
tmp_dir
end
methods(TestMethodSetup)
function setup(testCase)
tmpd = tempname;
mkdir(tmpd);
testCase.tmp_dir = tmpd;
utest_bst_setup();
end
end
meth... |
09a05d880e85ad5918211a0407c6b0e3663b72d8a645ef939d00415a41096d2a | MATLAB | 12,585 | 362 | %%%% EXTERNAL FUNCTION
% function taken from the fastICA package
% complete software may be downloaded from http://research.ics.tkk.fi/ica/fastica/
function [E, D] = pcamat(vectors, firstEig, lastEig, s_interactive, ...
s_verbose);
%PCAMAT - Calculates the pca for data
%
% [E, D] = pcamat(vectors, firstEig... |
eee2999f155027a88413d1a18410f645e9d13b085660d5d2354af6297f3ab171 | MATLAB | 12,611 | 314 | function Plot_K_repertoire(data_dir,save_dir,selectedK,parcellation)
%
% Plot the centroids in 3D glass brain, in vector format and the boxplots
% of the fractional occupancy and dwell time value.
%
% INPUT:
% data_dir directory where LEiDA results are stored
% save_dir directory to save results for selected ... |
44bdeb54b3b5e4058956be8142120b04644756907287c478a32fceb828414a05 | MATLAB | 12,638 | 287 | function sel_from_res = tc_get_res_inds(cond_str, tmaps)
%%
sub_conds = strsplit(cond_str, '_#&_');
eeg_fields = {};
fmri_sel = true(size(tmaps, 1), 2); % N x 2 (2: L, R)
act_only = true;
ref_tmap = []; % the first one if multiple sub-selctions
for sub_cond = sub_conds
% determine EEG regressor
if conta... |
aedfb166ac187bb00856bddfa45687e1cf76a1782f3f644b58e05f404a57214e | MATLAB | 12,652 | 308 | function voronoi_data_plot(data)
percentile_range = [0 95];
f = waitbar(0,'Calculating PDF and CDF..');
for i = 1:length(data)
waitbar(i/length(data),f,['Calculating PDF and CDF..',num2str(i),'/',num2str(length(data))]);
[x_pdf{i},y_pdf{i},x_cdf{i},y_cdf{i}] = calculate_pdf_cdf(data{i}.vor.voronoi_areas,... |
c71cd73df908101c760ac03d115a45493060342f9d4ad889636c05467e9178be | MATLAB | 12,720 | 392 | % internal function
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
function [img,hdr] = load_nii_img(hdr,filetype,fileprefix,machine,img_idx,dim5_idx,dim6_idx,dim7_idx,old_RGB)
if ~exist('hdr','var') | ~exist('filetype','var') | ~exist('fileprefix','var') | ~exist('machine','var')
error('Usage: [img,... |
bc7985028859e54789dbe231eea4e9a223005db9cf9760b0c435bf44fe894942 | MATLAB | 12,743 | 256 | function O = waveplot_groups_local_v2(S)
O = [];
% It plots waveform for multiple groups of participants. Typically used for
% plotting time series of MEG source ROIs according to different groups.
% OBS!! FUNCTION TO BE RUN ON LOCAL COMPUTERS (NOT ON AARHUS SERVER)
% THIS HAS BEEN UPDATED FOR BETTER PLOTTING O... |
6931d5391f3052a334d0cef3ac37b74ac73af32fa1c17d8824c19ae9dfe73f9b | MATLAB | 12,761 | 307 | function anovaResults = computeAnovaOnParam(obj, neus2consider, conds2consider, params, refWindow, anaWindow, binWidth, varargin)
% COMPUTEANOVAONPARAM - Compute ANOVA with epoch and task-parameter factors
%
% INPUTS:
% obj - RecordedData object
% neus2consider - Ne... |
dd1fc7a62eb5df5cfbf12644434cc44e1012a48e72537960fc482697def85cca | MATLAB | 12,776 | 296 | function R_all_blocks = a2_confound_and_hrf_regressors(parameters, delete_files)
%% R_out = a_confound_and_task_regressors(mainpath, subject, delete_files)
% mainpath = '/project/3018037.01/Experiment3.2_ERC/AnalysisFolder/scripts/scriptTemplates/..';
tc_struct2ws('caller', parameters.main);
%% setup parameters
tc_st... |
1938b3876733be7c26624c33ba6c3f60f5aa01753727b4591b4839b508237804 | MATLAB | 12,813 | 303 | function obj = refineNeuralData(obj, refType, refOpt, fixedFlag)
% REFINENEURALDATA Apply normalization, subtraction, or smoothing to neural tensors.
%
% -------------------------------------------------------------------------
% SYNTAX
% obj = obj.refineNeuralData(refType, refOpt, fixedFlag)
%
% ------------... |
dca45c31187582bcafbd5536a75553b6ae6c436342135b735fb315592649174a | MATLAB | 12,841 | 287 | function over_subject_results = h_make_t_stat_eeg_over_subjects(parameters, save_dir, subjects, bad_subjects, models_to_use, add_to_save_name, suppress_plot)
%% over_subject_results = h_make_t_stat_over_subjects(mainpath, subjects, bad_subjects, models_to_use, add_to_save_name)
%mainpath = '/project/3018037.01/Experime... |
4bbd37bf80aa30c2dffc496d1e42579b25f836a989038fe3aaf691a4e6f5e258 | MATLAB | 12,852 | 327 | function tutorial_nirstorn_2024(tutorial_dir, reports_dir)
% TUTORIAL_NIRSTORM_2024: Script that reproduces the results of the
% nirstorm article
%
% CORRESPONDING ONLINE TUTORIALS:
% https://neuroimage.usc.edu/brainstorm/Tutorials/NIRSTORM
%
% INPUTS:
% - tutorial_dir: Directory where the sample_nirstorm.zip ... |
51a25ec04086d7f74df839c19df5f0d6b1ee0a883cc3340781586c28581e3863 | MATLAB | 12,860 | 216 | classdef ResultRank < handle
% Ranker to calculate *p*-values from permutation testing
%
% :param permuted_network_results: The NetworkTestResult object from permutation test
% :param number_of_network_pairs: The number of network pairs for the Brain Atlas used
% :return
properties
no... |
e1708aa8f0ad39d579c2b9889429bbc13f67bccf24f298f4727e7b5e52d3e5fe | MATLAB | 12,908 | 373 | function AS_ShowGCmatrix_residual(Ptype)
GC_RES.Ptype = Ptype;
Hsize = get(0,'screensize');
MIDPOINT = [Hsize(3)/2,Hsize(4)/2];
Asize = [100*3,100+40];
MaxSIZE = [Hsize(3) Hsize(4)]*0.8;
factor = MaxSIZE./Asize;
factornew = min(factor);
POSSIZE = Asize*factornew;
GC_RES.fig = figure('position',[MIDPOINT(1)-POS... |
b0b18627d317a29f714ed80e195ba26eb56ed86ecadf206193fe2c83a8c10062 | MATLAB | 13,016 | 304 | function [BOLD,ROIs,nvol,dFC_project] = read_BOLD(dFC_project)
%Extracts time series data from .mat files in the directory specified by
%'path' and returns a 4-dimensional matrix of time series data. Excludes
%confound regressors and GM, WM, and CSF ROIs. Trims time series to the
%length of the shortest scan in ... |
e9f7dc247dc2e9a88733c1c6dab7bfe6a192298d8078855a6b5e0af8cfff17c7 | MATLAB | 13,025 | 300 | classdef Guillaume < nla.helpers.stdError.AbstractSwEStdErrStrategy
%some code here is adapted from Guillaume implementation of Sandwich
%Estimator available at http://www.nisox.org/Software/SwE/
%(specifically, swe_cp.m, or swe_contrasts.m where noted)
%adapted blocks of code are marked with a com... |
3306ca0438efaa07258157abd8ef70f6c8d3f38133c9441e23689a49c8e968ab | MATLAB | 13,071 | 269 | classdef NetworkResultPlotParameter < handle
% NETWORKRESULTPLOTParamter Creates parameters and plots for network test results
properties
network_test_results
network_atlas
updated_test_options
force_ball_stick_brain_plot = false
end
properties (Dependent)
test_meth... |
a03d972d5a0aa18b4a2cf911235985a28cfc14ef336c765b36e8149a760bb635 | MATLAB | 13,171 | 470 | %%%% EXTERNAL FUNCTION
% function taken from the LiNGAM package
% complete software may be downloaded from http://www.cs.helsinki.fi/group/neuroinf/lingam/
function [C,T]=hungarian(AA)
%HUNGARIAN Solve the Assignment problem using the Hungarian method.
%
%[C,T]=hungarian(A)
%A - a square cost matrix.
%C - the... |
c4a971eb35da62917b779fef22a290b7e06e970d89ae2dc94b715243789e343b | MATLAB | 13,272 | 427 | function BCCT_CON_Mat_GUI
D.fig = figure('Name','Brain Covariance Connectivity(ROI-wise, volume-based)',...
'units','normalized',...
'menubar','none',...
'numbertitle','off',...
'color',[0.95 0.95 0.95],...
'position',[0.20 0.15 0.5 0.5]);
movegui(D.fig,'center');
... |
0955aee34b4d101de4afec9dadfe280ad9739ae00f2d3eb2de2ca55bcd40cbad | MATLAB | 13,320 | 380 | function AS_ShowGCmatrix_coefficient(Ptype)
GC_RES.Ptype = Ptype;
Hsize = get(0,'screensize');
MIDPOINT = [Hsize(3)/2,Hsize(4)/2];
Asize = [100*3,100+40];
MaxSIZE = [Hsize(3) Hsize(4)]*0.8;
factor = MaxSIZE./Asize;
factornew = min(factor);
POSSIZE = Asize*factornew;
GC_RES.fig = figure('position',[MIDPOINT(1)-... |
65a9cf489def57fcae08511517f270f8ff2d3a20371ad29f712b960b416b24d5 | MATLAB | 13,455 | 401 | %--------------------------------------------------------------------------
% Till Habersetzer, 20.06.2025
% Communication Acoustics, CvO University Oldenburg
% till.habersetzer@uol.de
%
% This script generates the final summary figures for the AEF sensor level
% results, aggregating results across all participants.
... |
18cde275afadda9ce06bf326534752c1f1a524b01458964227616e0e31eb15cf | MATLAB | 13,572 | 364 | function [width, height] = drawMatrixOrg(fig, axes_loc_x, axes_loc_y, name, matrix, llimit, ulimit, networks, fig_size, fig_margins, draw_legend, draw_colorbar, color_map, marked_networks, discrete_colorbar, net_clicked_callback)
import nla.* % required due to matlab package system quirks
%DRAWMATRIXORG Draw a ... |
4b9b90b28171b201374116102bcb4c0093fc4ab862592a53ec265327d485931e | MATLAB | 13,572 | 339 | classdef variogram
% VARIOGRAM Generates brain maps with similar spatial autocorrelation.
%
% obj = VARIOGRAM(D,varargin) initializes the variogram object based on
% symmetric distance matrix D. Valid name-value pairs are:
% deltas : 1-dimensional vector, default [0.1,0.2,...,0.9]
% Proportion of neighbors ... |
3f180f1d9c52d9d7c0ea7e9d835e3e75ec64ab4717494a4f41dd9cc7930100f0 | MATLAB | 13,598 | 342 | function AS_MatrixFCshow_bat_GUI(indir,outdir,enhanind,Coltype,PVALT,Pvalused,orders)
load(indir);
[mpat,mnam,mext] = fileparts(which('AS_MatrixFCshow_bat_GUI.m'));
load(fullfile(mpat,'gray.mat'));
load(fullfile(mpat,'MatColormap','mycolormap.mat'));
R(1:size(R,1)+1:end) = 0;
Z(1:size(Z,1)+1:end) = 0;
P(1:si... |
15fa731a38447bcdccce5d051056786990de4c71e5596f38bc177e1c262740b6 | MATLAB | 13,645 | 291 | function drawBrainVis(edge_input_struct, input_struct, net_atlas, ctx, mesh_alpha, ROI_radius, surface_parcels, edge_result, net1, net2, sig_based)
%DRAWBRAINVIS Display correlations between given networks on brain
% edge_input_struct: edge-level input struct
% input_struct: net-level input struct
%... |
fc14dac6e4e48ed3e1ac87fddd0307d320c8b16aa4c1de0fbe9cfa1abad8ef29 | MATLAB | 13,679 | 346 | function AS_MatrixFCshow_other_GUI(R,outdir,enhanind,Coltype,PVALT,Pvalused,orders,dof)
% load(indir);
[mpat,mnam,mext] = fileparts(which('AS_MatrixFCshow_other_GUI.m'));
load(fullfile(mpat,'gray.mat'));
load(fullfile(mpat,'MatColormap','mycolormap.mat'));
R(1:size(R,1)+1:end) = 0;
R = R(orders,orders);
dof2... |
2c230c193bfad5fe8dd0877f3823064a1ef654548c7a3d8204f5190689f13962 | MATLAB | 13,709 | 427 | function status = build_bipolar_montage(rootPath, subjectIDs, regionDef, opts)
% build_bipolar_montage_from_raw
%
% Build region-constrained bipolar montages from <subj>_RawEEG.mat.
%
% Rule:
% Bipolar pairs are created only between consecutive contacts within the
% same anatomically defined region. No cross... |
1ff6ebd10248bbdeed69067d9c74a5756020c8d876b679cd5b298a5ecd814097 | MATLAB | 13,772 | 212 | %%% LBPD %%%
% CITATION
% If you find LBPD functions useful, please cite the following paper(s):
%
% 1) Spatiotemporal whole-brain activity and functional connectivity of melodies recognition. Cerebral Cortex.
% Bonetti, L., Brattico, E., Carlomagno, F., Cabral, J., Stevner, A., Deco, G., Whybrow, P.C., Pearce, M.,... |
144dc9303c47a185b267cd9cce4e8f2df15ffb3c6cc8c5e845d100e8870843ae | MATLAB | 13,785 | 509 | %gui_downsample
clear variables
%Downsamples ephys data.
%function gui_downsample(channels,label1,labelconditions,labelconditions2,rats)
rats=[1:10];
%SAMPLING FREQUENCY AND DOWNSAMPLED FREQUENCY.
prompt = {'Enter acquisition frequency (Hz):','Enter new downsampled frequency (Hz):'};
dlgtitle = 'Input';
dims = [1 35];... |
add95e443ebc0e6793c6f80f55615341e51e5ea8ed130ef320b01ae77ea941b2 | MATLAB | 13,895 | 359 | clear variables
addpath(genpath('/Volumes/Samsung_T5/Milan_DA/OS_ephys_da/CorticoHippocampal'))
addpath('/Volumes/Samsung_T5/Milan_DA/RGS14_Ephys_da')
addpath ('/Volumes/Samsung_T5/Milan_DA/OS_ephys_da/ADRITOOLS')
addpath(genpath('/Volumes/Samsung_T5/Milan_DA/OS_ephys_da/FMAToolbox'))
cd('/Volumes/Samsung_T5/Milan_DA/R... |
996c1a6c6f0151f61328c7e615f8010c5fd220aad76944d3c4aa569b213a13c6 | MATLAB | 13,906 | 252 | clc;clear;close all;
load('R_16_Jul_2026_10_46_51.mat')
random_seed=G_out_data.random_seed ; %界面设置的种子数
rng(random_seed) %固定随机数种子
data_str=G_out_data.data_path_str ; %读取数据的路径
dataO=readtable(data_str,'VariableNamingRule','preserve'); %读取数据
data1=dataO(:,2:end);test_data=table2cell(dataO(1,2:end)); ... |
b09f3ef7fb50553d29acc30f37447d7ea5ac137f57fff44fa90ed446d0961860 | MATLAB | 13,964 | 506 |
%% Pelin Özsezer
% Extracts ripples from waveforms;
% Generates the data of features;
% Normalizes and computes PCA;
% Generates density maps; Thresholds;
% Fits GMM model; Finds clusters per treatment;
% Creates new files per cluster and per treatment.
clc
clear
format compact
format longG
load('GC_window_treatmentw... |
15bfcab733075ebc5f0a7887c84407d8567790198b012c37f543fb73c4633e95 | MATLAB | 13,976 | 365 | %%
if ~(exist('mainpath','var') && exist('setup_sel','var'))
clearvars
% current working directory needs to be /path/to/scripts
mainpath = pwd;
setup_sel = sprintf('%s/../subjectData/all/eeg-fMRI/setups/b_5_d_contrast_t_01_09.mat', mainpath);
else
clearvars -except mainpath setup_sel
end
addpath([m... |
8a63b0ca6defa0cd046c09b0c7bce03c2e93b91c25dda010581006a6fd29db8b | MATLAB | 13,988 | 501 | function varargout = boundedline(varargin)
%BOUNDEDLINE Plot a line with shaded error/confidence bounds
%
% [hl, hp] = boundedline(x, y, b)
% [hl, hp] = boundedline(x, y, b, linespec)
% [hl, hp] = boundedline(x1, y1, b1, linespec1, x2, y2, b2, linespec2)
% [hl, hp] = boundedline(..., 'alpha')
% [hl, hp] = boundedline(... |
323c1b31fed5804ba76d68b6b297878b764a6055c7c6f5de4ebbe546e7c81866 | MATLAB | 14,051 | 301 | function BCCT_WTA_computemain(Parameter)
Outputdir = Parameter.Outputdir; % Êä³ö·¾¶
RealCompPara.Outputdir = Outputdir;
Inputdir = Parameter.Inputdir; % Êý¾Ý·¾¶
RealCompPara.Inputdir = Inputdir;
Methods = Parameter.methodused; % ·½·¨1 Ƥ¶ûÑ·Ïà¹Ø£¬·½·¨2 Æ«Ïà¹Ø
RealCompPara.Methods = Methods;
COVcond = Parameter... |
57d0bbd9b384149e5065e3959f8e680ea56e04cbd55288e4d089763b9d92be15 | MATLAB | 14,158 | 380 | function [idx, tri] = nearestneighbour(varargin)
%NEARESTNEIGHBOUR find nearest neighbours
% IDX = NEARESTNEIGHBOUR(X) finds the nearest neighbour by Euclidean
% distance to each point (column) in X from X. X is a matrix with points
% as columns. IDX is a vector of indices into X, such that X(:, IDX) are
... |
43322bdd5a65abb0bdd43805a47de684eb5510e8f335e4edb03ad7036b24e2f5 | MATLAB | 14,249 | 465 | function BCCT_MOD_Mat_GUI
D.fig = figure('Name','Brain Covariance Connectivity(ROI-wise, volume-based)',...
'units','normalized',...
'menubar','none',...
'numbertitle','off',...
'color',[0.95 0.95 0.95],...
'position',[0.20 0.15 0.5 0.5]);
movegui(D.fig,'center'); ... |
2ca45fe058056b5f0d39fe4333c81c1d73ba0edc75a4b7d54f61a315c2c6bd17 | MATLAB | 14,335 | 384 | % Load data
path = 'C:\Users\louzo\Dropbox\IBENS\05_Giampaolo_calciumNetworks\01_code\data\timelapse\Vidéos Imagerie calcique aout 2024\';
dates = {' 06 ', ' 07 ', ' 08 ',' 09 '};
regions = {'X1826 VLPO M1 F', 'X1827 VLPO M1 F', 'X1828 VLPO CA1 F', 'X1829 VLPO CA1 F'};
nums = {[1], [7], [3, 5], [5, 10, 10.2, 12]}... |
f2e00f39bdbcd9280f7f8c61a11e0f56ae4d7398a786fdcf0eb56f69495d134a | MATLAB | 14,430 | 310 | classdef SurfTplPipelineTest < matlab.unittest.TestCase
properties
tmp_dir
ppl_tag
end
methods(TestMethodSetup)
function setup(testCase)
tmpd = tempname;
mkdir(tmpd);
testCase.tmp_dir = tmpd;
utest_bst_setup();
... |
f37c0c9d704dca0f4ae5083d72ae03b55646bc0ee2e40af6eedabf2e2e98f74d | MATLAB | 14,452 | 289 | % -------------------------------------------------------------------------
% Script: make_figure1.m
%
% Description:
% This script generates Figure 1 for the manuscript, visualizing the
% relationship between respiration phase and EEG readiness potential (RP)
% amplitude across three datasets: original (Park et al., 2... |
1b97f90ecd9ab01b7559e416cf5a8109dcf9385d9a17c7e25bf7411ab81221d5 | MATLAB | 14,509 | 339 | function [Out,all_remove,ICs] = detect_ICA_artefacts(S);
% Version 2.0 of ICA artifact detection for SPM8/12
% Rik.Henson@mrc-cbu.cam.ac.uk, March 2013, with thanks to Nitin Williams and Jason Taylor
%
% Updated 23-4-15 to allow IC's to be re-created from previously calculated IC weights (eg if want t... |
e41a271459f181c84fbc568f6d2706491835379dd258e0deb79b3174a8a98879 | MATLAB | 14,600 | 283 | classdef ChordPlotter < handle
% CHORDPLOTTER Draws network test results in Chord Figures
% Object takes the brain network atlas and the edge test results to initialize
% generateChordFigure creates the chord plots for the network test results
% The parameters used as an input are fron NetworkResultPlotParameter
... |
f398a50ee863541979779f66765d06fdb33b18d892147edb2475ba2a41fffb25 | MATLAB | 14,679 | 429 |
function [signalav] = mapsbabyonepix(startopt,framerate,t,maskedimage,imagestack,avbeat,row,col,colopt,before,after,apdblopt,apdblnum,tstar,tend,normalise,tfilt)
% function for taking a single beat image file and extracting and displaying
% signal from chosen pixel
% Chris O'Shea and Ting Yue Yu, University of Bi... |
140a4e6095be3b88f5a97237a3e60f4a08223a11b8b7474053c7b2ef19e0471c | MATLAB | 14,739 | 404 | function names = schaefer_roi_names()
names = {
'17Networks_LH_VisCent_ExStr_1'
'17Networks_LH_VisCent_ExStr_2'
'17Networks_LH_VisCent_ExStr_3'
'17Networks_LH_VisCent_ExStr_4'
'17Networks_LH_VisCent_ExStr_5'
'17Networks_LH_VisCent_ExStr_6'
'17Networks_LH_VisCent_Striate_1'
'17... |
0181e02fd8b953b22550be1d52a4627c2dc47da4a1883896da5524f5ab68a667 | MATLAB | 14,740 | 335 | function varargout = process_nst_export_channels_info( varargin )
% @=============================================================================
% This function is part of the Brainstorm software:
% http://neuroimage.usc.edu/brainstorm
%
% Copyright (c)2000-2016 University of Southern California & McGill University
... |
59e9d7921ccfdc9cb16d7662a68dc54c1fcf6b4fe3821457a68e202574b25d58 | MATLAB | 14,764 | 357 | function loc_list_clusters_remove_outliers(data)
figure()
set(gcf,'name','Clusters Remove Outlier','NumberTitle','off','color','w','units','normalized','position',[0.15 0.2 0.7 0.6],'menubar','none','toolbar','figure');
uicontrol('style','text','units','normalized','position',[0,-0.01,0.3,0.05],'string','No. of Bins... |
34082120970e40d1606c874278879ee63e6bad527ee51595dbd45dbdc0a8f50c | MATLAB | 14,804 | 317 | classdef GradientMaps
% obj = BrainSpace(varargin)
%
% Class definition and constructor for BrainSpace. The following
% name-value pairs are allowed as input.
%
% - kernel (default: normalized angle)
% - 'p','pearson'
% - 'sm','spearman'
% - 'g','gaussian'
% - 'na','normalized angle'
% -... |
8ede958c8afb3a35fb7d71219e912c3c49dbbe6b48b99f678fde1ef6c1cd8895 | MATLAB | 14,838 | 373 | function BCCT_ShowFCmatrixGUI
Hsize = get(0,'screensize');
MIDPOINT = [Hsize(3)/2,Hsize(4)/2];
Asize = [100*3,100+40];
MaxSIZE = [Hsize(3) Hsize(4)]*0.4;
factor = MaxSIZE./Asize;
factornew = min(factor);
POSSIZE = Asize*factornew;
Hshow.fig = figure('position',[MIDPOINT(1)-POSSIZE(1)/2,MIDPOINT(2)-POSSIZE(2)/2,POSSIZE(... |
776d5d6f67935f657af348dad9a98f667724e0c3cff090cdbe5cd69de546204b | MATLAB | 14,845 | 466 | function BCCT_CON_MAP_GUI
D.fig = figure('Name','Brain Covaraince Connectivity(Seed to Whole Brain, volume-based)',...
'units','normalized',...
'menubar','none',...
'numbertitle','off',...
'color',[0.95 0.95 0.95],...
'position',[0.20 0.15 0.5 0.5]);
movegui(D.fig,'c... |
4a2f6baac407ca7b6fd99150b1e97576d124f44d0e5102f5ff3dfd96a6998773 | MATLAB | 14,864 | 267 | %% thesis figures
mainpath='/project/3018037.01/Experiment3.2_ERC/AnalysisFolder/scripts';
addpath([mainpath filesep 'toolboxes' filesep 'tc_functions'])
addpath([mainpath filesep 'toolboxes' filesep 'fieldtrip'])
addpath([mainpath filesep 'fmriRegAnalysis'])
addpath([mainpath filesep 'scriptTemplates'])
ft_defaults
%... |
cd5abd98e194965c76e6caf9d56eb4a4f0944f24b045ebf7ee63176175d03073 | MATLAB | 14,893 | 316 | % -------------------------------------------------------------------------
% Script: make_figure1.m
%
% Description:
% This script generates Figure 1 for the manuscript, visualizing the
% relationship between respiration phase and EEG readiness potential (RP)
% amplitude across three datasets: original (Park et al., 2... |
52b75b57265f39f5ef492e1f1a674801a23dca231733a211f7f66525b04fa055 | MATLAB | 14,895 | 355 | function [sFilesOut, redone] = nst_run_bst_proc(out_items_names, force_redo, ProcessName, sFiles, sFiles2, varargin)
% Run a brainstorm process only if expected outputs do not already exist
% or if recomputation is forced.
% Outputs have predefined names as given by out_items_names. Each output
% will be unique. This ... |
fcdd8b46a55fd751b4251140a5af6a93ef1d6527be06f11f9f996a09dad6fb60 | MATLAB | 14,895 | 480 | % Imbed Zoom, Interp, and Info menu to view_nii window.
%
% Usage: view_nii_menu(fig);
%
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
%
%--------------------------------------------------------------------
function menu_hdl = view_nii_menu(fig, varargin)
if isnumeric(fig)
menu_hdl = init(fig);
... |
01a72e0074f3299320b5dfb168bfc72b9c9f7ee1362e7a3d666a63554171cd8a | MATLAB | 15,055 | 321 | % ------------------------------------------------------------------------
% This script loads and processes EEG and respiration phase data from three
% sources: original, new, and simulated. It bins EEG amplitude according to
% our corrected binning method, and generates permutation distributions.
% The corrected meth... |
d57c9768617e3a8d62cf46ed7f8b6f3ac8a715e1dda7b3918026d86620517de5 | MATLAB | 15,056 | 334 | % RSA analysis (one GLM per sensor, where numObservations = numTrials and numPredictors = numTrialTypes)
% RSA on the evoked signal of the functional localiser
%
% 1.Load in the epoched MEG data for each FL trial. Pre-processes the MEG sensor data prior to GLM
% 2.Define the condition(stimulus)-specific sensor respons... |
17536c21d689e7b310dfae142f09d8d4a2d7fad6e444d8287f7baf1f5bd54318 | MATLAB | 15,079 | 370 | function AS_ShowFCmatrixGUI
Hsize = get(0,'screensize');
MIDPOINT = [Hsize(3)/2,Hsize(4)/2];
Asize = [100*3,100+40];
MaxSIZE = [Hsize(3) Hsize(4)]*0.4;
factor = MaxSIZE./Asize;
factornew = min(factor);
POSSIZE = Asize*factornew;
Hshow.fig = figure('position',[MIDPOINT(1)-POSSIZE(1)/2,MIDPOINT(2)-POSSIZE(2)/2,PO... |
f33cb00625247eb2cf184a081cf03ae801bdafe29968d6f0aabfd160dbb00973 | MATLAB | 15,206 | 440 | function varargout = process_nst_quality_check( varargin )
% process_nst_quality_check: compute several indicator of the signal
% quality
%
% @=============================================================================
% This function is part of the Brainstorm software:
% http://neuroimage.usc.edu/brainstorm
%
% Copy... |
5c6583755e2c829f1fdba956bb3a208924d08707724fc85ae8830adc29372f6a | MATLAB | 15,224 | 468 | % internal function
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
function [img,hdr] = load_untouch_nii_img(hdr,filetype,fileprefix,machine,img_idx,dim5_idx,dim6_idx,dim7_idx,old_RGB,slice_idx)
if ~exist('hdr','var') | ~exist('filetype','var') | ~exist('fileprefix','var') | ~exist('machine','var')
e... |
dcc0d777652a9a64d35deee3dd47c8356affc458f91a63d8103a08e70a4892a1 | MATLAB | 15,288 | 268 | function [] = ps_statistics_LBPD_D(S)
% Calculates t-tests (or sign-rank tests) comparing the phase synchrony of
% each couple of brain areas between two conditions (or one condition and two
% groups of subjects).
% To be used after: phasesynchrony_LBPD_D.m
% INPUT: -S.load_path: path for loading d... |
f30b961413a4509a24e5ec2117b9869f8f4dee338d47c2ffde227cfea650a340 | MATLAB | 15,290 | 548 | %% Load the data, plot it and do tensor decomposition
clear; close all; clc
subjID = 'Example_Patient1';
startup_patient;
cd(GridLoc_Folder)
Elec_loc_file = dir('*.xyz');
Elec_loc = readlocs(Elec_loc_file.name);
cd(Spk_Folder)
load([subjID '_hfo_spike_data.mat']);
Data_Signal = pEventData;
cd(Code_Folder)
%========... |
0fcdf2952a44d8edd244c2081c2bd1b66976abd4feafc6fe81d56d8160445c9a | MATLAB | 15,318 | 463 | function varargout = compare(varargin)
% Function for running Pixel Info GUI (NAME MIXUP, will be rectified in subsquent releases).
% Chris O'Shea and Ting Yue Yu, University of Birmingham
% Maintained by Chris O'Shea - Email CXO531@bham.ac.uk for any queries
% Release Date -
% For licence information, please see '... |
29cf0bd12c70f5f9d7dd0dc77bb8de5c9fd58475e2dda58e06c24bb31f2b4891 | MATLAB | 15,341 | 552 | %% Initialize and load data file
clear; close all; clc
subjID = 'Example_Patient1';
startup_patient;
cd(GridLoc_Folder)
Elec_loc_file = dir('*.xyz');
Elec_loc = readlocs(Elec_loc_file.name);
cd(Sz_Folder)
load([subjID '_Seizure_1.mat']);
Sig_st = 400;
Sig_end = 1600;
Noise_st = 1;
Noise_end = 200;
SigTimeStart = 8... |
08f0da3ab08cf61ec2b12fa151f2adff43e0af1c2dd6e632672348929d00d9fd | MATLAB | 15,348 | 499 | function BCCT_CaSCN_Mat_GUI
D.fig = figure('Name','Causal network of Structural Covaraince Connectivity(ROI-wise, volume-based)',...
'units','normalized',...
'menubar','none',...
'numbertitle','off',...
'color',[0.95 0.95 0.95],...
'position',[0.20 0.15 0.5 0.5]);
mo... |
88d14ae9f92e19be4025c92365b7b08161f9577e49856d0fbd8381f941d9bb20 | MATLAB | 15,450 | 363 | %jds_thetaNestingSurrogate
%Theta nesting of gamma and ripple oscillations in PFC during phasic REM:
%finds each tetrode's preferred theta phase for gamma and ripple amplitude,
%extracts LFP around amplitude peaks within that phase bin, counts nested
%oscillation cycles, and compares peak-trough amplitudes against
%tim... |
d33bd2e873aec1b5cfedddee7e61074c727a68e16fe3665b76f9eb63b6069e91 | MATLAB | 15,471 | 422 | function Results = run_connectivity_lme_models(T, rootPath)
% =========================================================================
% run_connectivity_lme_all
%
% Combined connectivity mixed-effects analysis for the manuscript.
%
% INPUT
% T : connectivity epoch-level long table from
% ... |
8f53df6e975142c458ad4f7dc3b78cca183a970ea1c16d26ff012e9f3be4f655 | MATLAB | 15,501 | 565 | %% Load the data, plot it and do tensor decomposition
clear; close all; clc
subjID = 'Example_Patient1';
startup_patient;
cd(GridLoc_Folder)
Elec_loc_file = dir('*.xyz');
Elec_loc = readlocs(Elec_loc_file.name);
cd(Spk_Folder)
load([subjID '_hfo_spike_data.mat']);
Data_Signal = pEventData;
cd(Code_Folder)
%========... |
6d83face34e78508eaa54c7eb9d1cad541787cfa29be7bc5c7ce68de85e60226 | MATLAB | 15,621 | 436 | %% Supplementary Analyses
if ~exist('mainpath','var')
clearvars
thisSubject = 'S2';
% current working directory needs to be /path/to/scripts
mainpath = pwd;
else
clearvars -except mainpath thisSubject
end
addpath([mainpath filesep 'toolboxes' filesep 'fieldtrip'])
addpath([mainpath filesep 'toolbo... |
2f8d9f37cf0e6765b8ac5be802321c9680b0a474f6e351f0bdb3b2a0c456745b | MATLAB | 15,688 | 375 | function plotPSTH(obj, neu2consider, conds2consider, window, bin, vars2plot, varargin)
% PLOTPSTH - Plot peri-stimulus time histogram with raster and optional variables
%
% SYNTAX:
% plotPSTH(obj, neu2consider, conds2consider, window, bin, vars2plot)
% plotPSTH(..., 'markerNames', markerNam... |
3a4a9e98b50612a0663321667058dcddc6dcdf1ea8e1d58c11a4eb729c43e750 | MATLAB | 15,766 | 292 | function [ O ] = MEG_SR_Stats1_Fast_LBPD( S )
O = [];
% It computes statistics after beamforming (computed using MEG_SR_Beam_LBPD.m).
% Main effects here are simply mean(X)./sqrt(std(X)) (or just mean(X), while contrast
% between 2 conditions are actual t-tests.
% This function assumes that data is approximately norma... |
64ed68f8a24d5138a6489288b2938ef5f65eade23029e8780a023f30705d3f77 | MATLAB | 15,841 | 499 | function BCCT_MOD_MAP_GUI
D.fig = figure('Name','Modulate Brain Structural Covaraiance Connectivity(Seed to Whole Brain, volume-based)',...
'units','normalized',...
'menubar','none',...
'numbertitle','off',...
'color',[0.95 0.95 0.95],...
'position',[0.20 0.15 0.5 0... |
a2baab8a23df37429984183b95ab6424b201087b089c3172b37ccae50646bbbe | MATLAB | 15,854 | 268 | function [ MAG_clust_pos, MAG_clust_neg, GRAD_clust ] = MEG_sensors_MonteCarlosim_LBPD_D( S )
% It identifies spatio-temporal clusters (by using islands3D_LBPD_D.m) on a binarized
% 3D matrix and then computes Monte Carlo simulation for testing the significance of the
% clusters in the original data. The clusters alwa... |
1ca2d6e4c6e70a6440342edc43158156c58fdb73572e7a5bc101c149104444c1 | MATLAB | 15,871 | 312 | function [ ] = DTI_cluster_perm_2groups_LBPD( S )
% It calculates clusters (neighbouring voxels) of significant voxels after
% statistics computed comparing the DTI of two groups of subjects.
% It permutes the significant voxels and compute the clusters also for the
% permuted data to get the significant clusters wit... |
fc186698f5d372329f7e994448675436308e2f54717588ac472d12771f068b7d | MATLAB | 15,880 | 449 | function CBH = cbfreeze(varargin)
%CBFREEZE Freezes the colormap of a colorbar.
%
% SYNTAX:
% cbfreeze
% cbfreeze off
% cbfreeze(CMAP) % Freezes it with this colormap!
% cbfreeze(CMAP,'off')
% cbfreeze(H,...)
% CBH = cbfreeze(...);
%
% INPU... |
520aee6324081c415c6273d87db68dd876cb7df22cc12c5085a0c080047038c3 | MATLAB | 15,920 | 338 | function BCCT_Modulation_stat_mainfunc(Parameter)
Outputdir = Parameter.Outputdir;
Inputdir1 = Parameter.Inputdir1;
Inputdir2 = Parameter.Inputdir2;
RealComp1 = load(fullfile(Inputdir1,'RealCompPara.mat'));
RealComp2 = load(fullfile(Inputdir2,'RealCompPara.mat'));
if ~strcmp(RealComp1.RealCompPara.mod,RealComp2.RealC... |
cadfd49960f96c0f2923f35ea28a519cdc97e941087c581189862e9b29650a66 | MATLAB | 16,065 | 413 | function varargout = process_nst_bootstrap_MNE( varargin )
% process_nst_bootstrap_MNE: use bootstrap estimator of the mean followed by MNE.
% @=============================================================================
% This function is part of the Brainstorm software:
% http://neuroimage.usc.edu/brainstorm
%
% Cop... |
34949995e3e8d51e128e023f7c8e639317cc6cb08252550c2cd00a85272bee18 | MATLAB | 16,173 | 282 | % Clear the workspacesave
clc;clear
% -------------------------------------------------------------------------
% values to change if needed
name{1} = "Thr181"; % First channel name
name{2} = "AT8"; % Second channel name
JointAreaFiler = 0.45; % Initial area filter to clean up the data.
Areafilter = [1.25 11];... |
c3ede85b78b5b678869770af7df90e44e7088852bab4c8433c508a027e2b6d6b | MATLAB | 16,228 | 712 | %% This is the code for eye movement correction in the paper "Subspace reverse-correlation estimation of receptive fields during free viewing"
%% Loading the data
clc;
clear;
experiment='np01_003_000'; % Experiment name
data=load(strcat('./data/',experiment,'.db'),'-mat'); % loading the log data
% dimensions of the vi... |
92262effab054877fd8f02c9a9562278f5419cb9e32f55b08eb6abd69447e5ac | MATLAB | 16,519 | 390 | function spt_layover_module_max_distance()
figure();
set(gcf,'name','Single Particle Tracks Max Distance','NumberTitle','off','color','w','units','normalized','position',[0.2 0.2 0.4 0.7],'menubar','none','toolbar','none','WindowButtonMotionFcn',@mouse_move,'WindowButtonDownFcn',@mouse_down,'windowkeypressfcn',@key_p... |
767dfc9bf2e2ba961221c551c2758d9574f116d755dc2050dc687086a9f07b71 | MATLAB | 16,612 | 287 | clear all; % Clear all variables from workspace
close all; % Close all open figure windows
% Add the analysis scripts folder (and subfolders) to the MATLAB path
addpath(genpath("C:\Users\frada\Desktop\WORK in PROGRESS\LAB\TouchScreen_project\Matlab Script\Analisi dati"));
% Root folder containing the experi... |
a21e0554de2c513f00661be83895305455cf5f96a0618a9747e21de62f23239d | MATLAB | 16,664 | 554 | % Using 2D or 3D affine matrix to rotate, translate, scale, reflect and
% shear a 2D image or 3D volume. 2D image is represented by a 2D matrix,
% 3D volume is represented by a 3D matrix, and data type can be real
% integer or floating-point.
%
% You may notice that MATLAB has a function called 'imtransform.... |
4d1187e4836f9697c1ee12796d25336940552f3122b57cfd065b7b979221f00d | MATLAB | 16,675 | 470 | %% ================================================================
% HC: M16 beta + M19 beta (MATLAB Version) - PUBLICATION READY
% Metric calculation & plotting (W 60 mm × H 70 mm)
% Output: F:/PIT/ISPSplot/
%
% Revisions:
% 1) Figure size: W=60 mm (6.0 cm), H=70 mm (7.0 cm)
% 2) Larger white triangle for Mea... |
0b9ad89e8c35a2716b88192d44e95c35da070834ee274c6e0c0fca02db3a925f | MATLAB | 16,688 | 387 | classdef GLMTest < matlab.unittest.TestCase
properties
tmp_dir
end
methods(TestMethodSetup)
function setup(testCase)
tmpd = tempname;
mkdir(tmpd);
testCase.tmp_dir = tmpd;
utest_bst_setup();
end
end
methods(TestMe... |
68518033111d60f658f70d18491d7022989c5e5fdeabc816fc90b1c6053e5d0c | MATLAB | 16,719 | 628 | %% load data
load('svm_mat555');
[s v t]=size(svm_mat);
sn=Design_Para(:,6)';
mn=Design_Para(:,4)';
corrcoef(mn,sn)
crosscorr(mn,sn)
autocorr(mn)
autocorr(sn)
for i = 1:size(svm_mat,1)
for j = 1:size(svm_mat,3)
%svm_mat_norm(i,:,j)=mat2gray(svm_mat(i,:,j));
svm_mat_std(i,:,j)=(svm_mat(i,:,j)-mean(svm_mat(i,... |
9bff8f1eb78a1c84284d46c5e316ba8b7078bb92a3562a862d568f81e6d3f571 | MATLAB | 16,729 | 344 | function colocalization_statistics_module()
figure()
set(gcf,'name','Colocalization Statistics Module','NumberTitle','off','color','k','units','normalized','position',[0.25 0.2 0.5 0.6],'menubar','none','toolbar','figure')
global data listbox
uicontrol('style','pushbutton','units','normalized','position',[0,0.95,0.... |
d523eb541ff28c38e1a38ccfe0c1fff70f47e178c59fa21d4acd8c16f63351fb | MATLAB | 16,929 | 450 | function varargout = process_nst_iir_filter( varargin )
% @=============================================================================
% This software is part of the Brainstorm software:
% http://neuroimage.usc.edu/brainstorm
%
% Copyright (c)2000-2013 Brainstorm by the University of Southern California
% This soft... |
016e1870c8d86a937064b8b50f16bbfeaac3a5d24e9ee9352930e9f8cc673628 | MATLAB | 16,997 | 439 | function ShowResSep_in(Outputdir)
% Outputdir = uigetdir(pwd,'Output Directory Selection');
pathfile = which('ASBCmain.m');
[pat nam ext] = fileparts(pathfile);
BackGroundFile = fullfile(pat,'SomeTemplates','mni_icbm152_t1.nii');
[vBackGroud datBackGroud] = Dynamic_read_dir_NIFTI(BackGroundFile);
OutputdirFig = [... |
d7d20b92a6f6e8b763ffebfc41c9ca498c4da054e85a9437eaa2670dd6e2b13f | MATLAB | 17,058 | 663 | function d = SurfStatReadVol1( file, Z, T );
%Reads a single volumetric file in MINC, ANALYZE, NIFTI or AFNI format.
%
% Usage: d = SurfStatReadVol1( file [, Z, T] ).
%
% file = file name with extension .mnc, .img, .nii or .brik as above.
% Z = vector of slices.
% T = vector of times.
% If Z and T are both 0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.