Changeset 1148 for trunk/src/series.m
- Timestamp:
- Jun 21, 2024, 4:51:59 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r1147 r1148 2321 2321 2322 2322 % remove old Action options in the menu (keeping a menu length <nb_builtin_ACTION+5) 2323 if length(ActionList)>NbBuiltinAction+5 ;% nb_builtin_ACTION=nbre of functions always remaining in the initial menu2323 if length(ActionList)>NbBuiltinAction+5% nb_builtin_ACTION=nbre of functions always remaining in the initial menu 2324 2324 nbremove=length(ActionList)-NbBuiltinAction-5; 2325 2325 ActionList(NbBuiltinAction+1:end-5)=[]; … … 2354 2354 %% check the current ActionPath to the selected function 2355 2355 ActionPath=ActionPathList{ActionIndex}; % current recorded path 2356 set(handles.ActionPath,'String',ActionPath); % show the path to the se nlected function2356 set(handles.ActionPath,'String',ActionPath); % show the path to the selected function 2357 2357 2358 2358 %% reinitialise the waitbar … … 2361 2361 %% Put the first line of the selected Action fct as tooltip help 2362 2362 try 2363 [fid,errormsg] =fopen([ ActionName'.m']);2363 [fid,errormsg] =fopen([fullfile(ActionPath,ActionName) '.m']); 2364 2364 InputText=textscan(fid,'%s',1,'delimiter','\n'); 2365 2365 fclose(fid); … … 2563 2563 2564 2564 %% Impose the whole input file index range if requested 2565 if isfield(ParamOut,'WholeIndexRange')&&isequal(ParamOut.WholeIndexRange,'on') 2565 if ~isfield(ParamOut,'WholeIndexRange') 2566 ParamOut.WholeIndexRange='off'; 2567 end 2568 if ~isfield(ParamOut,'WholeIndexRange_j') 2569 ParamOut.WholeIndexRange_j='off'; 2570 end 2571 2572 if strcmp(ParamOut.WholeIndexRange,'on') 2566 2573 MinIndex_i=get(handles.MinIndex_i,'Data'); 2567 MinIndex_j=get(handles.MinIndex_j,'Data');2568 2574 MaxIndex_i=get(handles.MaxIndex_i,'Data'); 2569 MaxIndex_j=get(handles.MaxIndex_j,'Data');2570 2575 set(handles.num_first_i,'String',num2str(MinIndex_i(1)))% set first as the min index (for the first line) 2571 2576 set(handles.num_last_i,'String',num2str(MaxIndex_i(1)))% set last as the max index (for the first line) 2572 2577 set(handles.num_incr_i,'String','1') 2578 else 2579 first_i=1;last_i=1; 2580 if isfield(Param.IndexRange,'first_i') 2581 first_i=Param.IndexRange.first_i; 2582 last_i=Param.IndexRange.last_i; 2583 end 2584 end 2585 if strcmp(ParamOut.WholeIndexRange,'on')||strcmp(ParamOut.WholeIndexRange_j,'on') 2586 MinIndex_j=get(handles.MinIndex_j,'Data'); 2587 MaxIndex_j=get(handles.MaxIndex_j,'Data'); 2573 2588 set(handles.num_first_j,'String',num2str(MinIndex_j(1)))% set first as the min index (for the first line) 2574 2589 set(handles.num_last_j,'String',num2str(MaxIndex_j(1)))% set last as the max index (for the first line) 2575 2590 set(handles.num_incr_j,'String','1') 2576 2591 else % check index ranges 2577 first_i=1;last_i=1;first_j=1;last_j=1; 2578 if isfield(Param.IndexRange,'first_i') 2579 first_i=Param.IndexRange.first_i; 2580 last_i=Param.IndexRange.last_i; 2581 end 2592 first_j=1;last_j=1; 2582 2593 if isfield(Param.IndexRange,'first_j') 2583 2594 first_j=Param.IndexRange.first_j;
Note: See TracChangeset
for help on using the changeset viewer.