diff --git a/workflow/templates/easy/EASYconsole.m b/workflow/templates/easy/EASYconsole.m index 29fde932..1f7cd71a 100644 --- a/workflow/templates/easy/EASYconsole.m +++ b/workflow/templates/easy/EASYconsole.m @@ -1,4 +1,7 @@ % Launch the MATLAB EASY console +% +% Updated 240724 Bryan C Roessler to improve file operations and portability +% function varargout = EASYconsole(varargin) % initialize global variables for function EASYconsole %global ExpOutmat @@ -218,7 +221,7 @@ function LoadDatFile_Callback(~, ~, ~) ExpPath=fullfile('../../',openExppath) if isfolder(fullfile(openExppath, '..','..','1')) %If Inovation Vrobot Then - if exist(fullfile(resDir,'PTmats','NImParameters.mat')) + if exist(fullfile(resDir,'PTmats','NImParameters.mat'), 'file') load(fullfile(resDir,'PTmats','NImParameters.mat')); else curDir=pwd; @@ -227,7 +230,7 @@ function LoadDatFile_Callback(~, ~, ~) cd(curDir) end else %If Epson 10Plate Scans Then> - if exist(fullfile(resDir,'PTmats','ImParameters.mat')) + if exist(fullfile(resDir,'PTmats','ImParameters.mat'), 'file') load(fullfile(resDir,'PTmats','ImParameters.mat')); else curDir=pwd;