diff --git a/functions/sigprocfunc/topoplot.m b/functions/sigprocfunc/topoplot.m index 3741d2e06..b20270e50 100644 --- a/functions/sigprocfunc/topoplot.m +++ b/functions/sigprocfunc/topoplot.m @@ -1005,7 +1005,7 @@ % xi = linspace(xmin,xmax,GRID_SCALE); % x-axis description (row vector) yi = linspace(ymin,ymax,GRID_SCALE); % y-axis description (row vector) - [xi,yi] = meshgrid(xi, yi); + [yi,xi] = meshgrid(yi, xi); [Xi,Yi,Zi] = griddata(inty,intx,double(intValues),yi,xi,'v4'); % interpolate data [Xi,Yi,ZiC] = griddata(inty,intx,double(intContourVals),yi,xi,'v4'); % interpolate data diff --git a/functions/studyfunc/std_savedat.m b/functions/studyfunc/std_savedat.m index d7f31b59c..be50f8373 100644 --- a/functions/studyfunc/std_savedat.m +++ b/functions/studyfunc/std_savedat.m @@ -37,10 +37,11 @@ function std_savedat( tmpfile, structure) if ~isfield(structure, 'datafile') && ~isfield(structure, 'datafiles') structure.datafile = [ tmpfile(1:delims(end)-1) '.set' ]; end + structure.date = char(datetime('today')); % fix reading problem (bug 764) tmpfile2 = which(tmpfile); - if isempty(tmpfile2), tmpfile2 = tmpfile; end; + if isempty(tmpfile2), tmpfile2 = tmpfile; end tmpfile = tmpfile2; eeglab_options;