libpointer_plus

plus operator on libpointer handle.

Syntax

  • h2 = h.plus(offset)

  • h2 = h + offset

Input argument

  • h - a libpointer handle.

  • offset - a integer value: increment.

Description

plus operator on libpointer handle.

ouptut libpointer is valid only as long as the original input libpointer exists.

See also

libpointer.

Example

x = [1 2 3 4 5];
xPtr = libpointer('doublePtr', x);
y = xPtr + 2;
y.reshape(1, 3);
y.Value

History

Author

Allan CORNET

Last updated