extendVEC extends vector x inserting value in the positions in index
ext=extendVEC(x, index, value)
example
ext =extendVEC(x, index, value) Example 1: Row vector extended with the inclusion of multiple elements "Inf" in the tail.
ext =extendVEC(x, index, value)
ext
x
index
value
expand all
x = [1 2 3 4 5 6]; index = [2 5 11]; ext = extendVEC(x, index, Inf)
Data Types: single| double
single| double
It can be either a row or a column vector, depending on input x.
Copyright 2008-2020.
Written by FSDA team