<< NamesIndexes indexed_names

indexed_names >> indexed_names > NamesIndexesRange

NamesIndexesRange

Name obtained by concatenating matrices of indexes obtained from ranges

Syntax

[indexNames,..
indexMatrix]=NamesIndexesRange(beginPartName,endPartName,indexSepName,minIndexes,maxIndexes,stepIndexes,elementsIndexes[,grid])
[indexNames,..
indexMatrix]=NamesIndexesRange(beginPartName,endPartName,indexSepName,minIndexes,maxIndexes,stepIndexes[,grid])
[indexNames,..
indexMatrix]=NamesIndexesRange(beginPartName,endPartName,indexSepName,minIndexes,maxIndexes[,grid])
[indexNames,..
indexMatrix]=NamesIndexesRange(beginPartName,endPartName,indexSepName,maxIndexes[,grid])

Arguments

beginPartName

Begin part of name

endPartName

End part of name

indexSepName

Interindex separator in the name

minIndexes

Minimum index values

maxIndexes

Maximum index values

stepIndexes

Index steps

elementsIndexes

Elements that replace the indices of the concatenated matrix, chosen in accordance with the indices of the concatenated matrix

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

indexNames

Array of formulated names with indexes

indexMatrix

Matrix of concatenated indices

Description

Forms an array of names from a matrix of indices or by concatenation of matrices of indices obtained from ranges, according to the types of concatenation

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

Examples

beginPartName = "beginName";//Begin of name
endPartName = "NameEnd";//End of name
indexSepName = "_";//Index separator
minIndexes = [1, 2, 5];
maxIndexes = [3; 6; 7];
stepIndexes = [1, 2, 1];
elementsIndexes = ['as','rg','wq','1w','xa','hd','3d','l'];
grid = %f;

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,stepIndexes,..
                                  elementsIndexes,grid);

//Concatenated matrix
disp(indexNames);
disp(indexMatrix);
beginPartName = "beginName";//Begin of name
endPartName = "NameEnd";//End of name
indexSepName = "_";//Index separator
minIndexes = [1, 2, 5];
maxIndexes = [3; 6; 7];
stepIndexes = [1, 2, 1];
grid = %f;

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,stepIndexes,[],grid);

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

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,stepIndexes,grid);

//Concatenated matrix
disp(indexNames);
disp(indexMatrix);
beginPartName = "beginName";//Begin of name
endPartName = "NameEnd";//End of name
indexSepName = "_";//Index separator
minIndexes = [1, 2, 5];
maxIndexes = [3; 6; 7];
stepIndexes = [1, 2, 1];
elementsIndexes = ['as','rg','wq','1w','xa','hd','3d','l'];
grid = %t;

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,stepIndexes,..
                                  elementsIndexes,grid);

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

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,stepIndexes,..
                                  elementsIndexes);

//Concatenated matrix
disp(indexNames);
disp(indexMatrix);
beginPartName = "beginName";//Begin of name
endPartName = "NameEnd";//End of name
indexSepName = "_";//Index separator
minIndexes = [1, 2, 5];
maxIndexes = [3; 6; 7];
stepIndexes = [1, 2, 1];
grid = %t;

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,stepIndexes,[],grid);

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

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,stepIndexes,[]);

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

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,stepIndexes,grid);

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

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,stepIndexes);

//Concatenated matrix
disp(indexNames);
disp(indexMatrix);
beginPartName = "beginName";//Begin of name
endPartName = "NameEnd";//End of name
indexSepName = "_";//Index separator
minIndexes = [1, 2,  5];
maxIndexes = [3; 8; 12];
stepIndexes = [1, 3, 2];
elementsIndexes = ['as','rg','wq','1w','xa','hd','3d','l','yt','i7','9h','o','p','k'];
grid = [%f,%t];

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,stepIndexes,..
                                  elementsIndexes,grid);

//Concatenated matrix
disp(indexNames);
disp(indexMatrix);
beginPartName = "beginName";//Begin of name
endPartName = "NameEnd";//End of name
indexSepName = "_";//Index separator
minIndexes = [1, 2,  5];
maxIndexes = [3; 8; 12];
stepIndexes = [1, 3, 2];
grid = [%f,%t];

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,stepIndexes,[],grid);

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

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,stepIndexes,grid);

//Concatenated matrix
disp(indexNames);
disp(indexMatrix);
beginPartName = "beginName";//Begin of name
endPartName = "NameEnd";//End of name
indexSepName = "_";//Index separator
minIndexes = [1, 2,  5];
maxIndexes = [3; 4; 10];
stepIndexes = [1, 1, 1];
grid = [%f,%t];

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,stepIndexes,grid);

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

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,grid);

//Concatenated matrix
disp(indexNames);
disp(indexMatrix);
beginPartName = "beginName";//Begin of name
endPartName = "NameEnd";//End of name
indexSepName = "_";//Index separator
minIndexes = [1, 2,  5];
maxIndexes = [3; 4; 10];
stepIndexes = [1, 1, 1];
grid = %t;

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,stepIndexes,grid);

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

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,grid);

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

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,stepIndexes);

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

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes);

//Concatenated matrix
disp(indexNames);
disp(indexMatrix);
beginPartName = "beginName";//Begin of name
endPartName = "NameEnd";//End of name
indexSepName = "_";//Index separator
minIndexes = [1, 1, 1];
maxIndexes = [3; 2; 6];
stepIndexes = [1, 1, 1];
grid = [%t,%f];

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,stepIndexes,grid);

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

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,grid);

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

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  maxIndexes,grid);

//Concatenated matrix
disp(indexNames);
disp(indexMatrix);
beginPartName = "beginName";//Begin of name
endPartName = "NameEnd";//End of name
indexSepName = "_";//Index separator
minIndexes = [1, 1,  1];
maxIndexes = [3; 4; 10];
stepIndexes = [1, 1, 1];
grid = %t;

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,stepIndexes,grid);

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

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,grid);

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

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,maxIndexes,grid);

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

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes,stepIndexes);

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

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,..
                                  minIndexes,maxIndexes);

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

//Performing a concatenation
[indexNames,..
 indexMatrix] = NamesIndexesRange(beginPartName,endPartName,indexSepName,maxIndexes);

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

See also


Report an issue
<< NamesIndexes indexed_names