sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
8c8051090f710e253ffaa6c424ea23c465c3204e8559b1d6a78aab6abc336be5 | MATLAB | 1,965 | 31 | %Plots PSD for given flicker condition and channel.
%2024/02/25
function plot_PSD(condition,channel,PSD_results,channel_labels,condition_code,color,std_error,show_trials,hide_60Hz)
%plot PSD:
psd_result=PSD_results.data{strcmp(channel_labels,channel),strcmp(condition_code,condition)}{1};
plot(PSD_results.d... |
064554e95ee4d26610e1aca2a789dc9877d68ec7cad7cff933896e95bfc06fd9 | MATLAB | 1,971 | 27 | %-----------------------------------------------------------------------
% Job saved on 06-Dec-2021 11:21:34 by cfg_util (rev $Rev: 7345 $)
% spm SPM - SPM12 (12.6)
% cfg_basicio BasicIO - Unknown
%-----------------------------------------------------------------------
matlabbatch{1}.spm.meeg.source.invertiter.D = 'UND... |
f874040c1fda1a35e392350d7040d445b201fd49662300540a3ceaca3cac5ff3 | MATLAB | 1,971 | 58 | function [counter,sprior,posteriors] = initPoteriors(data, nStates, method_kmeans)
warning('off')
if nargin<3
method_kmeans = 'subject';
end
switch method_kmeans
case 'group'
nSubjs = length(data);
[M,T] = size(cell2mat(data));
states = kmeans(cell2mat(data)',nStates,'Rep... |
725d4686c44c13af0b3062578ddc8114c2312e086f730dd1a17cdd3479646823 | MATLAB | 1,972 | 61 | function K = ME_GPR_kern(xi, xj, Kxx, L)
% _
% Kernels for Gaussian Process Regression
%
% Author: Joram Soch, BCCN Berlin - joram.soch@bccn-berlin.de (JS)
% Other contributors: Felix Toepfer - felix.toepfer@bccn-berlin.de (FMT)
% First edit: 20/05/2019, 15:40 JS
% Last edit: 19/06/2019, 10:00 JS
% Added sin... |
41a9e76773b29ef3d03b3c216e49b47f9497c29f488e21b7933fc0af824fde34 | MATLAB | 1,973 | 78 | % parseSchmitt detect segments of buffered threshold crossings
%
% y = parseSchmitt( x, hi, lo )
%
% to quality as a segment by standard threshold crossing, a segment has to be
% continuously above TH
%
% in this routine, a segment has to
% -be continuously about lo,
% -begin with a neg->pos hi crossing fol... |
451b6275205cc14a5d58ea3fa2851fd1961e6ffcaadf5b7fd63ba1d63987d7aa | MATLAB | 1,973 | 84 | function [pf,occH,bx,by,pX,pY] = PlaceField(S,X,Y,epoch,varargin)
% [pf,occH,x1,x2] = PLACEFIELD(tsa,X,Y,epoch,bins,occH,x1,x2);
% Different Usages
% 1- PlaceField(tsa,X,Y,epoch,bins);
% where bins is the size of the bins in cms
% 2- PlaceField(tsa,X,Y,epoch,x1,x2);
% you specify the binning spacing x1,x2 a... |
8ec04ac39afab0a488f4bc92f05c5e788ab6c35b6e0c196730d70556cc852db1 | MATLAB | 1,973 | 48 | % function output = transres_binomial_probability(decoding_out, chancelevel, varargin)
%
% Calculate the probability that each value in decoding_out came along when
% p = chancelevel/100 would be true. This can be used to calculate an
% approximate UNCORRECTED p-values on single-subject level.
%
% WARNING:
% Be aware ... |
9671daa6f48d6b9a710d62d91280342c4659ae6fcf8c3021ec456253efc79181 | MATLAB | 1,973 | 27 | %-----------------------------------------------------------------------
% Job saved on 06-Dec-2021 11:21:34 by cfg_util (rev $Rev: 7345 $)
% spm SPM - SPM12 (12.6)
% cfg_basicio BasicIO - Unknown
%-----------------------------------------------------------------------
matlabbatch{1}.spm.meeg.source.invertiter.D = 'UND... |
44d498dd07cdd19c035822ba35effc449ebbfc6d8bed988380c2fa0e1fcfee0c | MATLAB | 1,974 | 67 | %% Plot choice vs mADC scatter plot ( Pooled across sessions + angles )
load('data/choice_vs_madc_RFTrials.mat')
%% Monkey G
sens_madc{1} = best_thet_est.G{1}(1,1:4);
c_madc{1} = best_thet_est.G{1}(1,5:8);
for iLoc=1:4
bias_madc{1}(iLoc)=exp(-(sens_madc{1}(iLoc)*(c_madc{1}(iLoc)-(0.5*sens_madc{1}(iLoc... |
01660cac2b4824e08e8547ba5b62b04d7220df1f0766619ced83363baa0d0550 | MATLAB | 1,978 | 52 | function [pre_af_ini] = find_preaf(data, AF_ini, fs, dis_thresh, tw, mean_rri)
% FIND_PREAF Identifies the start index of the pre-atrial fibrillation (pre-AF) phase.
%
% [pre_af_ini] = find_preaf(data, AF_ini, fs, dis_thresh, tw, mean_rri)
% analyzes a segment of ECG data to determine the beginning of the pre-AF
% ... |
9c16cc8b4a14f976dbcd930119d0b11a605ab9377ac200cfbc486aaed5723fc6 | MATLAB | 1,980 | 27 | %-----------------------------------------------------------------------
% Job saved on 06-Dec-2021 11:21:34 by cfg_util (rev $Rev: 7345 $)
% spm SPM - SPM12 (12.6)
% cfg_basicio BasicIO - Unknown
%-----------------------------------------------------------------------
matlabbatch{1}.spm.meeg.source.invertiter.D = 'UND... |
cd447894d0e2827d639e7e1112bc07e40989078a502e64d4f7cbbcce027afe56 | MATLAB | 1,982 | 27 | %-----------------------------------------------------------------------
% Job saved on 06-Dec-2021 11:21:34 by cfg_util (rev $Rev: 7345 $)
% spm SPM - SPM12 (12.6)
% cfg_basicio BasicIO - Unknown
%-----------------------------------------------------------------------
matlabbatch{1}.spm.meeg.source.invertiter.D = 'UND... |
413810729a3ea76ff183b64c65b297092f79c306a6907d9139e9e887cf82d944 | MATLAB | 1,985 | 74 |
% Extract the valued from the IPC using a sphere centered on Schindler et
% al., 2013 coordinates (Schindler A, Bartels A. Parietal Cortex Codes for
% Egocentric Space beyond the Field of View. Current Biology. 2013;23(2):177-182. doi:10.1016/j.cub.2012.11.06)
%%Set up the environment
clc
clear
restoredefaultpath
S... |
616a4229adee9945505d45cd2c91f2ad517ed4f45437f491fcd844d18369f473 | MATLAB | 1,985 | 51 | function popGeometry_plotSignalNoiseAxes3D(data, NperGroup, fHyperplane, signalVector_toUse, noiseVector1, noiseVector2)
s1 = plot3( data(1:NperGroup,1), data(1:NperGroup,2), data(1:NperGroup,3), 'ro');
hold on
s2 = plot3( data(NperGroup+1:end,1), data(NperGroup+1:end,2),data(NperGroup+1:end,3), 'bo');
hold off
%== p... |
1da461592201300c887b9a83f5d07e942172c5bf595fad0246711223980b90b0 | MATLAB | 1,996 | 57 | function spots=bd3d(single_volume,thresholds,scaled_sizes,scaled_zsizes,scaled_sigmas,voxel_size)
sizes=round(scaled_sizes./voxel_size(1));
zsizes=round(scaled_zsizes./voxel_size(3));
sigmas=round(scaled_sigmas./voxel_size(1));
% volume LOG filtering
h = -fspecial3('log', [sizes sizes zsizes], sigmas);
If = i... |
3ff0b451f771f98afb8ae83e600115876433fca4af2248d897d700639ba8aa82 | MATLAB | 2,002 | 60 | %{
Copyright (C) 2023 N. Suhas Jagannathan
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 version.
This program is distributed i... |
bf291fbdd711583f061a93e78268b8bf003e6f6843ebd9785892fca5e2c63a46 | MATLAB | 2,002 | 68 | %MultinomialConfidenceIntervals - Simultaneous multinomial confidence intervals.
%
% Confidence intervals computed simultaneously on all cells using the method of
% Fitzpatrick and Scott (1987). This provides better estimates of the confidence
% intervals than the common (but erroneous) method where each cell is treate... |
f2d3cba5e67fd511f09fc05305aae7caa57c2dc31c14a25fd3088b3f5f0bac8f | MATLAB | 2,004 | 62 | function [r_est, m_est, k_est, AICw] = ME_vMMM_MA(y, mu, kr, s)
% _
% (Quasi-Bayesian) Model Averaging across von Mises Mixture Models
% FORMAT [r_est, m_est, k_est, AICw] = ME_vMMM_MA(y, mu, kr, s)
%
% y - an N x 1 vector of angles (domain: -pi <= y_i <= +pi)
% mu - a 1 x K vector of means (default: mu_1 = ... |
8c1cc329cd20292f0abd5b7a110ef74bb138b60e48f1e5c784059d44e317b9c9 | MATLAB | 2,006 | 78 | function imageStack=Kalman_Stack_Filter(imageStack,gain,percentvar)
% function imageStack=Kalman_Stack_Filter(imageStack,percentvar,gain)
%
% Purpose
% Implements a predictive Kalman-like filter in the time domain of the image
% stack. Algorithm taken from Java code by C.P. Mauer.
% http://rsb.info.nih.gov/ij/plugins/k... |
82f65dca726d12123493d785118e0693868129ad49c403f23dc26d56622a5f29 | MATLAB | 2,010 | 42 | %Runs PSD analysis for flicker trials, using the Chronux toolbox.
%THINK ABOUT ADDING STEP TO GET RID OF ARTIFACTS
%2024/02/25
function static_ent_PSDanalysis(fnames)
%Define output folder and load trials data:
outputFolder=[fnames.preprocdata_folder '/LFP/static_ent'];
disp('Loading trials timestamp data.... |
97fc8a6379cd9b152c08446064fb96c4e383056c5bd4fffdd149bc82a9bf5dfe | MATLAB | 2,010 | 61 |
function plot_ERP(ERP_results,condition,channel,std_error,show_trials,show_stim)
%find which ERP_results correspond to condition
cond=find(strcmp(ERP_results{end},condition));
if endsWith(condition,'occluded_AV') || strcmp(condition,'Baseline')
line_color='k';
elseif endsWith(condition,'AV')... |
0ea2bc8c1a424596c61f285dcdcdaa77db4728384360d55a02d5f84a1f9fcb82 | MATLAB | 2,013 | 37 | function data= decodeComplexTTL(data, recording_config)
t = data.time;
data_fields = fields(data);
nFields = size(data_fields,1);
for iField=1:nFields
if strfind(data_fields{iField},'ComplexTTL')
n_rec_config=size(recording_config,2);
for i_rec_config=1:n_rec_config
... |
1396b1cdef4a677737b49077b161296a53629aca79a5237980021dc20685e19d | MATLAB | 2,013 | 81 | %function lHandles = Lines(x,y,col,style,width)
% plots vertical lines at x coortinated
% from y(1) to y(2) , sets color col
function h = Lines(varargin)
ax = axis;
[x, y,col,style,width] = DefaultArgs(varargin,{[],[], 'r','-',1});
if size(col,1)>size(col,2)
col = col';
end
if isempty(y)
if isempty(y); y=ax(3:... |
05ef8c21de5e15e33712d44680b54eeba5e866917711448bd9c88f254d3bbec7 | MATLAB | 2,014 | 79 | function [tdim,xdim,ydim,zdim,data] = readvtc(filename)
% function [tdim,xdim,ydim,zdim,data] = readvtc(filename)
%
% from from http://ebc.lrdc.pitt.edu/discuss/read.php?4,24
%
% reads in a single volume timecourse (.vtc) file
% input:
% filename: name of vtc file to open
% output:
% xdim: x dimension of .vtc image
% ... |
34ff78ded7d34cb2e06addb0b5f62903e347d478ded7cd2336999cfb87999678 | MATLAB | 2,016 | 58 | % bv_comparesmp
%
% Reads VMP, reconstructed SRF, and SMP that are output by BrainVoyager
% and computes a new smp stat map using the SRF vertices in the VMP.
% To see if the mapping between volume and surface is understood.
%
% History:
%
% 2004.03.12 bds wrote it
% 2004.06.10 bds version for Fr... |
50a5f4544c465ba83ed373b3bcdb40755f446b095e9f557d1262d8cc0fc6c3e9 | MATLAB | 2,017 | 69 | clear
[task_info,supPath,~,task_DB_path] = loadDBAndSpecifyDataPaths('Vermis');
EPOCH = 'pursuitLatencyRMS';
PLOT_CELL = false;
req_params = reqParamsEffectSize("pursuit");
% req_params.grade = 7;
% req_params.cell_type = {'PC ss','CRB','SNR','BG msn'};
% req_params.task = 'saccade_8_dir_75and25|pursuit_8_dir_75and... |
e68ec1c25d5051fee64255ab0d7ccefe126931b5ba6422ab1c0780199b434150 | MATLAB | 2,017 | 65 | function ple(s)
% PLE "Print Last Error"
%
% ple prints the last error message issued by Matlab, including a complete
% backtrace of the call-sequence of functions that led to the error
% condition. Each line in the backtrace includes M-Filename and line number
% and allows you to open that file on the specified line b... |
309620ef7d164bfae2375ed10189e3f83337d85eca9a22144b512d6e8cbbe555 | MATLAB | 2,019 | 77 | function data = Sum(transformer, data)
%
% Computes the (optionally weighted) row-wise sums of two or more columns.
%
%
% Arguments:
%
% :param Input: **mandatory**. Names of two or more columns to sum.
% :type Input: array
%
% :param Output: **mandatory**. Name of the newly generated column.
% :... |
3be3db68334b3ebaa9ac91718df898340521242851027e2bda128fd3aeafb968 | MATLAB | 2,019 | 54 | function [mask, prior] = rbfprior(rbfunc, nin, nhidden, nout, aw2, ab2)
%RBFPRIOR Create Gaussian prior and output layer mask for RBF.
%
% Description
% [MASK, PRIOR] = RBFPRIOR(RBFUNC, NIN, NHIDDEN, NOUT, AW2, AB2)
% generates a vector MASK that selects only the output layer weights.
% This is because most uses of RB... |
52b61eb4bc08b74d97341611e45462e6a382378beb8e868ccdcd4ea91f8f0164 | MATLAB | 2,019 | 74 | function im = intervalFun(tsa, is, func, varargin)
% im = intervalFun(tsa, is, func, options) computes mean of tsa data in each of the intervals in isw
%
% INPUTS:
% tsa: a tsd object
% is: an intervalSet
% func: strign defining the functino to apply to the tsd, possible values
% are
% 'mean', 'var', 'std', 'min', 'ma... |
5523366c54172ff6ef31cdce68a89da4144d195adb36ea32232c08cdef8d6f4f | MATLAB | 2,022 | 62 | function PatternChange_Regression_2nd()
cfg = load('neurovar_cfg.mat').cfg;
n_sub = 44;
a_title = 'analysis_title';
res_dir = fullfile(cfg.global.deriv_dir, 'Pattern_Change_Regression', strcat(a_title, '_2nd'), '_results');
mkdir(res_dir);
%% Contrast
clear matlabbatch
clear scans
con_dir = fullfile(cfg.g... |
ba76f8ba590efcfc9ef7710591bf65da1f4cf322a3a2acf9d7797cc6ca5bc704 | MATLAB | 2,023 | 77 |
%% Add path
addpath(genpath('../../Ionnic Channel'),genpath('../../Tools'), genpath('../../Synapses'), genpath('../../Datas'));
%% Import data from neuron (FS)
dt = 0.00001;
Vmem = -0.090:dt:0.060;
l_V = length(Vmem);
ninf = zeros(1, l_V);
taun =... |
c449f78be94061dfa7773cb5eebe3d2a624631eb193b47cb65ecdca36de7e814 | MATLAB | 2,026 | 47 | function [mat2d_T2_mapscan,cj] = isolation_rois(dmat4d_cropped,dmat3d_cropped_label,cj,mat2d_T2_mapscan)
%For method 3
%In this function, we convert the ROI mask into a binary mask for a given ROI
%Then the T2 scan is multiplied with this binary mask to isolate the T2 values for that given ROI
%once all the T2 va... |
2d1bd3140aa7013571d609c82282f6746c6a76045fb33414eabfbd0d20ab46ce | MATLAB | 2,027 | 43 |
filepath = 'E:\NAS_SD\SuiviClient\Triffilieff\RevueCodeJulien\DataExemples\Fichiers Doric\M67350_20220802_sess09_rec1_Pavlovien_M_DELTA_2.csv'
%% LOAD DORIC DATA
[header, data] = load_doric_csv(filepath);
raw_signals = doric_csv_to_data_structure(header,data);
function [header, data] = load_doric_csv(filepath)... |
3d59c146ca2faa5f968be381592b0fab625d102d323038fc0fda09cdee63ffb0 | MATLAB | 2,030 | 64 |
%% Add path
addpath(genpath('../../Ionnic Channel'),genpath('../../Tools'), genpath('../../Synapses'), genpath('../../Datas'));
%% Import data from neuron (FS)
dt = 0.01e-3;
t = 0:dt:0.1;
l_t = length(t);
%% Matrix Initialization
tau1 = 0.011; % s
tau2... |
6d6d4ca00a3e310fc17c9d8e65678cbb354d42517acd0e8bafc82d8fa159e84f | MATLAB | 2,030 | 54 | function [allregion_unit_matched]=peak_train_assembly_210914(table_ff, table_fb, time_idx)
for rec=1:length(table_ff)
[rwtb,~]=size(table_ff{rec});
times_table=table('Size',[rwtb,10],'VariableTypes',{'string','string','double','double','cell','cell','cell','cell','cell','cell'},...
'VariableN... |
915cf046653b33075752ca6f5e2505d0174921750c4df3899927ca391371337b | MATLAB | 2,031 | 49 | function [zval, p, U] = mv_stat_wilcoxon_ranksum(X, group, n1, n2)
% Two-tailed Wilcoxon rank sum test (equivalent to the Mann-Whitney U test).
% Unlike Matlab's ranksum function, it also works for multi-dimensional
% arrays.
%
% Usage:
% [zval, p, U] = mv_stat_wilcoxon_ranksum(X, group, <n1, n2>)
% [stat, p] = mv_stat... |
fd8fabe1c2c1bb1abf19a42b9f770b78ab29873c32046ccd79b0b5a7359c3c14 | MATLAB | 2,034 | 52 | %Plots modulation or PLV amplitude (and significance) by flicker frequency of stimulation.
%2024/02/26
function plot_ent_by_freq(zscore_table,pvalue_table,ch,display_pvalue,varargin)
if length(varargin)==1 && strcmp(varargin{1},'plv')
line_style=':';
marker_style='d';
else
line_style='-... |
0f33e26ce124f88bc0028d8c238b1109c004754ff67b9ec09e1d2a8277ed2add | MATLAB | 2,039 | 55 |
datapaths;
SpontFluo = readtable(fullfile(ImgPath,'SpontFluoSalicylate.csv'),'Delimiter',',');
data = [SpontFluo.GR_pre,SpontFluo.GR_sal,SpontFluo.GR_post];
ss = readtable(fullfile(ImgPath,'SpontFluoSalicylate_CI.csv'),'Delimiter',',');
av = ss.Value(ismember(ss.Group,{'pre','sal','post'}));
cis = [ss.CIs_1(ismember(... |
bb1808ecc9a1887675bbf06bc753baaeeadf3dce3373879e8cf94996ea186baa | MATLAB | 2,039 | 78 | clear all
[task_info,supPath,MaestroPath] =...
loadDBAndSpecifyDataPaths('Vermis');
NUM_COND = 20;
req_params.remove_repeats = 0;
req_params.grade = 7;
req_params.cell_type = 'PC ss';
req_params.task = 'choice';
req_params.ID = 4000:5845;
req_params.num_trials = 100;
req_params.remove_question_marks =0;
req_param... |
3cd6c814f8c7516ca8066442e8333932219795ab37f19873499f8017e5520bdf | MATLAB | 2,042 | 50 | % @title Generate synaptic connection for assembloid (prioritize connection to close by neurons)
% @file syncon_assembloid.m
% @author Romain Beaubois
% @date 06 Aug 2021
% @copyright
% SPDX-FileCopyrightText: © 2020 Romain Beaubois <refbeaubois@yahoo.com>
% SPDX-License-Identifier: GPL-3.0-or-late... |
44fb39ff967b28661cf7486e7cc1bf3d547d368287094fe2bffdf30f9bc34ff5 | MATLAB | 2,043 | 64 | %% This code runs the Frechet Distance analysis on subsampled rewarded trajectories (to reward) (select_RtR_interpol6ms)
for g = 1:NumGroups
numAn = size(G(g).Data,2);
numD = size(G(g).Data,1);
%% 2) Make a matrix with all animals and days and num of trials used (select_RtR)
for Animal = 1:numAn
for... |
cdbcb4350eca21127269522f18b982332505e90441fce27831f765fcc05dd049 | MATLAB | 2,043 | 61 | clear,clc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This script is used to perform prediction of another math measure based
% on CCA of brain-behavior analysis
%
% Jin
% 7/25/2022
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% set the file pa... |
f81a7b16fc17bf4a2f896f58def80590fb2765e448b8a73e3f6e55c3a9fa76bc | MATLAB | 2,044 | 56 | function msBatchSegmentsInField(dirName)
%MSBATCHSEGMENTSINFIELD Summary of this function goes here
% Detailed explanation goes here
dataFolders = msBatchFindDataFolders(dirName,[]);
refFolderNum = ceil(length(dataFolders)/2);
currentFolder = dataFolders{refFolderNum};
temp = load([currentFolder... |
fd7572a06f115ffc3843324166625bf15358b8debf73a6affb85f3ecbfd30c28 | MATLAB | 2,044 | 77 | function [mu, thrlo, thrhi] = trimmean(x, percent, dim, flag)
%Replacement for the matlab version of trimmean
%Implementation according to Wilcox; Robust Estimation
%and Hypothesis Testing
%
%The difference with the matlab implementation is that
%percent is applied to both tails of the distribution
%in the present imp... |
ae66ce8596441e3f9e1c240d7c9a1e97487b86692eb22ab2e41250589a2897b7 | MATLAB | 2,046 | 66 | clear
[task_info,supPath] = loadDBAndSpecifyDataPaths('Vermis');
PLOT_CELL = false;
EPOCH = 'cue';
BIN_SIZES = [100, 20];
req_params = reqParamsEffectSize("both");
lines = findLinesInDB (task_info, req_params);
cells = findPathsToCells (supPath,task_info,lines);
list = [];
for ii = 1:length(cells)
data =... |
ef07e0c42b014f49edb871ac34a1b024eb457a9164a77dad256aa4dfd7d4586b | MATLAB | 2,046 | 54 | function [accumulatedField] = add_update_field_to_acc_field(...
updateField,accumulatedField,accumulationMethod,interpolation)
% ADD_UPDATE_FIELD_TO_ACC_FIELD Accumulates the update field to the accumulated field
%
% [accumulatedField] = add_update_field_to_acc_field(...
% updateField,accumulatedField,accumulatio... |
18e31c9d83c975a390d8da67e9febe8332ae909be6ea46915f0d80a8ccaa17eb | MATLAB | 2,047 | 61 | clear,clc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This script is used to perform prediction of NKI math scores based on
% CCA of brain-behavior analysis from Stanford cohort
%
% Jin
% 7/25/2022
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% ... |
64534016af5d5f90f73988fd8a961e12661ed1186372a4b65a0d057b8f0d5993 | MATLAB | 2,047 | 77 | function [fh, rasterAx, histAx] = RasterPETH(S, center, TStart, TEnd, varargin)
font_name = 'Arial';
font_size = 10;
font_weight = 'bold';
line_width = 2;
opt_varargin = varargin;
defined_options = dictArray({ { 'RasterFraction', {0.7, {'numeric'}} }
{ 'BinSize', {10... |
3672505437f219e65127e4f1b7c6458e4f35ebae5480da521ce6666218a1d166 | MATLAB | 2,050 | 66 | clear all;
addpath('/Volumes/LASA/TBI_OpenNeuro/TBI_openneuro/timeseries/inputs_sch1000/');
addpath('/Volumes/LASA/TBI_OpenNeuro/Shared_code/Hopf_TBI_ON/');
load tseries_openneuro_tbi_tp123_sch1000.mat; % Load your data
% Parameters of the data
TR=2; % Repetition Time (seconds)
NSUB=12;
NPARCELLS=1000;
Tmax=144;
NCON... |
e48b7e19943e81d32b9bdf19c71e4f2b19a9aed3e5e4bbd46172408905ad5543 | MATLAB | 2,051 | 62 | function extracted_data = extract_relevant_data(data, sub_id, p)
% function extracted_data = extract_relevant_data(data, log, exp_struct, p)
%
% Extract the relevant data for decoding.
%
% Input:
% - data: [n_tr, n_voxel, n_run] array with data.
% - run_log: Struct with one index per run. log.runNumber is adjuste... |
b1039c03d7d7a67959ab46e8dd627b2d2ed81b95b485542f95970a58743875d9 | MATLAB | 2,056 | 58 | function BaseEval=PointCompareMain(cSet,Qdata,dst,dataPath)
% evaluation function the calculates the distantes from the reference data (stl) to the evalution points (Qdata) and the
% distances from the evaluation points to the reference
tic
% reduce points 0.2 mm neighbourhood density
Qdata=reducePts_haa(Qdata,dst);
t... |
d5a5942eb38779e940c5cde87ae78c3ca713c10c74160bdcdd30de666e7c2228 | MATLAB | 2,056 | 49 | % @title Generate synaptic connection for connectoid (prioritize connection for neuron on the outside of the organoid)
% @file syncon_connectoid.m
% @author Romain Beaubois
% @date 06 Aug 2021
% @copyright
% SPDX-FileCopyrightText: © 2020 Romain Beaubois <refbeaubois@yahoo.com>
% SPDX-License... |
d5d9de0562342dfa397a7e5491b50098755a68aba3359891dad709fa74cc8c65 | MATLAB | 2,057 | 72 | % STATEMAP2D() - Projects spectral power estimates on 2D map that separates
% sleep-wake states
%
% Usage
% [ratio1,ratio2] = statemap2D(data,f)
%
% Inputs
% data = time-frequency power spectra per region (frequency,epochs,region)
% Original article used 2-s epochs in 1-s s... |
dbbb50ad12766782caf41e2fc216c4f8814c29a984883680c903c7a4adbf11bb | MATLAB | 2,063 | 81 | %% CLEAR AND INITIALIZE
clear
close all
clc
source_dir = 'E:\NAS_SD\SuiviClient\Triffilieff\AnnaRoman\DataRoman';
dest_dir = 'E:\NAS_SD\SuiviClient\Triffilieff\AnnaRoman\DataRoman';
if ~exist(dest_dir)
mkdir(dest_dir)
end
listing = dir(source_dir);
for i=3:size(listing,1)
f = listing(i).name;
fpr... |
48f547dc2530ac12f76bc65bbaa03fa73dbc730bc6cab143b30eef06791318aa | MATLAB | 2,065 | 64 | function [subj] = set_objsubfield(subj,objtype,objname,fieldname,subfieldname,newval,varargin)
% Sets the subfield of the object to NEWVAL.
%
% [SUBJ] = SET_OBJSUBFIELD(SUBJ,OBJTYPE,OBJNAME,FIELDNAME,SUBFIELDNAME,NEWVAL,...)
%
% Works very similarly to SET_OBJFIELD.
%
% For instance, the DESCRIPTION of an object is st... |
a125cc6c412007dcdb25f439e98e2328732d6f72a4187678d5a0173723129758 | MATLAB | 2,065 | 84 | % MTCOH multi-channel coherency (not time-resolved)
%
% [ c, freq ] = mtcoh( varargin )
%
% based on mtcsd.m (see help there)
% returns coherency (complex)
% when called without output arguments, plots spectra, coherence, and phase
% of the last pair
%
% coherence = abs( c );
% phase = angle( c );... |
b0f7da0c15b2a9e2079820261d41735b6d0a2c6103972602bbb70f19bd110722 | MATLAB | 2,065 | 65 | function [g, gdata, gprior] = rbfgrad(net, x, t)
%RBFGRAD Evaluate gradient of error function for RBF network.
%
% Description
% G = RBFGRAD(NET, X, T) takes a network data structure NET together
% with a matrix X of input vectors and a matrix T of target vectors,
% and evaluates the gradient G of the error function wi... |
e9645b39823149bd3c554d3cc485fdaad94712087c06fff05953b9b047c7f26c | MATLAB | 2,066 | 59 | function [SEGMENTATION] = data_seg(DATA, fs, LABELS, dis_thresh, tw, n_file)
% DATA_SEG Segments the input data based on atrial fibrillation (AF) events.
%
% [SEGMENTATION] = data_seg(DATA, fs, LABELS, dis_thresh, tw, n_file)
% segments the input DATA into sinus rhythm (SR), pre-AF, and AF phases
% based on LABEL... |
99558886b311208e7c7719ee445697e042cb3af1cf8f690de107a2d3dd980a6d | MATLAB | 2,070 | 50 | function twoStepDeconvolution(imageDirectory,imageName,psfPath,numberIterations)
%% twoStepDeconvolution
% imagePath is the path to the folder containing the image file.
% imageName is the name of the image to deconvolve
% psfPath is the path to the PSF file - e.g., /project/cellbiology/Dean_lab/shared/psfs/ctASLM2-510... |
a899aa94de01858ea6cae7d00f6cde7282f14c4450ec888377d4634a20c6c181 | MATLAB | 2,070 | 59 | function [bDL, bDT] = EPG_diffusion_weights(G,tau,D,Nvals)
% function [bDL bDT] = EPG_diffusion_weights(G,tau,D,Nvals)
%
% Computes array of diffusion weighting values exp(-bD)
% Inputs:
% - G = gradient amplitude(s) mT/m - can be one or more
% - tau = duration of gradients ms - same leng... |
8eb294212aa2314ecfee2f32628cd8ccf7fc2129b9b5cdb973270964f11d6fbe | MATLAB | 2,071 | 85 | % this is a script, not a function, so it can assecc the function
% workspace. it will process the array opt_varargin looking for option
% name/option value pairs.
% it expects to find a defined_options dict array, with option names as
% keys. The value is a cell array first element contains the default
% value, the s... |
767841feaeff7292590670d43f654c830f7f96b7c55b72823d4d8c2022fb7edf | MATLAB | 2,074 | 61 | function [Vectors, Av_Vector, AngleDiff] = Initial_Vectors_Ph2(Traj_in, radius, merge)
% calculates the initial vector and average initial vector of Trajectories
% input should be trajectories truncated at specific radius
% inputs Target_Angles and TargetNum are needed to calculate the AngleDiff
% which is the a... |
ef5d26f0848913377d499ca7ef24675b7c8e1857e442dc4acd7b06d988b01942 | MATLAB | 2,074 | 72 | function [errs warns] = unit_spm_ana_haxby_dat_compare(varargin)
% Unit test for read and write to SPM
%
% [] = UNIT_SPM_ANA_HAXBY_DAT(varargin)
%
% This tests the quality of the information saved out vs. the original
% data. It's meant to be geared towards the tutorial_easy_spm system.
% Specifically it's te... |
69d3569ffde186ba9c069d3b3409d693d4cacc11c09181172a21d07891af8b73 | MATLAB | 2,076 | 63 | function display_motion_field(motionField,figNo,title,removeMean,varargin)
% DISPLAY_MOTION_FIELD Displays a motion field
%
% display_motion_field(motionField,figNo,title,removeMean)
%
% INPUT ARGUMENTS
% motionField - Motionfield to display
% figNo - Figure number to display motion field in
%... |
93f583f408f117d37d8cae697b902cd10c147e097a6327495395f0cb1e8bfca8 | MATLAB | 2,076 | 70 | function [avgresults] = ebc_average_results(subj, stem)
% Averages results structure across subjects
%
% [AVGRESULTS] = EBC_AVERAGE_RESULTS(SUBJ, STEM)
%
% Loads three .mat files with the name STEM<N>.MAT, where N
% ranges from 1 to 3. Averages the "acts" field of the
% results.iterations struct across all three data... |
e147d332f88b3d45aee35cc91d1cc879681de7b6566f87a7ed4d9b5015201324 | MATLAB | 2,076 | 74 | function [p, b] = guiOutsideScreenBorders(hObject)
%
% Syntax:
% [p, b] = guiOutsideScreenBorders(hObject)
%
% Description:
% Calculates the amount that a figure with handle hObject falls outside of screen borders and returns
% the new position, p, which shifts the original position by the amount to have the... |
7f07a2a275ada470733f887932c797938a19c1b4267a7598dc7fb20011abb19c | MATLAB | 2,077 | 45 | function [z] = sandwichMx4(x, y)
% z = sandwichMx2(x, y)
% compute x*y*x' provided y = hermitian
% and dimensionality is 2x2xN, x should be Mx2xN
%FIXME build in check for hermitianity
z = complex(zeros(size(x,1),size(x,1),size(x,3)));
xconj = conj(x);
xabs2 = abs(x).^2;
for k = 1:size(x,1)
z(k,k,:,:) = xabs2(... |
55aa9139d459fe21c90c27748d7441006e103d32101cf24588022e9b0c42aad6 | MATLAB | 2,079 | 74 | clear all
[task_info,supPath,MaestroPath] = ...
loadDBAndSpecifyDataPaths('Golda');
angles = [0,90];
probabilities = [0:25:100];
col = varycolor(10);
req_params.grade = 7;
req_params.cell_type = 'CRB|PC';
req_params.task = 'choice';
req_params.ID = 4000:5845;
req_params.num_trials = 100;
req_params.remove_quest... |
1bdb7ee6f20452f7d0a7f35a1dc8bce72822955936c086146135ac3d2c7acdb0 | MATLAB | 2,080 | 66 | function [effectSizes, tbl, rate, numTrials, pValsOutput] = ...
effectSizeInEpoch(data,epoch,varargin)
p = inputParser;
defaultPrevOut = false;
addOptional(p,'prevOut',defaultPrevOut,@islogical);
defaultBinSize = 50;
addOptional(p,'binSize',defaultBinSize,@isnumeric);
defaultVelocity = false;
addOptional(p,'ve... |
77cbe61e5ebb2d004a420f7f2a6547469d38021b97bebb4d11cf957cf74f09ec | MATLAB | 2,080 | 78 | %% list of cell IDs
clear
[task_info,supPath,MaestroPath] = ...
loadDBAndSpecifyDataPaths('Vermis');
req_params.grade = 7;
req_params.cell_type = 'PC ss';
req_params.remove_question_marks = 1;
req_params.remove_repeats = false;
req_params.num_trials = 100;
req_params.task = 'choice';
lines_choice = findLinesInDB... |
d4113c13d684a08db02fd1a15c826a10c15ba9bbb48ee2016a207831188eb497 | MATLAB | 2,081 | 74 | %clear all
[task_info,supPath,MaestroPath] = ...
loadDBAndSpecifyDataPaths('Vermis');
angles = [0,90];
probabilities = [0:25:100];
col = varycolor(10);
req_params.grade = 7;
%req_params.cell_type = 'BG msn';
req_params.task = 'choice';
req_params.ID = 5849;
req_params.num_trials = 100;
req_params.remove_questio... |
1ebcd60374aab3d8ab3d0f281c768d0750d1346bffe5648e8f7e70d27ae50a5d | MATLAB | 2,082 | 106 | % GPUSUPPORT Check if exist a GPU supported for computations
% [SUPPORT] = GPUsupport() return a boolean that indicate whenever a GPU
% that can be used for computations has been found or not. Whenever
% multiple GPU can be used it automatically select the best one.
%
% Copyright (c) 2012 Roberto Calandra
% ... |
d39e9f55179a7ce1130453a3a35e46919e3ef61f561e8d01f46fb04bf08b4b2a | MATLAB | 2,082 | 63 | function namesmaps = importfile(workbookFile, sheetName, dataLines)
%Matlab's self generated function to import animal ID names as well as
%segmentation mask names from an excel sheet
%IMPORTFILE3 Import data from a spreadsheet
% NAMESMAPS = IMPORTFILE3(FILE) reads data from the first worksheet in
% the Mi... |
a941acaf010ad9bc7cee9562aad8d966c38359dce84ec3c003121d79a55a9e1e | MATLAB | 2,085 | 86 | function lat = pValLatency(data,inx,plotOption,effectSize)
FIRST_RUNNING_WINDOW = -50:50;
SECOND_RUNNING_WINDOW = -10:10;
TIME_BEFORE = 0;
TIME_AFTER = 800;
DIRECTIONS = 0:45:315;
FIRST_INTERVALS = 5;
SECOND_INTERVALS = 3;
NUM_CONSECUTIVE_FIRST = 4;
NUM_CONSECUTIVE_SECOND = 4;
ts = -TIME_BEFORE:FIRST_INTERVALS:TIME_... |
09374d8a79c92330ff6bddb23f83c5955e29709bd17b121e4b4e7032a784973b | MATLAB | 2,086 | 76 | function [modified, added, deleted, untracked, cmds, errs, msgs] = gitStatus(repo)
modified = {};
added = {};
deleted = {};
untracked = {};
cmds = {};
if ~exist('repo','var') || isempty(repo)
repo = [pwd, '/'];
end
currdir = pwd;
repoFull = filesepStandard(repo,'full');
ii = 1;
cmds{ii,1} = sprintf('cd %s', repoF... |
cf6bad6b2638f1cd1057493de2b94da3fe59393e67881c715d54b1c129289ae3 | MATLAB | 2,086 | 80 | %% Show spiking activity of a neuron during exploration of specific object in all laps
% opt = 1; % show spiking during exploration only
% opt ==2, %show spiking during the entire lap
opt = 3; % show timeing of spikesc1factor = 0.8;
c1factor = 0.8;
x_r = traj1.x1;
y_r = traj1.y1;
t2 = ["Explored laps" "Un... |
634d85a57625c9e26d54d6dcccacb68a52679c168b8154decfda4f5637833b88 | MATLAB | 2,090 | 73 | function [fh, rasterAx, histAx] = RasterPETH(S, Pos, center, TStart, TEnd, varargin)
font_name = 'Arial';
font_size = 10;
font_weight = 'bold';
line_width = 2;
opt_varargin = varargin;
defined_options = dictArray({ { 'RasterFraction', {0.7, {'numeric'}} }
{ 'BinSize'... |
b82040bc750441be7dbfa37b71b50591065771a5802b85a4d675f06da0939257 | MATLAB | 2,091 | 51 | function timebaseFrequencyHz = MachAbsoluteTimeClockFrequency
% timebaseFrequencyHz = MachAbsoluteTimeClockFrequency
%
% OS X: ___________________________________________________________________
%
% Return the frequency of the Mach Kernel "absolute timebase clock". The
% frequency depends your hardware, both the mod... |
89212097de6ea63b44ba81b6ad8c292da11b078351da74ece73fb051014dd970 | MATLAB | 2,092 | 79 | function [errmsgs warnmsgs] = test_statmap_anova()
% USAGE :[ERRMSGS WARNMSGS] = TEST_VOXEL_STATMAP_AONVA()
%
% This is a script that tests the anova voxel selection method.
%
% ERRMSGS = cell array holding the error strings
% describing any tests that failed. If this is empty,
% that's a good thing
%
% WARNMSGS = c... |
92c54c04cae5583cba8135e822bfc6c6637ae8fcb39995cacb6db49af7c4b8ce | MATLAB | 2,092 | 53 | function [segemented_trial,other_events,trial_dur,deleted_events,deleted_trial] = Event_removeIncompleteTrials(event,complete_trial_events)
event_value = {event.value};
event_sampe = [event.sample];
result_idx = find(ismember({event.value},{'S101', 'S102'}));
roundRlt_idx = find(ismember({event.value},{'S104','S105','... |
efcf56473d05a0835d0b541d10ead663f430fd54079ac5210a175afb2483b9dd | MATLAB | 2,092 | 69 | function lfp = LoadLfp(fbasename,nchannels,channels,varargin)
% Loads LFP in a tsd object. Default sampling frequency @ 1250 Hz (or state otherwise)
%
% USAGE:
%
% lfp = LoadLfp(fbasename,nchannels,channels)
%
% INPUT:
% fbasename: session file basename
% nchannels: total number of channels in the
% ... |
5ff85d4fa2a7fa1ab7cbaf1e6a3e2ad3c6c77cab7b76ca67a1e6b2590aab6e6d | MATLAB | 2,095 | 58 | function [new_x_0,f_max,f_comp_max] = simGridNode(i,j,K,data,x_0)
%SIMGRIDNODE i, j, K, data, x_0
% Simulates one step in a grid simulation.
% i,j node indices
% K coupling matrix
% data data structure
% x_0 initial conditions
if isfield(data,'grid_par')
data.grid_par_1 = data.g... |
81ba78277a18d45123031138357b3b77907bafba662c22e55a4d16d5424569f3 | MATLAB | 2,101 | 76 | function corrImg = makeCorrelationImage(varargin)
% LR 2018. Make and save out a correlation image
% varargin: number of planes
if ~nargin
num_planes = 4;
else
num_planes = varargin{1};
end
% get file path
[filename, folderpath] = uigetfile('*.bin; *.raw; *.tif', 'Select a movie');
fullpath = [folderpath file... |
d99eb0e0410a481451c038e5309cdee599bb55306d9cb7b0d01a5e9b094bfad5 | MATLAB | 2,102 | 73 | function pSVR_plot_delay_accuracy(p)
% Get relevant variables from 'p'
delay = p.psvr.delay;
p.psvr.label = 'target';
%%% Prepare data %%%
% Load results
stats_file = dir(fullfile(p.dirs.data, 'analysis', 'all', 'results', ['pSVR_' p.psvr.event '_' p.psvr.label '_' p.psvr.roi '_stats.mat']));
if isempty(stats_file)
... |
43b5209c1a91ab85522676ba95f5c98d8924c6ee1d188e8449f2929a5b4df1d7 | MATLAB | 2,103 | 78 | function main(params)
% We will process each file in the info_table one by one
% number of files in the info_table
nFiles = size(params.info_table,1);
if ~nFiles, warning('Please check system and task at the top of your config file!'); end
%% STEP 1
for iFile = 1: nFiles % for each file
[params, name, f] = init_... |
e92be8d76a642d9d3342f759054c2381db0e7f63bb9cfea179649e70388278f2 | MATLAB | 2,103 | 63 | function [adj_list scratch] = create_adj_list(subj, maskname, varargin)
% Creates a list of neighbours for each voxel
%
% [ADJ_LIST] = CREATE_ADJ_LIST(SUBJ,MASKNAME, ...)
%
% This loops over all the voxels in the mask. For each
% voxel, it looks to see which of the neighboring voxels
% are included in the mask. The ne... |
2e30b959d6ec7fdd1b2c025136ea29d5956f52613df12eaa372fbfe972a231d3 | MATLAB | 2,108 | 74 | function downloadSubmodulesWithoutGit(submodules, branch)
if isempty(submodules)
return;
end
if isempty(branch)
return;
end
for ii = 1:size(submodules,1)
url = submodules{ii,1};
submodulepath = submodules{ii,3};
[~, submodulename] = fileparts(url);
filenameDownload = sprintf(... |
f8e5a14e38875f723a3a4568817efe2c08798678540ef6fb0dda902cd26d1fde | MATLAB | 2,109 | 66 | % function report_files(cfg,n_steps,inputfilenames_fid)
%
% This function prints file names for a certain decoding to the screen and
% writes them to a given file if requested. It is an integral part of the
% decoding toolbox and should not be called directly.
function report_files(cfg,n_steps,inputfilenames_fi... |
416089f579745ccf41bca33c760de07e91c241f51897402e2ea29a71df36c605 | MATLAB | 2,110 | 63 | function plotSingleTrialPCs(SortedStim,thr)
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
%%
uMf = nonzeros(unique(SortedStim.Mf));
nMf = length(uMf);
uMd = nonzeros(unique(SortedStim.Md));
uInt = unique(SortedStim.Intensity);
% [thrIdx,bwIdx,PCIdx,NDIdx] = ind2sub(ModDimMeth,BestMode... |
556adcf5e0c43b32d5af0820a688b19a964b2a08d95e244cb0168cf4f1f86941 | MATLAB | 2,110 | 76 | % STATUS: analysis. For internal report.
%
% SYNTAX:
% [snr,snr_Mean,snr_Std,cardiacSize,cardiac_Mean,cardiac_Std] = ...
% calc_AvgSNR_Welch_OldProbe(sbjNum)
%
% DESCRIPTION:
% calculate different estimates of SNR and some other stats related to
% noise analysis.
%
% RESTRICTION:
% Only for sbj 08 and 10.
%
% I... |
c13b3fa54705bdad2cb32fcffb0b7e137749336f439857b20c4cf20016e1ed88 | MATLAB | 2,110 | 32 | % run from local pc and create gridscore, trajectory plot, and rate map plot
function [heat_map,spikes,spk_data] = gridscore_sim_function(p1,p2,local_run,run_on_hopper,use_hopper_data,fdr_prefix,hopper_run,save_gridscore_file,preloaded_spk_reader,sel_nrn,save_plot,save_traj_plot,save_firingrate_file,create_plot,spikes... |
2a19dba426d72fa63e029bf5badb7e9571a4e35a2d00ddc8b092f3e3bf10d273 | MATLAB | 2,111 | 56 | function [vviq_score, high, low] = vviq_scores(p)
% function [vviq_score, high, low] = vviq_scores(p)
%
% Load data of the Vividness of Visual Imagery Questionnaire (Marks, 1975)
% used for recruitment. Extract the VVIQ scores of the selected
% participants.
%
% Output:
% - vviq_score: Vector of VVIQ scores
% - hi... |
b6639ff6ea6367a42b78d8e4a971d7b114c96704508c9562a654a253ef6ad87d | MATLAB | 2,112 | 57 | function Scatter_Median( TS_mean_preVpost, TS_idx, TITLE, XLABEL, YLABEL)
% Michelle Cahill 20230814
% Scatter_Median creates a scatter plot from values in TS_mean_preVpost and
% plots the median +- iqr for the population
% TS_mean_preVpost: nx2 matrix with n= # of tseries/pairs, column 1:
% metric pre-stim ... |
ebba25c8f6cdc703499e39d84d5e0de979b3c24a3e49b05b970dd48facb9b3a0 | MATLAB | 2,114 | 73 | function [subj] = createorupdate_object(subj,objtype,objname,newmat,varargin)
% Creates or updates an object.
%
% If the object doesn't exist, inits the object first.
%
% If the object does already exist, or once it has just been created,
% runs SET_MAT.
%
% You can also set as many fields as you like at the same time... |
d25573ccce5c3edf5742c40b9b276f700e6a2fe3e4a2beda6210fe1b90dc45e2 | MATLAB | 2,115 | 66 | function g = mdngrad(net, x, t)
%MDNGRAD Evaluate gradient of error function for Mixture Density Network.
%
% Description
% G = MDNGRAD(NET, X, T) takes a mixture density network data
% structure NET, a matrix X of input vectors and a matrix T of target
% vectors, and evaluates the gradient G of the error function wit... |
1a3764e0022d387b56d8d790e570a9a34de38dad5c375fa64b10ed385a8a3b8b | MATLAB | 2,116 | 79 | % fft_upsample integer upsample a signal in the frequency domain.
%
% y = fft_upsample( x, f, edges )
%
% f {2} upsampling ratio
% edges {0} flag
%
% does
% works on matrix columns
% piecewise fft interpolation WITHOUT explicit filtering.
% default upsampling ratio is 2
% edges ar... |
e73bec955a41908ae6af1257bb6cccf77c694b25ec9e68a32caf98f8aa086688 | MATLAB | 2,116 | 84 | function tsdOUT = cat(varargin)
% Concatenation of TSD objects
%
% USAGE:
% tsdOUT = tsd/cat(tsd1, tsd2, ..., tsdn, ['shift', shiftVal]);
%
% INPUTS:
% tsd1, tsd2, ... tsdn -- each one is a tsd
% the option shift may be specified, in that case, the shiftVal(i)
% value is added to all the time... |
cc86c94ec3aeef4fea7c1a3ced97f5021677e927458757c314241133f8e58213 | MATLAB | 2,117 | 71 | function [mat] = get_mat(subj,objtype,objname)
% Returns the MAT field of the object
%
% [MAT] = GET_MAT(SUBJ,OBJTYPE,OBJNAME)
%
% The MAT field is where the goodies are stashed. For instance, it
% stores the data in a pattern, or the volume in a mask.
%
% If the object is being stored on the hard disk (see the manual... |
0a1ede456c8555a73e5364e94d04e15716b4233f5d91a513b1c989f35596c782 | MATLAB | 2,118 | 76 | function [z] = zscore_mvpa(x,dim)
% This is a simple replacement for the Matlab Stats toolbox zscore
% function. It differs ever so slightly, because it takes in an
% optional DIM argument that determines which dimension it should
% operate along (like MAX, MIN, SUM, MEAN etc.).
%
% Note: if you're looking for an MVPA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.