https://github.com/cvnlab/GLMsingle
Raw File
Tip revision: 721cfd74d702f2ec4c39b930042a66d051fb9af7 authored by Ian Charest on 21 July 2022, 20:26:06 UTC
bug fix for extra_reg check, fixes #67
Tip revision: 721cfd7
setup.m
% This script adds GLMsingle to the MATLAB path.

% Add GLMsingle to the MATLAB path (in case the user has not already done so).
GLMsingle_dir = fileparts(mfilename('fullfile'));

addpath(fullfile(GLMsingle_dir, 'matlab'));
addpath(fullfile(GLMsingle_dir, 'matlab', 'utilities'));

% if the submodules were installed we try to add their code to the path
addpath(fullfile(GLMsingle_dir, 'matlab', 'fracridge', 'matlab'));

% check that the dependencies are in the path
tmp = which('fracridge.m');
if isempty(tmp)
  error('fracridge is missing. Please install from: https://github.com/nrdg/fracridge.git')
end

clear GLMsingle_dir;
back to top