3 %> @brief Returns indexes
for manual feature selection
5 %> Implements several ways of converting a list of features specificication
6 %> into the actual feature indexes
11 %> v = [1800, 1474; 1432, 1401; 1313, 1176; 1134, 900];
14 %> v = [1 86;97 105;128 163;174 235];
17 %> @param x Feature x-axis, such
as @ref
irdata::fea_x
18 %> @param v Contains ranges or an index list (see v_type below) to include, 1 in each row.
20 %> @arg @c 'rx' if v is expressed in the same unit as data vars x
21 %> @arg @c 'ri' if v contains index ranges
22 %> @arg @c 'i' if v contains feature indexes
23 %> @param flag_complement If 1, will exclude the specified variables
24 %> @return indexes Vector of feature indexes
25 function indexes = get_feaidxs(x, v, v_type, flag_complement)
27 if ~exist('v_type', 'var')
31 if ~exist(
'flag_complement',
'var')
51 for i = 1:size(ranges, 1)
52 indexes = [indexes ranges(i, 1):ranges(i, 2)];
function v_x2ind(in v, in x)
Analysis Session (AS) base class.