The Octave Forge package repository is no longer actively maintained. Please find Octave Packages at https://packages.octave.org.

Navigation

Operators and Keywords

Function List:

C++ API

Method on @infsup: postpad (X, L)
Method on @infsup: postpad (X, L, C)
Method on @infsup: postpad (X, L, C, DIM)

Append the scalar interval value C to the interval vector X until it is of length L. If C is not given, a value of 0 is used.

If length (X) > L, elements from the end of X are removed until an interval vector of length L is obtained.

If X is an interval matrix, elements are appended or removed from each row or column.

If the optional argument DIM is given, operate along this dimension.

If DIM is larger than the dimension of X, the result will have DIM dimensions.

postpad (infsup (1 : 3), 5, 42)
  ⇒ ans = 1×5 interval vector
     [1]   [2]   [3]   [42]   [42]

See also: @infsup/reshape, @infsup/cat, @infsup/prepad, @infsup/resize.

Package: interval