Skip to content

Commit

Permalink
better Octave compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
arnodelorme committed Jan 8, 2024
1 parent 290ea71 commit 98b8c1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions run_ICL.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@

% check path (sometimes mex file not first which create a problem)
path2vl_nnconv = which('-all', 'vl_nnconv');
if isempty(findstr('mex', path2vl_nnconv{1})) && length(path2vl_nnconv) > 1
addpath(fileparts(path2vl_nnconv{2}));
if ~ischar(path2vl_nnconv)
if ~isempty(path2vl_nnconv) && isempty(findstr('mex', path2vl_nnconv{1})) && length(path2vl_nnconv) > 1
addpath(fileparts(path2vl_nnconv{2}));
end
end

%% inference
Expand Down
4 changes: 2 additions & 2 deletions topoplotFast.m
Original file line number Diff line number Diff line change
Expand Up @@ -956,8 +956,8 @@
%
xi = linspace(xmin,xmax,GRID_SCALE); % x-axis description (row vector)
yi = linspace(ymin,ymax,GRID_SCALE); % y-axis description (row vector)

[Xi,Yi,Zi] = griddata(double(inty),double(intx),double(intValues),double(yi)',double(xi),'v4'); % interpolate data
[xi,yi] = meshgrid(xi,yi);
[Xi,Yi,Zi] = griddata(double(inty),double(intx),double(intValues),double(yi),double(xi),'v4'); % interpolate data
% [Xi,Yi,ZiC] = griddata(double(inty),double(intx),double(intContourVals),double(yi)',double(xi),'v4'); % interpolate data

%
Expand Down

0 comments on commit 98b8c1b

Please sign in to comment.