Changeset 453 for trunk/src/series.m
- Timestamp:
- Jun 13, 2012, 5:03:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r450 r453 1259 1259 set(handles.RUN, 'Enable','Off') 1260 1260 set(handles.RUN,'BackgroundColor',[0.831 0.816 0.784]) 1261 [h_fun,Series, errormsg]=prepare_jobs(handles);1261 [h_fun,Series,filexml,errormsg]=prepare_jobs(handles); 1262 1262 if ~isempty(errormsg) 1263 1263 msgbox_uvmat('ERROR',errormsg) 1264 1264 else 1265 Series.Specific=h_fun(Series,0); 1266 t=struct2xml(Series); 1267 t=set(t,1,'name','Series'); 1268 save(t,filexml); 1265 1269 h_fun(Series); 1266 1270 end … … 1283 1287 set(handles.BATCH, 'Enable','Off') 1284 1288 set(handles.BATCH,'BackgroundColor',[0.831 0.816 0.784]) 1285 [h_fun,Series, errormsg]=prepare_jobs(handles);1289 [h_fun,Series,filexml,errormsg]=prepare_jobs(handles); 1286 1290 if ~isempty(errormsg) 1287 1291 msgbox_uvmat('ERROR',errormsg) 1288 1292 return 1289 1293 end 1294 % update the xml file after interactive input with the function 1295 Series.Specific=h_fun(Series,0); 1296 t=struct2xml(Series); 1297 t=set(t,1,'name','Series'); 1298 save(t,filexml); 1290 1299 path_series=fileparts(which('series')); 1291 1300 filename_xml=fullfile(Series.OutputDir,[Series.OutputRootFile '.xml']); … … 1296 1305 return 1297 1306 end 1307 fctpath=get(handles.ActionPath,'String'); 1298 1308 text_matlabscript=[... 1299 1309 '#!/bin/bash \n'... … … 1301 1311 'matlab -nodisplay -nosplash -nojvm <<END_MATLAB \n'... 1302 1312 'cd(''' path_series '''); \n'... 1313 'addpath(''' fctpath '''); \n'... 1303 1314 '' Series.Action '( ''' filename_xml '''); \n'... 1304 1315 'exit \n'... … … 1323 1334 %------------------------------------------------------------------------ 1324 1335 % --- Main lauch command, called by RUN and BATCH 1325 function [h_fun,Series, errormsg]=prepare_jobs(handles)1336 function [h_fun,Series,filexml,errormsg]=prepare_jobs(handles) 1326 1337 %------------------------------------------------------------------------ 1327 1338 errormsg=''; … … 1688 1699 delete(hget_field)%delete opened versions of get_field 1689 1700 end 1690 [filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(read_GUI(handles.series));1701 filecell=get_file_series(read_GUI(handles.series)); 1691 1702 if exist(filecell{1,1},'file') 1692 1703 get_field(filecell{1,1})
Note: See TracChangeset
for help on using the changeset viewer.