<< CreateIndexesFromDiapasons indexed_names FileNamesIndexesRange >>

indexed_names >> indexed_names > FileNamesIndexes

FileNamesIndexes

File name obtained by concatenating index matrices

Syntax

[fileIndexNames,..
indexMatrix]=FileNamesIndexes(beginPartName,endPartName,indexSepName,extFile,indexMatrix1,indexMatrix2[,grid])
[fileIndexNames,..
indexMatrix]=FileNamesIndexes(beginPartName,endPartName,indexSepName,extFile,listIndexMatrix[,grid])
[fileIndexNames,..
indexMatrix]=FileNamesIndexes(beginPartName,endPartName,indexSepName,extFile,IndexMatrix)

Arguments

beginPartName

Begin part of name

endPartName

End part of name

indexSepName

Interindex separator in the name

extFile

File extension

indexMatrix1 and indexMatrix2

Concatenated index matrices

listIndexMatrix

List of concatenable index matrices

IndexMatrix

Matrix of indexes included in names

grid

Index matrix concatenation type. Represents an array of boolean values. The number of array elements is one less than the number of concatenated index matrices

Results

fileIndexNames

Array of formulated filenames with indexes

indexMatrix

Matrix of concatenated indices

Description

Forms an array of filenames (with extensions) from an index matrix or by concatenation of index matrices according to concatenation types

Each i-th element of the array grig determines the type of concatenation of the i-th and i+1-th matrices. If grid(i) takes the value %t, then the i-th and i+1-th matrices are concatenated by replicating the rows of these matrices, otherwise no row replication is performed. In case grid(i) is false, the numbers of rows of the i-th and i+1-th matrices must be equal.

By default, all grig values are true

The file extension (variable extFile) can be specified with or without a dot

Examples

beginPartName = "beginName";//Begin of name
endPartName = "NameEnd";//End of name
indexSepName = "_";//Index separator
extFile = ".rew";//File extension
indexMatrix1 = [ 1,  2;..
                 5,  7;..
                10, 15];
indexMatrix2 = [3;..
                6;..
                9];
grid = %f;

//Performing a concatenation
[fileIndexNames,..
 indexMatrix] = FileNamesIndexes(beginPartName,endPartName,indexSepName,extFile,..
                                 indexMatrix1,indexMatrix2,grid);

//Concatenated matrix
disp(fileIndexNames);
disp(indexMatrix);
beginPartName = "beginName";//Begin of name
endPartName = "NameEnd";//End of name
indexSepName = "_";//Index separator
extFile = "reu";//File extension
indexMatrix1 = [ 1,  2;..
                 5,  7;..
                10, 15];
indexMatrix2 = [3;..
                6;..
                9];
grid = %f;

//Performing a concatenation
[fileIndexNames,..
 indexMatrix] = FileNamesIndexes(beginPartName,endPartName,indexSepName,extFile,..
                                 indexMatrix1,indexMatrix2,grid);

//Concatenated matrix
disp(fileIndexNames);
disp(indexMatrix);
beginPartName = "beginName";//Begin of name
endPartName = "NameEnd";//End of name
indexSepName = "_";//Index separator
extFile = ".rew";//File extension
indexMatrix1 = [ 1,  5;..
                12, 17];
indexMatrix2 = [4;..
                7;..
                8];
grid = %t;

//Performing a concatenation
[fileIndexNames,..
 indexMatrix] = FileNamesIndexes(beginPartName,endPartName,indexSepName,extFile,..
                                 indexMatrix1,indexMatrix2,grid);

//Concatenated matrix
disp(fileIndexNames);
disp(indexMatrix);

//Performing a concatenation
[fileIndexNames,..
 indexMatrix] = FileNamesIndexes(beginPartName,endPartName,indexSepName,extFile,..
                                 indexMatrix1,indexMatrix2);

//Concatenated matrix
disp(fileIndexNames);
disp(indexMatrix);
beginPartName = "beginName";//Begin of name
endPartName = "NameEnd";//End of name
indexSepName = "_";//Index separator
extFile = "raw";//File extension
indexMatrix1 = [ 1,  5;..
                12, 17];
indexMatrix2 = [4;..
                7;..
                8];
grid = %t;

//Performing a concatenation
[fileIndexNames,..
 indexMatrix] = FileNamesIndexes(beginPartName,endPartName,indexSepName,extFile,..
                                 indexMatrix1,indexMatrix2,grid);

//Concatenated matrix
disp(fileIndexNames);
disp(indexMatrix);

//Performing a concatenation
[fileIndexNames,..
 indexMatrix] = FileNamesIndexes(beginPartName,endPartName,indexSepName,extFile,..
                                 indexMatrix1,indexMatrix2);

//Concatenated matrix
disp(fileIndexNames);
disp(indexMatrix);
//Конкатенуемые матрицы
beginPartName = "begName";//Begin of name
endPartName = "NameEn";//End of name
indexSepName = "%";//Index separator
extFile = ".rew";//File extension
indexMatrix1 = [ 1,  2;..
                 5,  7;..
                10, 15];
indexMatrix2 = [3;..
                6;..
                9];
indexMatrix3 = [13, 17;..
                12, 16];

//Performing a concatenation
[fileIndexNames,..
 indexMatrix] = FileNamesIndexes(beginPartName,endPartName,indexSepName,extFile,..
                                 list(indexMatrix1,indexMatrix2,indexMatrix3),[%f,%t]);;

//Concatenated matrix
disp(fileIndexNames);
disp(indexMatrix);

//Performing a concatenation
[fileIndexNames,..
 indexMatrix] = FileNamesIndexes(beginPartName,endPartName,indexSepName,extFile,..
                                 list(indexMatrix1,'',indexMatrix2,indexMatrix3),[%f,%f,%t]);

//Concatenated matrix
disp(fileIndexNames);
disp(indexMatrix);
//Конкатенуемые матрицы
beginPartName = "begName";//Begin of name
endPartName = "NameEn";//End of name
indexSepName = "%";//Index separator
extFile = ".rew";//File extension
indexMatrix1 = [ 1,  3;..
                 6,  9;..
                14, 17];
indexMatrix2 = [ 5;..
                 8;..
                15];
indexMatrix3 = [13, 17;..
                12, 16];

//Performing a concatenation
[fileIndexNames,..
 indexMatrix] = FileNamesIndexes(beginPartName,endPartName,indexSepName,extFile,..
                                 list(indexMatrix1,indexMatrix2,indexMatrix3),%t);;

//Concatenated matrix
disp(fileIndexNames);
disp(indexMatrix);

//Performing a concatenation
[fileIndexNames,..
 indexMatrix] = FileNamesIndexes(beginPartName,endPartName,indexSepName,extFile,..
                                 list(indexMatrix1,'',indexMatrix2,indexMatrix3),%t);

//Concatenated matrix
disp(fileIndexNames);
disp(indexMatrix);

//Performing a concatenation
[fileIndexNames,..
 indexMatrix] = FileNamesIndexes(beginPartName,endPartName,indexSepName,extFile,..
                                 list(indexMatrix1,indexMatrix2,indexMatrix3));;

//Concatenated matrix
disp(fileIndexNames);
disp(indexMatrix);

//Performing a concatenation
[fileIndexNames,..
 indexMatrix] = FileNamesIndexes(beginPartName,endPartName,indexSepName,extFile,..
                                 list(indexMatrix1,'',indexMatrix2,indexMatrix3));

//Concatenated matrix
disp(fileIndexNames);
disp(indexMatrix);
beginPartName = "beginName";//Begin of name
endPartName = "NameEnd";//End of name
indexSepName = "e";//Index separator
extFile = ".rew";//File extension
indexMatrix = [ 1,  2,  3;..
                5,  7,  4;..
               10, 15, 16];

//Performing a concatenation
[fileIndexNames,..
 indexMatrix] = FileNamesIndexes(beginPartName,endPartName,indexSepName,extFile,indexMatrix);

//Concatenated matrix
disp(fileIndexNames);
disp(indexMatrix);

See also


Report an issue
<< CreateIndexesFromDiapasons indexed_names FileNamesIndexesRange >>