Changeset 461 for trunk/src/series.m
- Timestamp:
- Jun 20, 2012, 2:13:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r460 r461 485 485 MaxIndex_i=max(find(i_sum>0))-1; 486 486 MinIndex_i=min(find(i_sum>0))-1; 487 if isequal(MinIndex_i,1) && exist (fullfile_uvmat(RootPath,SubDir,RootFile,FileExt,NomType,0,i2_series(2,2),j1_series(2,2),j2_series(2,2)),'file') 487 i2_min=[]; 488 if ~isempty(i2_series) 489 i2_min=i2_series(1,2); 490 end 491 j1_min=[]; 492 if ~isempty(j1_series) 493 j1_min=j1_series(1,2); 494 end 495 j2_min=[]; 496 if ~isempty(j2_series) 497 j2_min=j2_series(1,2); 498 end 499 if isequal(MinIndex_i,1) && exist (fullfile_uvmat(RootPath,SubDir,RootFile,FileExt,NomType,0,i2_min, j1_min,j2_min),'file') 488 500 MinIndex_i=0; 489 501 end … … 1367 1379 %------------------------------------------------------------------------ 1368 1380 % --- Main launch command, called by RUN and BATCH 1369 function [h_fun,Series,filexml,errormsg]=prepare_jobs(handles) 1370 %------------------------------------------------------------------------ 1381 function [h_fun,Series,filexml,errormsg]=prepare_jobs(handles,run) 1382 %------------------------------------------------------------------------ 1383 h_fun=[]; 1371 1384 filexml=''; 1372 1385 errormsg=''; 1386 if ~exist('run','var') 1387 run=1; 1388 end 1373 1389 %% Read parameters from series 1374 1390 Series=read_GUI(handles.series); … … 1425 1441 end 1426 1442 1443 if ~run 1444 return 1445 end 1446 1427 1447 %% defining the ActionName function handle 1428 1448 list_action=get(handles.ActionName,'String');% list menu action 1429 1449 index=get(handles.ActionName,'Value'); 1430 1450 action= list_action{index}; % selected string 1431 Series.Action=action;%name of the processing programme1451 %Series.Action=action;%name of the processing programme 1432 1452 Series.hseries=handles.series; % handles to the series GUI 1433 1453 path_series=which('series'); … … 1437 1457 eval(['spath=which(''' action ''');']) %spath = current path of the selected function ACTION 1438 1458 if ~exist(fct_path,'dir') 1439 errormsg=['The presc ibed function path ' fct_path ' does not exist'];1459 errormsg=['The prescribed function path ' fct_path ' does not exist']; 1440 1460 return 1441 1461 end … … 2287 2307 function MenuExportConfig_Callback(hObject, eventdata, handles) 2288 2308 global Series 2289 [tild,Series,errormsg]=prepare_jobs(handles );2309 [tild,Series,errormsg]=prepare_jobs(handles,0); 2290 2310 % Series=read_GUI(handles.series); 2291 2311
Note: See TracChangeset
for help on using the changeset viewer.