File name obtained by concatenating index matrices
[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)
Begin part of name
End part of name
Interindex separator in the name
File extension
Concatenated index matrices
List of concatenable index matrices
Matrix of indexes included in names
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
Array of formulated filenames with indexes
Matrix of concatenated indices
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
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); | ![]() | ![]() |