Name obtained by concatenating index matrices
[indexNames,.. indexMatrix]=NamesIndexes(beginPartName,endPartName,indexSepName,indexMatrix1,indexMatrix2[,grid])
[indexNames,.. indexMatrix]=NamesIndexes(beginPartName,endPartName,indexSepName,listIndexMatrix[,grid])
[indexNames,.. indexMatrix]=NamesIndexes(beginPartName,endPartName,indexSepName,IndexMatrix)
Begin part of name
End part of name
Interindex separator in the name
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 names with indexes
Matrix of concatenated indices
Forms an array of names 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
beginPartName = "beginName";//Begin of name endPartName = "NameEnd";//End of name indexSepName = "_";//Index separator indexMatrix1 = [ 1, 2;.. 5, 7;.. 10, 15]; indexMatrix2 = [3;.. 6;.. 9]; grid = %f; //Performing a concatenation [indexNames,.. indexMatrix] = NamesIndexes(beginPartName,endPartName,indexSepName,.. indexMatrix1,indexMatrix2,grid); //Concatenated matrix disp(indexNames); disp(indexMatrix); | ![]() | ![]() |
beginPartName = "beginName";//Begin of name endPartName = "NameEnd";//End of name indexSepName = "_";//Index separator indexMatrix1 = [ 1, 5;.. 12, 17]; indexMatrix2 = [4;.. 7;.. 8]; grid = %t; //Performing a concatenation [indexNames,.. indexMatrix] = NamesIndexes(beginPartName,endPartName,indexSepName,.. indexMatrix1,indexMatrix2,grid); //Concatenated matrix disp(indexNames); disp(indexMatrix); //Performing a concatenation [indexNames,.. indexMatrix] = NamesIndexes(beginPartName,endPartName,indexSepName,.. indexMatrix1,indexMatrix2); //Concatenated matrix disp(indexNames); disp(indexMatrix); | ![]() | ![]() |
//Конкатенуемые матрицы beginPartName = "begName";//Begin of name endPartName = "NameEn";//End of name indexSepName = "%";//Index separator indexMatrix1 = [ 1, 2;.. 5, 7;.. 10, 15]; indexMatrix2 = [3;.. 6;.. 9]; indexMatrix3 = [13, 17;.. 12, 16]; //Performing a concatenation [indexNames,.. indexMatrix] = NamesIndexes(beginPartName,endPartName,indexSepName,.. list(indexMatrix1,indexMatrix2,indexMatrix3),[%f,%t]);; //Concatenated matrix disp(indexNames); disp(indexMatrix); //Performing a concatenation [indexNames,.. indexMatrix] = NamesIndexes(beginPartName,endPartName,indexSepName,.. list(indexMatrix1,'',indexMatrix2,indexMatrix3),[%f,%f,%t]); //Concatenated matrix disp(indexNames); disp(indexMatrix); | ![]() | ![]() |
//Конкатенуемые матрицы beginPartName = "begName";//Begin of name endPartName = "NameEn";//End of name indexSepName = "%";//Index separator indexMatrix1 = [ 1, 3;.. 6, 9;.. 14, 17]; indexMatrix2 = [ 5;.. 8;.. 15]; indexMatrix3 = [13, 17;.. 12, 16]; //Performing a concatenation [indexNames,.. indexMatrix] = NamesIndexes(beginPartName,endPartName,indexSepName,.. list(indexMatrix1,indexMatrix2,indexMatrix3),%t);; //Concatenated matrix disp(indexNames); disp(indexMatrix); //Performing a concatenation [indexNames,.. indexMatrix] = NamesIndexes(beginPartName,endPartName,indexSepName,.. list(indexMatrix1,'',indexMatrix2,indexMatrix3),%t); //Concatenated matrix disp(indexNames); disp(indexMatrix); //Performing a concatenation [indexNames,.. indexMatrix] = NamesIndexes(beginPartName,endPartName,indexSepName,.. list(indexMatrix1,indexMatrix2,indexMatrix3));; //Concatenated matrix disp(indexNames); disp(indexMatrix); //Performing a concatenation [indexNames,.. indexMatrix] = NamesIndexes(beginPartName,endPartName,indexSepName,.. list(indexMatrix1,'',indexMatrix2,indexMatrix3)); //Concatenated matrix disp(indexNames); disp(indexMatrix); | ![]() | ![]() |
beginPartName = "beginName";//Begin of name endPartName = "NameEnd";//End of name indexSepName = "e";//Index separator indexMatrix = [ 1, 2, 3;.. 5, 7, 4;.. 10, 15, 16]; //Performing a concatenation [indexNames,.. indexMatrix] = NamesIndexes(beginPartName,endPartName,indexSepName,indexMatrix); //Concatenated matrix disp(indexNames); disp(indexMatrix); | ![]() | ![]() |