Changeset 1150 for trunk/src/series.m
- Timestamp:
- Jun 24, 2024, 6:38:26 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r1148 r1150 1420 1420 %% create the Action fct handle if RunMode option = 'local' 1421 1421 if strcmp(RunMode,'local') 1422 if ~isequal(ActionPath,path_series) 1423 eval(['spath=which(''' ActionName ''');']) %spath = current path of the selected function ACTION 1424 if ~exist(ActionPath,'dir') 1425 errormsg=['The prescribed function path ' ActionPath ' does not exist']; 1426 return 1427 end 1428 if ~isequal(spath,ActionPath) 1429 addpath(ActionPath)% add the prescribed path if not the current one 1430 end 1431 end 1432 eval(['h_fun=@' ActionName ';'])%create a function handle for ACTION 1433 if ~isequal(ActionPath,path_series) 1434 rmpath(ActionPath)% add the prescribed path if not the current one 1435 end 1436 end 1422 current_dir=pwd; % current working dir 1423 cd(ActionPath) 1424 h_fun=str2func(ActionName);% create the function handle for the function ActionName 1425 cd(current_dir) 1426 % if ~isequal(ActionPath,path_series) 1427 % 1428 % %eval(['spath=which(''' ActionName ''');']) %spath = current path of the selected function ACTION 1429 % if ~exist(ActionPath,'dir') 1430 % errormsg=['The prescribed function path ' ActionPath ' does not exist']; 1431 % return 1432 % end 1433 % spath=fileparts(which(ActionName)); 1434 % if ~strcmp(spath,ActionPath) 1435 % addpath(ActionPath)% add the prescribed path if not the current one 1436 % end 1437 % end 1438 % eval(['h_fun=@' ActionName ';'])%create a function handle for ACTION 1439 % if ~isequal(ActionPath,path_series) 1440 % rmpath(ActionPath)% add the prescribed path if not the current one 1441 % end 1442 end 1437 1443 1438 1444 %% Get parameters from series.xml
Note: See TracChangeset
for help on using the changeset viewer.