Begin EASYconsole.m work on server

This commit is contained in:
2024-07-24 22:41:28 -04:00
parent ef449c66ff
commit 5a9addbeb4

View File

@@ -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;