Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions conn.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
connver='22.v2407';
dodebug=false;

% Octave-compatibility
if logical(exist('OCTAVE_VERSION', 'builtin'))
addpath(fullfile(which('conn'),'utils','octave'));
end

global CONN_h CONN_x CONN_gui;
if dodebug, dbstop if caught error; end
me=[];
Expand Down
Binary file modified connROIorder.mat
Binary file not shown.
Binary file modified conn_msghelp.mat
Binary file not shown.
512 changes: 256 additions & 256 deletions conn_process.m

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions conn_savematfile.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ function conn_savematfile(filename,varargin)
data.(varargin{idx})=evalin('caller',varargin{idx});
end
end

% Ensure Octave-compaltibility
if ~ismember('-v7', varargin(opts))
varargin = [varargin, {'-v7'}];
opts(end+1) = true;
end

if any(conn_server('util_isremotefile',filename)),
if ~isempty(regexp(filename,'\<SPM\.mat$'))&&isfield(data,'SPM')
try, if isfield(data.SPM,'swd'), data.SPM.swd=conn_server('util_localfile',data.SPM.swd); end; end
Expand Down
Binary file modified conn_surf_sphere.mat
Binary file not shown.
Binary file modified rois/atlas.groups.mat
Binary file not shown.
Binary file modified rois/networks.groups.mat
Binary file not shown.
3 changes: 3 additions & 0 deletions utils/octave/getReport.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function msg = getReport(me,varargin)
msg = me.message;
end
19 changes: 19 additions & 0 deletions utils/octave/resave_mats.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
CONNDIR = fileparts(which('conn'));

for fn = dir(fullfile(CONNDIR,'**/*.mat'))'
fnfull = fullfile(fn.folder, fn.name);
fprintf('Processing %s...',fnfull);

% Load content
vars = load(fnfull);
nameVars = fieldnames(vars);
cellfun(@(v) assignin('base',v,vars.(v)), nameVars);

% Re-save
save(fnfull,nameVars{:},'-v7')

% Clear
cellfun(@clear, nameVars);

fprintf('Done!\n')
end
Binary file modified utils/otherrois/PFC.mat
Binary file not shown.
Binary file modified utils/otherrois/PPC.mat
Binary file not shown.
Binary file modified utils/otherrois/TD_brodmann.mat
Binary file not shown.
Binary file modified utils/otherrois/V1.mat
Binary file not shown.
Binary file modified utils/otherrois/V2.mat
Binary file not shown.
Binary file modified utils/otherrois/V5.mat
Binary file not shown.
Binary file modified utils/preprocessingpipelines/defaultMNISScombined.mat
Binary file not shown.
Binary file modified utils/preprocessingpipelines/defaultMNI_FMlegacy2018.mat
Binary file not shown.
Binary file modified utils/preprocessingpipelines/defaultMNI_fastacquisitions.mat
Binary file not shown.
Binary file modified utils/preprocessingpipelines/defaultMNI_indirectnorm.mat
Binary file not shown.
Binary file modified utils/preprocessingpipelines/defaultMNI_legacy2016.mat
Binary file not shown.
Binary file modified utils/preprocessingpipelines/defaultMNI_legacy2023.mat
Binary file not shown.
Binary file modified utils/preprocessingpipelines/defaultMNI_withlesion.mat
Binary file not shown.
Binary file modified utils/preprocessingpipelines/defaultSS_FMlegacy2018.mat
Binary file not shown.
Binary file modified utils/preprocessingpipelines/defaultSS_segmentbeforecoreg.mat
Binary file not shown.
Binary file modified utils/surf/lhrh.mat
Binary file not shown.
Binary file modified utils/surf/surf_top.mat
Binary file not shown.