File: tsgListGridsByName.m

package info (click to toggle)
tasmanian 8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,852 kB
  • sloc: cpp: 34,523; python: 7,039; f90: 5,080; makefile: 224; sh: 64; ansic: 8
file content (31 lines) | stat: -rw-r--r-- 567 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
function tsgListGridsByName()
%
% tsgListGridsByName()
%
% prints a list of all grids in the WorkFiles folder regardless if they are
% associated with lGrid class
%

[sFiles, sTasGrid] = tsgGetPaths();

lFileList = dir(sFiles);

lGridIndexes = [];

for iI = 1:length(lFileList)
    if (~isempty(findstr('_FileG', lFileList(iI).name)))
        lGridIndexes = [lGridIndexes, iI];
    end
end

disp([' Grids in the work folder:']);
disp([' ']);

for iI = 1:length(lGridIndexes)
    line = lFileList(lGridIndexes(iI)).name;
    disp(line(1:end-6));
end

disp([' ']);

end