sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
8943f91f993efe28ddf4c3929977aa67f2659cab3617a25773372c658f60a0b9 | MATLAB | 3,062 | 159 |
close all
clear all
clc
warning off
% parameters
% input_path = '../../data/UMGDatensatz_slicesselected_mat_fm/';
input_path = '../UMGDatensatz_slicesselected_mat_fm/';
border_line = 12;
% end parameters
% files = dir([input_path, '*label_0.txt']);
files = dir([input_path, '*label_1.txt']);
... |
19d5be87b6d153b353758df0750b06b5e87260e04ac7e3fa9a93a1612ddceecd | MATLAB | 3,063 | 84 | %CACHE Wrapper class for caching slow-to-load data
%
% buffer = cache(load_func, [cache_len])
% obj = buffer{key}
%
% This class implements a cache, which can improve efficiency when loading
% slow-to-load objects several times.
%
% IN:
% load_func - Handle to a function which takes a scalar key as inp... |
e9f5a67bb05fa913d7ae946e35df93de60daac5b1753bfd92520a5e07401ea59 | MATLAB | 3,073 | 78 | %% The function plots the spatial map in Figure 1B
% The script was used to generate Figure 1B in manuscript
% "Brain rhythms control microglial response and cytokine expression via NFκB signaling"
% Plots are generated in a new folder named 'plots' in the parent directory
%% Plot spatial map of power differenc... |
26016e9a3a0c442f8fe1edfffb2eb38129ce6d24ea9a38c71d381e7601c6b402 | MATLAB | 3,074 | 83 | function [counts, labels, tags, runinfo] = sortByMass(counts, labels, tags, path)
% we have two basic conditions. EITHER we have data from Leeat's
% scripts, OR we have data from the IonPath extractor.
% we have data from the IonPath extractor
if exist('tags{1}.PageName')
try
masses ... |
471e2965bd81012582c4f2defeb9cb9274d5d57b4886f5ec0b46fe58eb0dc5a3 | MATLAB | 3,078 | 102 | %%
% This file contains all parameters, EXCEPT for num_ffwd_inputs,
% prob_ensheathed and ensh_strength, which are defined in the main
% function
%%
function [param] = network_params_fn()
% Number of neurons in each population
param.Ne=10000;
param.Ni=10000;
param.N=param.Ne+param.Ni;
param.Ne1=param.Ne/2; % the s... |
06b209fb2af70c5526dd0a80f69db67511c47fb44c0d3205bf195557f2396466 | MATLAB | 3,087 | 85 | %%
% Plots the results of DiRT simulations for different levels of
% astrocyte protrusions
%%
%% Figure 1B: Panel for the number of activated receptors over time curves
% Load the data
load('./CompressedData/DiRTSimulations/AstroDiRTData.mat')
figure(1); clf;
color_scheme = [0.85 0.325 0.098; 0 0.447 0.741; 0.466... |
299fb5af39d6ee8fb9939b07e93d652ca57db08af5224127d81601a12a8f2540 | MATLAB | 3,094 | 68 | function arr_files=get_rpx_files(line)
% GET_RPX_FILES returns the couple of files to load to the rpx1 and rpx2 in
% order to generate the right sound for channels 1,2,3,4 of the line.
% ARR_FILES=GET_RPX_FILES (LINE) generates and returns the couple of files
% to load to the rpx1 and rpx2 in order to generate the righ... |
827f90f725a8f7e84bb676e5d038bbcc35ff7b445aeb6466f8bd63ff43b0a8f7 | MATLAB | 3,099 | 95 | function line=Basic_line(varargin)
% Basic_line class constructor.
% line=Basic_line constructs a line object with default values
% line=Basic_line(right_ear, left_ear, samp_rate, chan_signals)
% right ear - a String that represents the channel that participate in the syntisiesed on the right ear
% The options are: ... |
576aa47adba3987f928b2a92f5a1b2dc316fa17e3a535dfb37415c5d3332b563 | MATLAB | 3,102 | 87 | function [RIFF_geo] = update_RIFF_geometry()
% UPDATE_RIFF_GEOMETRY uses user inputs to recalc center of the riff, the
% mask of the circle and the port locations. The results are stored in
% 'RIFF_geometry.mat' file.
%
% Usage:
% >> [RIFF_geo] = update_RIFF_geometry()
%
% Inputs:
%
% Output:
% RIFF_ge... |
86ea2bcc457040b431594a07f7bbec8e0f0c6de344630b9c99afcd3958dc50b3 | MATLAB | 3,102 | 59 | %Forms the tensor and decomposes the tensor into components with Tucker
%decomposition (TD)
%% Data directory and hyperparameters
clc; clear all; %clear comman window and workspace
data_dir_new='.\Text Files\';%access fNIRS datas
conditions={'Hand function_text','Hand motion_text','Robot function_text','Robot... |
8d567037e93fb83722a5b2b1b56f9067652cac4b84b29d68fad2eeaf32351c68 | MATLAB | 3,107 | 137 | function [im1_rgb norm_max_proj] = FS_plot_allpxs(MOV_DATA,varargin)
%FS_plot_allpxs uses the center of mass (df/f here) (COM) across time to define
% for i = 1:size(MOV_DATA,2)
% mov_data(:,:,i) = double(rgb2gray(MOV_DATA(i).cdata(:,:,:,:)));
% end
[MOV_DATA2, n] = FS_Format(MOV_DATA,1);
clear MOV_DATA;
MOV_DATA... |
3b569df7277fbb812827e2e0ba0f2fa0e4849a110b7fd7dc38b0035d8062f094 | MATLAB | 3,111 | 108 |
clc
clear
close all
load xx_108_4_single_e2o_perf
exe2obs_cell = cellfun(@mean, test,'UniformOutput',false);
exe2obs = cell2mat(exe2obs_cell);
exe2obs = exe2obs-100/3;
load xx_108_4_single_o2o_perf
obs2obs_cell = cellfun(@mean, verif,'UniformOutput',false);
obs2obs = cell2mat(obs2obs_cell);
obs2obs = obs2obs-100/3;... |
5f031c64c77d4a17fbbb55bdebfb0e4fe3aca138a26ed6d4bc68d906cc9d3cfa | MATLAB | 3,112 | 105 | function gramm_driveAndGain(IDX)
%% Goal
% use gramm and plot the simultaneous congruent, incongruent, and monoc
% preferred with connected lines
% line plots using "methods for visualizing repeated trajectories"
%% Initial variables
conditNameForCC = IDX.allV1(1).condition.Properties.RowNames;
TM = IDX.allV1(1).TM(1... |
957f51517a6eb8cb5743147bdcebd468a6c400849346e2143a5e06d1feb0bd27 | MATLAB | 3,113 | 96 |
load xx_108_4_single_e2e_perf
exe2exe_cell = cellfun(@mean, verif,'UniformOutput',false);
exe2exe = cell2mat(exe2exe_cell);
e2e = exe2exe;
load xx_108_4_single_e2o_perf
exe2obs_cell = cellfun(@mean, test,'UniformOutput',false);
exe2obs = cell2mat(exe2obs_cell);
e2o = exe2obs;
load xx_108_4_single_o2o_perf
obs2obs_cel... |
cdfc24b7d8514b28ddf09b72015ad2eef56f0f87dd5ae6eec70aec70e397ed92 | MATLAB | 3,137 | 118 | function [data,metadata] = tdrLoadPfcData(datadir,animal,event,unitList,Fd)
% tdrLoadPfcData load PFC units and downsample the responses
%
% Inputs:
% datadir: the data directory
% animal: the animal to load ('ar' or 'fe')
% event: temporal alignment ('Vstim','Tsac',Targ')
% unitList: cell array of unit names
% F... |
d697fdce1a9dac67d5ee37a3b26b9f940f7ef4296239ac1919fcec5a6adbc478 | MATLAB | 3,154 | 64 | % Creates a composite channel based on GUI inputs, creates TIF, updates
% points with composite data.
% Selectively adds or subtracts counts to composite depending on + or - at
% end of channels in composite channel listbox
function create_composite(handles, pipeline_data)
% hObject handle to create_composite (... |
b75a827b969a595a2c20011493e19c7c5e8fffc4ed4cd4faf60d69eeb2097583 | MATLAB | 3,170 | 85 | %%
% This script reads in any 'cleaned' EEG data
% that are stored as .mat files and EEGlab 'struct' format
% in $SOURCEDATAPATH.This is a conversion fro
%
% ver 0.1 28APR23 dcm
%%
% Set pathnames and generate list of all files
PROJPATH = '~/bbi-review-2023';
DERIVATIVESPATH = sprintf('%s/data/orig/eeg/',PROJPATH) ... |
c31f0ecd8d614539731806a4a1783a4d1fc8577b43a0dd8f37eded555db0f28a | MATLAB | 3,174 | 112 | %IS_LEGAL_FORMULA checks if the given val is a string reprsenting a legal
%formula.
% [IS_FORMULA,FINAL_VALUE,DEF_EXIST]=IS_LEGAL_FORMULA(VAL,DEF_ARR,VAR_ARR)
% checks if VAL is a string reprsenting a legal formula.
%A legal formula is any mathematical expression that contains variables
%from either the def_arr or v... |
1f21835e179c7f8293f90d6f9b607fd4e578456aaa1078a5d80f49fe30698100 | MATLAB | 3,195 | 157 | function [MATCHES,SCORE,TEMPLATE]=fb_quick_template_match(FILE,varargin)
%
%
%
%
%
fs=24.414e3;
n=1024;
overlap=1e3;
down_factor=5;
template=[];
nparams=length(varargin);
gif_dir='gif';
out_dir='extraction';
dat_dir='syllable_data';
MATCHES=[];
padding=[.2 .2];
if mod(nparams,2)>0
error('Parameters must be specified ... |
10cda1f76d15e75bf47851eff808936a2ed259fdd4c2355d1f6354f55d8d0a17 | MATLAB | 3,204 | 121 | %%
cam_s = videoinput('tisimaq_r2013',1,'Y800 (1280x960)');
src_s = getselectedsource(cam_s);
%%
cam = videoinput('tisimaq_r2013',2,'Y800 (1280x960)');
src = getselectedsource(cam);
%%
cam = videoinput('gige',2,'Mono8');
src = cam.Source;
src.PacketSize = 9014; %2986
... |
4a00dc207b61076854db430645f1c68dd5eb02171ceb75a91bf6f12d96e9d901 | MATLAB | 3,204 | 75 | function S = StimulusList(filename,dbl,dbg,dbw,delay) %bf,fra_att, ssa_att, repeats
% S a structure containing the sound parameters from which one can create a
% single trial
% bf - best frequency for SSA blocks; fra_att - list of attenuations for
% the frequency sweeps (in an array, for example 10:10:70); repeats - ho... |
1c68d73f97ebf87a759878b13693ebe238941d82f1b61faad83ab54e605b8ba0 | MATLAB | 3,206 | 81 | function [synaptic_weight, list_pot, list_dep, ca3_peak_locations] = Sim_CA3CA1_map(velocity, inductions, init_weight, L, n_ca3)
% setup
% the length of track; number of ca3; the peak of input cells.
if nargin < 5
n_ca3 = 400;
end
peak_dist = L / n_ca3;
ca3_peak_locations = peak_... |
73ddcd9c42513faae88f297dcd739c275d1518672f154e2c4a88e22da6c28bf0 | MATLAB | 3,210 | 68 |
for cond = 1:size(conditionarray,1)
clear trls
% get monocular trials
if cond < 5
trls = I &...
STIM.eye == conditionarray(cond,1) &...
STIM.tilt(:,1) == conditionarray(cond,2) & ...
STIM.tiltmatch == conditionarray(cond,3) & ...
STIM.suppr... |
1a0b5c22e76c59c76f94294e115377288dbf1a39c837b432e8b127802c4e49e0 | MATLAB | 3,215 | 79 | %create objects from masks and export to fcs for ez_segmenter
%DO NOT USE THIS SCRIPT UNTIL WRITE_FC FUNCTION INTEGRATION FIXED --> NEEDS FUNCTION TO
%PROPERLY INCORPORATE $PnR
%
%
%
%
function create_objects(point_index, pipeline_data)
%% Pre-processing steps to mask data, convert into fcs / csv usable format, and... |
26a30dfe1ba1cf5fde3ad51f1ffae2a71ce9ad015fe23ad73784e0fa384bac87 | MATLAB | 3,215 | 124 |
clc
clear
close all
% /// LOAD DATA
load elec_xyz_M1.mat
elec_temp = elec_xyz;
clear elec_xyz
load elec_xyz_M2.mat
elec_xyz(1:120,:) = elec_temp(1:120,:);
clear elec_temp
x = elec_xyz(:, 1);
y = elec_xyz(:, 2);
z = elec_xyz(:, 3);
neurons = 1:177;
ind_M1 = neurons <= 120;
ind_M2 = neurons > 120;
for_Fig07
ind_all... |
673c0c03540c4988531f939fb266f5f1df131e529fa2b876c24484e10bf7122e | MATLAB | 3,225 | 115 | function plot_arrival_times(all_axes, param, mode)
S = load(fullfile('..', 'data', 'arrival_times_summary.mat'));
summary = S.summary;
all_raw = S.all_raw;
rats = 4:8;
%param = generate_colors;
if mode == "separated"
irats = 1:5;
elseif mode == "merged"
irats = 0;
end
names = {'1:1', '1:2', '2:1', '2:2... |
be7eaf44f183eaff6459158eba11def52568565c57a23ec762d8949094b20822 | MATLAB | 3,228 | 115 | function RIFF_audio_calibration()
global vars
vars.elivation_tick = 0;
vars.circ_tick = 0;
vars.line_tick = 0;
vars.goesUp = 1;
vars.z_res = 1;
vars.x_res = 1;
vars.doTurn = 1;
delete(timerfindall);
vars.timer_h1 = timer('ExecutionMode', 'singleShot',...
... |
be992b4560133795897a264dade9b623447870e7fc84400c3a05b41d97adac9e | MATLAB | 3,230 | 87 | function process_dt2_list_kilosort2(in_folder, filenums, starttimes, params, out_folder, is_unfiltered)
% Function process_dt2_list_kilosort2 reads a sequence of raw neural data files and aggregate
% the results into a single data matrix. This matrix is then saved to disk.
% The data is in uint16 forma... |
0c5b30146f96e5829d645bddcabeafdb6eeebe11d17bd8619c837d057d700a9e | MATLAB | 3,235 | 51 | clear;clc
n_rot=5000;
corr_type='spearman';
nroi_cortical=210; nroi_subcortical=36;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[vertex_coords_sp, faces]= read_surf('\fsaverage\surf\lh.sphere.reg');
[vertices, label_annot, colortable] = read_annotation('\fsaverage\la... |
7d5df030c1e5e7a6646ab1512308b2283fd60904c8cf2a01b1ed8bea2194666c | MATLAB | 3,238 | 105 | %% The function plots the mean V1 traces in Figure 1S
% The script was used to generate Figure 1S in manuscript
% "Brain rhythms control microglial response and cytokine expression via NFκB signaling"
% Plots are generated in a new folder named 'plots' in the parent directory
plot_mean_trace(20)
plot_mean_trace(... |
d6ba20bc8a576bf578d8b521a033969d56c5211a2010efc83a6deb38af04a748 | MATLAB | 3,241 | 116 | clear all;
addpath(genpath('../PhiToolbox'))
N = 6; % number of units
T = 10^6; % number of iterations
tau = 1; % time delay
N_st = 2; % number of states
%% parameters
params.tau = tau;
params.number_of_states = N_st;
%% generate time series from Boltzman machine
beta = 4; % inverse temperature
% connectivity mat... |
73c57eb36c1c965a79475d9d2a0311a3ff789da9571a066139d3b588c32f2c60 | MATLAB | 3,242 | 81 | function [sig_comp,err_msg,changed]=update_final_seq_values(component,def_arr,var_arr)
% UPDATE_FINAL_SEQ_VALUES calculates the expressions in the sequence according to
% the values of the varaibles that appear in the expressions.
% [SIG_COMP,ERR_MSG,CHANGED]=UPDATE_FINAL_SEQ_VALUES(COMPONENT,DEF_ARR,VAR_ARR)
% ... |
1f4a9faee29e7f4492720a777e71fdbd2017c082ad1c692cc91a2d1014caf9cc | MATLAB | 3,245 | 104 | classdef ToneTrainingStimuliGenerator < AudioObjectGenerator
%TONETRAININGSTIMULIGENERATOR creates ToneStimuli for training.
% This AudioObjectGenerator creates ToneStimuli from a fixed set of
% frequencies and a fixed set of durations. A generated ToneStimulus
% will be a pairing of a randomly choosen frequency ... |
82847552f7583e4d483ae1f94eec53bba03149b5ccce4bf02cd7a4a3c07165e2 | MATLAB | 3,270 | 110 | function gramm_driveAndGain(IDX)
%% Goal
% use gramm and plot the simultaneous congruent, incongruent, and monoc
% preferred.
% line plots using "methods for visualizing repeated trajectories"
%% Initial variables
conditNameForCC = IDX.allV1(1).condition.Properties.RowNames;
TM = IDX.allV1(1).TM(1:560);
clear DataFo... |
c15aae292a0f9b5f2851c4d30fa59455ee3e55af3c70fef01c332b2be68d709a | MATLAB | 3,270 | 79 | %analyze_ROI_effects
%--------------------------------------------------------------------------
% This file analyzes the fMRI ROI data. The beta values for each task epoch
% are already saved in the file betaValues.mat. Each variable in that file
% indicates the beta value for the respective epoch for a given subject... |
34578258ac4a668694681278bc22f8df3b4db07245e503e1d77bec2856c62ec1 | MATLAB | 3,277 | 69 | function [mwAICc_for_table,sdwAICc_for_table] = ...
wAICcEstimationExVivo_Submission(AICcValues,Angle_Meas,Kappa_Meas,ICVF_Meas,Mask,params)
% Start of the code
% Masking all the input parameters:
% Mask the OC not only with the manual masking but also for unrealistic
% values in \kappa... |
99d562312acd72703246dbaddbdc32505927884518d357624c555c32f217f15f | MATLAB | 3,277 | 84 | % Copyright (C) Alex A. Bhogal, 2021, University Medical Center Utrecht,
% a.bhogal@umcutrecht.nl
% <filtRegressor: correlates a series of regressors with a reference signal >
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as publish... |
1d5d3edaf63d758a7a3e32456fd4a3ed54658cff0a2305d99a346013a565e486 | MATLAB | 3,279 | 86 | clear all; close all; clc;
addpath('.\\Utils');
gpuDevice(1);
%% PART 2
% This script is test to read RGB image and generate corresponding dataset
% Written by: Jiachen, 07/21/2021
%% directory constant
% label images dir_depth fusion
input_label_dir = '.\\dataset\\TIFF_AfterReg';
input_fusion_label_dir = '.\\dataset... |
b36a4ce8c39b3d8ce3548cd462fab89ba2f50d5c57bd25e84790657fbd8bd180 | MATLAB | 3,288 | 74 | %% Script for whisker stimulus delivery during IOSI
% This script was generated by the Zeiger Lab at UCLA. It is used to
% deliver whisker stimuli via a piezoelectric bender to a mouse's whiskers.
% Sine wave stimuli at 100 hz are generated and output from a data
% acquisition device (National Instruments, BNC 2090a an... |
144de4ee2f85df7322791bac008fec26ac93f208487e7d09d3770092a009283c | MATLAB | 3,294 | 98 | function out = Output_manager(varargin)
% OUTPUT_MANAGER class constructor.
% OUTPUT_MANAGER constructs an Output_manager with a given name.
global NUM_PLOT_TYPES;
global num_elec
NUM_PLOT_TYPES=6;
switch nargin
case 0
% if no input arguments, create a default object
size_of_buffer=4000;
out.n... |
b1429b1e2b37b461a2736fc376e60d206d0299a1f5adfb13871cd3d3d69b0bfc | MATLAB | 3,297 | 99 | function [ISIimage,scaledfilename]=IOSGUI_ImageAnalysis(numtrials,totframes,baseframes,iosframes,...
stimoffset,tempbin,spatialbin,imgbasename,dfw,numfiles)
numbins=round(iosframes/tempbin);
f = waitbar(0,'1','Name','Creating IOS Image',...
'CreateCancelBtn','setappdata(gcbf,''canceling'',1)');
... |
94c01a30a6037678c7a91bcf9d4e2d0703095d6952384f77e6041d2572797b56 | MATLAB | 3,307 | 88 | %%
% Default parameters values (Table 1 in Handy and Borisyuk, 2023)
% All values are saved in the structure DiRT_params to be used elsewhere
% \phi: fraction of the cleft blocked by protruding astrocyte
%%
function DiRT_params = params_DiRT_2Dcleft(phi)
%% Key simulation parameters that can easily be adjusted
% Pa... |
7ed2bfa43e2b3b4d770eb6526fe8b70e0f0ae5672eaed2d061465339617684ea | MATLAB | 3,314 | 72 | function [...
V_He, dC_FLV, V_He_F, dC_NADH, V_Hu, V_H_Leak, dC_ADP_m, V_ANT, V_O2]...
= oxidative_phosphorylation(V_SL, V_IDH, V_KGDH, V_MDH, V_SDH, ...
delta_Psi_m, C_NADH, C_NAD, C_ATP_m, C_ADP_m, Ca_m, ATP_i, ...
ADP_i, V_PDH, C_FLV, data)
r_a = data.r_a;
r_c1 = data.r_c1;
r_c2 = data.r_c2;
r_1 = d... |
fcd3d9136191df796e57284259b5e44e88cc0883487587ce9e3501a10e5a0711 | MATLAB | 3,314 | 111 | function val=get(line,prop_name)
% GET Get Line property from the specified object
% and return the value. Property names are:
%
% Right_ear - a String that represents the channel that participate in the syntisiesed on the right ear
% The options are: '1', '2', '3', '4', '3+4', '2+3+4', '1+2+3+4',
% 'SILENCE'.
%
% Left... |
2ea527b6d0e74d5828b89f04d0b9dcfcd095968f51fce05c43f3ba1f6ee4a2ae | MATLAB | 3,315 | 103 | function metadata = make_sounds_table(snr_times, maestro_file, expdata)
out_folder = expdata.folders.out_folder_session;
sounds_table = maestro_file.MetaData.sounds;
% this is to fix GitHub Issue #35:
if ismember('Var1', sounds_table.Properties.VariableNames)
sounds_table.Properties.VariableNames{'Var1'} = 'sound... |
5a56e0d3db2073de84bc7b2fee8dbf64fb16919b25ec050da80bdff98fcb459e | MATLAB | 3,316 | 101 | function varSUB = tdrSubspaceVariance(data_SUB,data_ORG,varpars,plotflag)
% tdrSubspaceVariance variance of responses along subspace dimensions
%
% Inputs:
% data_SUB: population response in subspace (simultaneous, 'tdr help')
% data_ORG: population response in full state space (simultaneous, 'tdr help')
% varpars.t... |
6520f555403c05786683000ab7fe48a7955edd0679662a2097e50e9ed8eb8f87 | MATLAB | 3,338 | 112 | % Frequency re-weighting
function [b, a, ka, SNRa, Parameters] = MIRO_Spectral_weighting(a,Parameters)%#codegen
kmin = Parameters.kmin;
Mode = Parameters.Mode;
h = Parameters.h;
spectral_filter_on = Parameters.SpectralFilterOn;
max_thr = max(round(Parameters.Sampling),1);
s = Parameters.k; % here we call this paramet... |
d2c15126b8c327fa36a65d8da9b021b4b57ca46deae042aa2da860956583f85e | MATLAB | 3,343 | 97 | function [] = sortByROI(obj,ROI_table,majorROI,minorROI,suppressWarning)
%sortByROI Sort adjacency matrix by ROI_table
% ROIs are sorted first by majorROI, then minorROI, then by proximity to HGPM or ycoord
for iEl = 1:numel(obj)
%% Default is to sort first by newROINum, second by oldROINum
if nargin... |
078acfa152a1ac20ff0dcef5869ce1db4952e62a45a4f4b97b75410edd935787 | MATLAB | 3,360 | 81 | function [counts, labels, tags, path_ext, runinfo] = loadTIFF_data(path, varargin)
[~, ~, ext] = fileparts(path);
if strcmp(ext, '.tiff') || strcmp(ext, '.tif') || strcmp(ext, '.TIFF') || strcmp(ext, '.TIF')
% path is to multilayer tiff file, meaning it is from IonPath
disp(['Loading multilayer ... |
3888b2a41951bc11a82ea2f7612264a8e2dba1f6e6e565aa22e75c4c2b0014f1 | MATLAB | 3,361 | 78 | function SaveDataDICOM(image, template_dicom_path, output_dicom_path, name, value_range, content_label)
% Export ASL-derived image as multiframe DICOM using Philips reference
%
% Parameters:
% image - 3D matrix of ASL data (e.g. CBF, CVR)
% template_dicom_path - path to a template Philips multi... |
87e9065485d4a741542946930f88628bcd0b149d3c9f8e567f5b117181fa2bfd | MATLAB | 3,361 | 79 | %Author: Tatjana Schmitt 2019-2022
function FRA_analysis_subfields_redcell(root_path)
% get files
temp_filepath_FRAanalysis = [root_path, '\**\FRA analysis double.mat'];
FRA_file = dir(temp_filepath_FRAanalysis);
FRA_path = FRA_file.folder;
FRA_name = FRA_file.name;
load(fullfile(FRA_path, FRA_name), 'tuning... |
71e28c9b90d00bfca84815b24e73e7cba7873e9d86a44a6f0e9fde9f585e5125 | MATLAB | 3,382 | 128 | function [start_t, all_stats] = align_sound_times_mdp(ts_snr, maestro_file, ttrig_shift)
% JN 2019-06-03
% JN 2020-04-26 refactoring
% JN 2020-05-24 adding ttrig_shift
sounds_table = maestro_file.MetaData.sounds;
mdp_states = maestro_file.MDPData.MDPStates;
rat_states = maestro_file.MDPData.ratStates;
idx_ttrig = fin... |
5bf7cd795f6e2167d9666182cea45146f979829e5c1f17b9e25d0ffdf5beeade | MATLAB | 3,396 | 101 | %analyze_results_fmri
clear
%TBS subjects
subjects = [3,4,5,6,7,10,12,16,22,23,24,25,30,35,36,37,41];
number_subjects = length(subjects);
%Parameters
sub_num = 0;
computeMetaDprime = 0; %don't compute if you want to save time (in this case previous results are loaded)
for subject=subjects
sub_num =... |
2a195c1f388827a378117cd56c7fb87547978bf440ad245ab8378769da03b89e | MATLAB | 3,416 | 94 | function [datafig, typeF0] = visual_labeling(data,fs,datapars,data_info)
%% PLOT DATA
datafig=figure('name', ['Data snippet in ',num2str(datapars.segmlength),'sec segments']);
set(gcf,'Position',1.0e+03 *[ 0.0002 0.3354 1.5336 0.4200 ]);
timeind=1;
for segm=1:floor(length(data)/fs/datapars.segmlength)... |
44859cefa87404edcfbf4bcbc194766a4b97955fd6eebc938fe4e4c2b23cbc58 | MATLAB | 3,420 | 135 | %%
% This file contains all parameters, EXCEPT for prob_ensheathed and
% ensh_strength, which are defined in the main function
%
% Key pamaters:
% sigmaffwd: feedforward projection radius
% sigmarec: recurrent projection radius
%
% Neuronal network result: sigmaffwd < sigmarec leads correlated balanced state
% Bre... |
08634487c50de04efd49cd04e040faac64f91d1bf3ed1f9147e560cacbe4a6f8 | MATLAB | 3,422 | 99 | function [phi_star, I, H] = phi_star_dis(probs, q_probs)
%-------------------------------------------------------------------------------------------------
% PURPOSE: calculate integrated information "phi_star" in discretized
% data. See Oizumi et al., 2016, PLoS Comp for the details of phi_star. The
% equation number... |
6499173f16bd24c268835c40f11b4bf6dfd52633aeefd8077e386463bd303071 | MATLAB | 3,424 | 85 | function plot_clusterplots(X,kclust,real_type,datatype)
%plots classification result figures
%1) gplotmatrix
figure('name',[datatype,': g plot real']);
set(gcf,'Position',[80.2000 112.2000 727.2000 624.0000]);
gplotmatrix(X.features,[],kclust,[],[],5,[],[],X.datapars.featurenames);
if strcmp(datatype,'sim'... |
3211d70cf852cbe5706a3083a7a3425825d79b8c095d0bc45c22bd5c164c6338 | MATLAB | 3,425 | 83 | % Copyright (C) Alex A. Bhogal, 2021, University Medical Center Utrecht,
% a.bhogal@umcutrecht.nl
% <loadRAMRgen4: imports GEN4 RespirAct data >
%
% 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 Foun... |
e908b5a1125869ab554abd0bea0c39b2849a80c9cf75cc9910259e221fea75d3 | MATLAB | 3,436 | 100 | function gramm_allPlots(IDX)
%% Goal
% use gramm and plot the simultaneous congruent, incongruent, and monoc
% preferred.
% line plots using "methods for visualizing repeated trajectories"
%% Initial variables
conditNameForCC = IDX.allV1(1).condition.Properties.RowNames;
TM = IDX.allV1(1).TM;
uctLength = length(IDX.... |
9a2dd361fe16109017811bae0e9054f7517a15708534a0744ae4fd81b19b067f | MATLAB | 3,437 | 172 | function ROI_TRACES=fb_extract_roi_traces(ROIS,MOV_DATA,FRAME_IDX,varargin)
%fb_select_roi selects an arbitrary number of roi's for plotting
%
%
%
%
%
colors=eval(['winter(' num2str(length(ROIS.coordinates)) ')']);
sono_colormap='hot';
baseline=3;
ave_fs=200;
save_dir='roi';
template=[];
fs=24.414e3;
per=2;
max_row=5;... |
cb527554e435e9325e635c625ed98c5ce80f9be13cfd3ae51efc865dc0b4bdd0 | MATLAB | 3,437 | 89 | function [...
dC_ISOC, dC_aKG, dC_SCoA, dC_Suc, dC_FUM, dC_MAL, dC_OAA, V_SL, V_IDH, V_KGDH, V_MDH, V_SDH, dC_AcCoA, V_PDH, C_CIT...
] = TCA_cycle(C_ISOC,C_aKG,C_SCoA,C_Suc,C_FUM,C_MAL,C_OAA, C_NAD, C_ADP_m, Ca_m, C_NADH, C_ATP_m, C_AcCoA, data)
k_cat_cs=data.k_cat_cs;C_K_int=data.C_K_int;
E_T_cs=data.E_T_cs;... |
80e87b65ac72607be10141b93282b9fad5060d417300745a9c66780767ebb243 | MATLAB | 3,448 | 92 | function onset_times = DT_get_file_open_times(table_events, data_folder, ...
result_folder)
% JN 2018-12-20
% simple function that returns opening times for all files in table_events
% JN 2019-01-09
% it seems that the opening times aren't always logged. In this case, check
% neighbors and continue from there.
%... |
487d1a22405e170dee594bdb86db36819d42b265e83c9afda8e19dd2b73ff5ce | MATLAB | 3,451 | 92 | function s_comp = String_comp(varargin)
% String_comp class constructor.
% s=String_comp(STATIC_VALUE) creates a String_comp object which represents a
% string component of the signal.
% String_comp is the base class of all string-valued signal components (File_comp, )
% and static value is the value of the S... |
bae3d6a47c70593a0c03ae4136300c82ab68c42a91ab45548d463946a6698d12 | MATLAB | 3,451 | 109 | function [toPlay, toReward] = selectSound_AP(soundseq, area, toReward, handles)
% stimdir : area|good sound|bad sound|neutral sound|probabilities
% behavior: area(1-n)|IA number(1-12)|behavior type(1-eat,2-drink,3-get airpuff| response(reward/punishment/nothing)
% toPlay: index in the stimulusList of the sound that sho... |
f70b1bb7335f76785582eb06ad41b7df01a4fe6c33409b459b85b5fbcf49e574 | MATLAB | 3,452 | 96 | %---------------------------------------------------------------%
% This is the main script for decoding all dichotomies using %
% linear SVMs; Libsvm MATLAB toolbox (V3.22) is needed %
% (https://www.csie.ntu.edu.tw/~cjlin/libsvm/). %
% -- Wenbo Tang (Jan 08, 2023) ... |
562dc3331c88169da8e7df6cf040de2313bd55d72b89c6e2e7cac8dde93bd17f | MATLAB | 3,455 | 89 | %*******Alex Bhogal 1/29/2019
%function to load niftii images untouched. Output is the image data
%and info structure containing matrix and resolution info
function [image info header] = loadImageData(pathname, filename)
warning('off')
global opts
if isfield(opts,'verbose'); else opts.verbose = 0; end;
if ~i... |
d40172a6fe863a857cde887f461b84fd4b85f6640456be2d50fe9a28d224ec09 | MATLAB | 3,456 | 81 | function behavior_table = reformat_beh_data_into_table(beh_struct)
% ===== hyper params ===
water_ports = 2:2:12;
event_type_map = {'food', 'water', 'airpuff', 'nosepoke'}; % Used to create categorical vars
% ===== The final variables of the table ===
start_t_arr = []; % ... |
53d6eb73306805671c9d35e5f0f49ab53c4f73a8b9f16494229d082823fee58a | MATLAB | 3,459 | 92 | % Function used to determine where breaks are located
% Updated: 08-30-2022
function [dendBreak,breakImg1,breakImg2,breakImg3,breakImg4,break1start,break2start,break3start,break4start,dendIntensity]...
= breakAnalysis(n1,n2,n3,n4,imDend,imOrigBig)
% Initialization
dend1 = n1 & imDend;
dend2 = n2 & imD... |
cb0d66d0b250aabac80a0d6a034c318553f447a21130eba56e8bdb7b58f3785c | MATLAB | 3,460 | 82 | function P = InterX(L1,varargin)
%INTERX Intersection of curves
% P = INTERX(L1,L2) returns the intersection points of two curves L1
% and L2. The curves L1,L2 can be either closed or open and are described
% by two-row-matrices, where each row contains its x- and y- coordinates.
% The intersection of gro... |
468d40ef966b3e47dc48f67142f0184f9740f83296f70e834f3e653fa2c1ef02 | MATLAB | 3,461 | 124 | function line=set(line,varargin)
% SET Set Line properties and return the updated object
% Property names are:
%
% Right ear - a String that represents the channel that participate
% in the syntisiesed on the right ear.
% The options are: '1', '2', '3', '4', '3+4', '2+3+4', '1+2+3+4','SILENCE'.
%
% Left ear - a String... |
0dc0c965c40cff6546b61850c6b202dd6b9b5a5e0bf976265b520a4699dccc51 | MATLAB | 3,468 | 78 | function [occurrence,occurrence_rd_threshold,occurrence_rd_dist] = compute_occurrence_rate(calcium_data,calcium_time,calcium_fps,...
behav_data,behav_time,behav_fps,...
nrand,percentile_threshold)
% This function ca... |
51bc39c2c88f047242ed58bffd30ea90ae66a8373eb10adec7175a3c735d846f | MATLAB | 3,474 | 110 | function val = get(out,prop_name)
% GET Get Output_manager property from the specified object
% and return the value. Property names are:
% Plot_falgs, Plot_handles.
if isa(prop_name,'char')
switch prop_name
case 'Collected_trial'
val = out.collected_trial;
case 'Location_in_data'
... |
af6878a8a5ee50dc14e313df3ce5bf0a4fac3167140c623982496d42d603621d | MATLAB | 3,475 | 106 | function [prototypes, X, real_type] = generate_prototypes(pars, PATHIN)
disp('GENERATING PROTOTYPES...')
%% PREPARATIONS
%load features of selected prototype dataset
cd(PATHIN);
load([pars.dataset,'_features']);
if strcmp(pars.cluster_datatype,'real')
%merge visual labels of types of activity t... |
3a411117fc9e98962f4bdfa552b899fe79bc5ad3fc23c858d3ce74e6eba96b56 | MATLAB | 3,478 | 118 | function gramm_2x2(IDX,dataType)
%% Initial variables
conditNameForCC = IDX.allV1(1).condition.Properties.RowNames;
TM = IDX.allV1(1).TM;
uctLength = length(IDX.allV1);
% B. pull out all laminar matrices 3x(6,450,el#)
%preallocate
SDF = nan(size(IDX.allV1(1).SDF.raw,1),size(IDX.allV1(1).SDF.raw,2),uctLength);
% l... |
8e2960c480f9489de5bd2d92f56a6c54662c32b4b551bff3b8393fdd31cfa3cf | MATLAB | 3,482 | 118 | function visIDX_2x2Fig(IDX,dataType)
%% Initial variables
conditNameForCC = IDX.allV1(1).condition.Properties.RowNames;
TM = IDX.allV1(1).tm;
uctLength = length(IDX.allV1);
% B. pull out all laminar matrices 3x(6,450,el#)
%preallocate
SDF = nan(size(IDX.allV1(1).SDF.raw,1),size(IDX.allV1(1).SDF.raw,2),uctLength);
... |
10ea8229e0cc667413f3c5ea248f6db6f9b597c3ec92446d6c05d22009c2d9cb | MATLAB | 3,485 | 84 | %% Default parameters
%% General parameters
Parameters.ResolutionCheck = 0; % Perform Resolution Comparison
Parameters.DisplayImages = 0; % Display Image Comparison
Parameters.DisplayAnimation = 0; % Display Animated Image Comparison
Parameters.unsharp_masking_on = 0; % Unsharp masking
Parameters.A... |
22a69c041ad8be069b7605908269b62d8a892e61f7e8350694196e87d0b63ed6 | MATLAB | 3,489 | 105 |
clc
clear
%% settings
type_of_method = 'action_preference'; % options: discharge, action_preference, LDA
filename_p_values = 'p_kruskalwallis_per_bin_and_neuron';
c = lines(7);
marker_size = 4;
line_color = [0.5 0.5 0.5];
color_obs_only = [.7 .7 .7];
color_match = c(2,:);
color_nonmatch = 'k';
%%%%%%%%%%%%%%%%%%%%%%... |
8954d50ead72ca46e176a6b9a8ef973c501f7c2f4a20d67c9bf5a7a9305c764a | MATLAB | 3,493 | 87 | function [p_perm, null_dist,x_perm,y_perm] = perm_sphere_p(x, y, perm_id_cortical,perm_id_subcortical,corr_type)
%
% Usage:
% [p_perm, null_dist] = perm_sphere_p(x, y, perm_id, corr_type)
%
% Description:
% Generate a p-value for the spatial correlation between two parcellated
% cortical surface maps (authors... |
3813d94c2f33eddfbd9381bb374906a156cf81b9812ed48db9dd595a4abed461 | MATLAB | 3,494 | 77 | %% NP
clf; load('riRwNP.mat')
SampleNplot(riRwNP{1,1}, 1); savefig('riRwNP_2s.fig')
SampleNplot(riRwNP{2,1}, 2); savefig('riRwNP_1p5s.fig')
SampleNplot(riRwNP{3,1}, 3); savefig('riRwNP_1s.fig')
SampleNplot(riRwNP{4,1}, 4); savefig('riRwNP_p5s.fig')
load('rrRwNP.mat')
SampleNplot(rrRwNP{1,1}, 5); savefig('rrRwN... |
41cef3340fcc56e762aef3b1bce1e1653b45ebfd106c9c26b662bd60c2ddddfd | MATLAB | 3,499 | 92 | % MEM_CREATE_PLOT is the display function of mem_plot.
% MEM_CREATE_PLOT(FIG_DATA,NPTS,TRIAL_INDEX,TOTAL_DATA,TOTAL_SUM_DATA,
% BUF_SAMP_RATE,P_HANDLE) display the plot in respect to the data gathered
% while the experiment is running
%.FIG_DATA - the mem_plot application data
% NPTS - the number of sample points of th... |
48625202034cf6f99e1948ae024dab0ca05d30ec5df313aa9fd5521db8d54ff7 | MATLAB | 3,499 | 85 | % Copyright (C) Alex A. Bhogal, 2021, University Medical Center Utrecht,
% a.bhogal@umcutrecht.nl
% <denoiseData: performs wavelet-based denoising or temporal smoothing >
%
% 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... |
dd25d0f6c804913f5ef09bbc2f5e88b7c8fa6f4dc1a761b3e8c65265adf6a924 | MATLAB | 3,506 | 94 | %--- Script generating figure 1 bis ---
%% Initializes everything
clear, close all
run StartupAnalysis
rng(1949)
%% Sets Figure parameters
% db1FigSize = [100 100 1600 900];
db1FigSize = [50 50 1200 600];
iFig = 0; hFIG = [];
chOutDir = 'C:\Users\perre\Cardin-Higley Lab Dropbox\Quentin Perrenoud\PerrenoudCardi... |
53d3c730fdc318beaa0547aa52337f7d057b2470877a7c254d98e8c2e4fd3617 | MATLAB | 3,507 | 111 | function s_comp = set(s_comp,varargin)
% SET Set Sig_comp properties and return the updated object
% Property names are:
% Input_method, Static_value, Value_formula, Static_reps, Reps_formula,
% Seq_values, Seq_values_str, Coord_index, Index_formula, Wrap, Sweep.
global STRING_METHODS;
STRING_METHODS={'STRING','SEQ_VA... |
8c6aa529fa1a4f92ad100ebcf1759224eeebeb2e71742569d320811dfd364a1d | MATLAB | 3,510 | 98 | function [slices] = update_RIFF_walls(last_session_db)
% UPDATE_RIFF_WALLS updates the locations dividing walls inside the RIFF
%
% Usage:
% >> last_session_db = load('session_db.mat');
% >> slices = update_RIFF_walls(last_session_db);
%
% Inputs:
% RIFF_geo - Struct that stores geometry of the RIFF, as out... |
322914f46b2a841e73f973c76d8b1870034b2fc91b6c45e8cb0933185b9cbeeb | MATLAB | 3,516 | 82 | % Authors : Tatjana Schmitt & Simon Wadle 2019-2022
function [BF, FM, stimulus_responses, mean_activity] = calculate_BF_random_order(tone_order_str, stimulus_responses_meanact, reps, least_nr)
%% calculates the BF for each pixel from the stimulus_responses_meanact matrix
narginchk(4,4)
%set parameter
tone_o... |
54810d9344d506f7e8331d0b679c48a19772d6676201042a5543c33e84a9d2cb | MATLAB | 3,520 | 124 | function str = dump(value, varargin)
%DUMP Encode matlab value into a JSON string.
%
% str = json.dump(value)
% str = json.dump(..., optionName, optionValue, ...)
%
% The function converts a matlab value to a JSON string. A value can be any
% of a double array, a logical array, a char array, a cell array, or a
% st... |
49cf0ad1883ce8c9b3dd0c2e4be468893760b8c1a59dccf54a47d1c6aac24c43 | MATLAB | 3,526 | 95 | % HEADER:
% This script generates and preprocesses the simulated model data.
% It uses the model parameters from Wendling 2005 to generate N interations of
% each of the four types of activity (interictal, preonset, onset and ictal)
% and calculates the chosen features on each generated segment of data.
% As the m... |
8495fad5b44c5a2fce8beb512445e221fe09f32858d6c3d16adbf970fa5956f1 | MATLAB | 3,526 | 169 | % Gridfit demo script
% This script file is designed to be used in cell mode
% from the matlab editor, or best of all, use the publish
% to HTML feature from the matlab editor. Older versions
% of matlab can copy and paste entire blocks of code into
% the Matlab command window.
%% Topographic data
load bluff_data;
x=... |
a81dec1d8ad091c2853061c2337e551fdaec24d511f42c3eadc5358a6ed51ac9 | MATLAB | 3,546 | 95 | %--- Script generating figure 1 ---
%% Initializes everything
clear, close all
run StartupAnalysis
rng(1949)
%% Sets Figure parameters
% db1FigSize = [100 100 1600 900];
db1FigSize = [50 50 1200 600];
iFig = 0; hFIG = [];
chOutDir = 'C:\Users\perre\Cardin-Higley Lab Dropbox\Quentin Perrenoud\PerrenoudCardin_Fi... |
d31472f1166f89d4bc7be84f5fb7cd5cfacb7ac6abf233631a59e781fb324f63 | MATLAB | 3,569 | 163 | function FS_BatchSB(DIR, varargin)
%run thorough directory and make Background Subtracted Movies in AVI format
% This Script is for 'unprocessed' videos
% WALIII
% For unprocessed videos
% 09.05.15
mat_dir='BackgroundSubtracted_Movies';
counter = 1;
if exist(mat_dir,'dir') rmdir(mat_dir,'s'); end
mkdir(mat_dir);
... |
7dcc25aeb7e66f29ef6777c5f3054dea6f3f2c090bc13e6c84dafc0357513398 | MATLAB | 3,577 | 119 | %% Options
s_width = 14;
s_height = 14;
p_size = 512;
num_markers = 47;
num_points = s_width * s_height;
folder = '/Volumes/ALEX G-DRIVE USB/bangelo_data/Alex_brain_cohort/';
%% Load data
points = {};
for i=1:num_points
disp(i);
[counts, labels, tags, path_ext, runinfo] = loadTIFF_data([folder, 'no_background... |
cb3b17e976bbf3d93a229b9cba5bd194459e9bed6bbe3b14a7edf2d02d349712 | MATLAB | 3,577 | 121 | classdef KeyGUI < InputOutputDevice
% KEYGUI is a class for the substitution of an Arduino device for i/o.
% Author: Lasse Osterhagen
properties
pins
end
properties (Constant)
grey = [.8, .8, .8];
end
properties (SetAccess = private)
keys2React
states
end
properties (Access = private)
windo... |
7688c41ddf5fa268275a8a6208856b62d7ff3cb9d2273f9dfb14f3a7410cee53 | MATLAB | 3,598 | 107 | % Code dependencies:
% - analyzePRF
% - knkutils (http://github.com/kendrickkay/knkutils/)
% - MatlabCIFTI
% - workbench
%
% make sure above dependencies are well located
addpath(genpath([pwd '/analyzePRF']));
addpath(genpath([pwd '/BIN_aperture']));
addpath(genpath([pwd '/cifti-matlab']));
addpath(genpath([pwd '/knkut... |
12ee414559b53f2baa11ccaa88227a6d759dd3b12e9b8f35e4ca6a72cb6b073a | MATLAB | 3,599 | 79 | function phi = drlse_edge(phi_0, g, lambda,mu, alfa, epsilon, timestep, iter, potentialFunction)
% This Matlab code implements an edge-based active contour model as an
% application of the Distance Regularized Level Set Evolution (DRLSE) formulation in Li et al's paper:
%
% C. Li, C. Xu, C. Gui, M. D. Fox, "... |
fe0ebed67e5873dda386966dab94439e3f2dbc003b85278cc1037d6724903279 | MATLAB | 3,599 | 107 | function phi = phi_Gauss( type_of_phi, Z, probs, phi_G_OptimMethod)
%-----------------------------------------------------------------------
% FUNCTION: phi_Gauss.m
% PURPOSE:
%
% INPUTS:
% type_of_phi:
% 'MI1': Multi (Mutual) information, e.g., I(X_1; X_2). (IIT1.0)
% 'MI': Multi (Mutual) info... |
03eca511e7435df97fd608eddb3a751049cd4c29a31ed2128d35f10828413df0 | MATLAB | 3,602 | 136 | function [autoCorr,crosCorr,h] = tdrVectorDynamics(coef,timepars,plotflag)
% tdrVectorDynamics Auto and cross correlograms of regression coefficients
%
% Inputs:
% coef: regression coefficients
% .name: regressor names {nrg 1}
% .response: coefficients [ndm npt nrg]
% .time: time axis [1 npt]
% .dimens... |
1f90140b67f86e8a84265501081c409cca0b322d4ced609496092372e0c836f3 | MATLAB | 3,602 | 94 |
clear
close all
clc
% settings
filename_p_values = 'p_kruskalwallis_per_bin_and_neuron';
marker_size = 5;
line_width = 2;
histo_width = 0.2;
c = lines(7);
line_color = [0.5 0.5 0.5];
color_exe = [.2 .2 .6];
color_obs = [.3 .6 .3];
color_obs_only = [.6 .6 .6];
color_exeobs = [.9 .7 .3];
%% load data
load (filename_p... |
72dd9956f9a6411375b944f6038f7ffdc40e647584b5989c67dbff2c05ca0abb | MATLAB | 3,610 | 84 | function send_text_message(number,carrier,subject,message)
% SEND_TEXT_MESSAGE send text message to cell phone or other mobile device.
% SEND_TEXT_MESSAGE(NUMBER,CARRIER,SUBJECT,MESSAGE) sends a text message
% to mobile devices in USA. NUMBER is your 10-digit cell phone number.
% CARRIER is your cell phone... |
b359082fed7c70e3d1d5b25ccc20ae31322d5ee6287ecc6e9e0a1f3ccc0b3ac6 | MATLAB | 3,610 | 115 | function visIDX_fig3_fromAUTO_I34Only(IDX,dataType)
%% taken from visIDX_fig3aAllV1_CvsIC.m
% viIDX_fig3_fromAUTO.m can be found in Visualization functions.
% It takes the SDFs from all of V1 in the IDX variable and averages them
% together. This can be done with raw dMUA inputs or z-scored inputs.
% Both are plott... |
f5100c43b9994201bdb2473e97372931e256580e306b4c147335e0cd733389b6 | MATLAB | 3,626 | 113 |
% Find Minimum Information Partition (MIP) in a multivariate autoregressive model,
% X^t = A*X^{t-1} + E,
% where A is a connectivity matrix and E is gaussian noise.
clear all;
%% generate data
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
disp('Generating data...')
%%% construct co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.