power

description:

g=power(f, n) is called for the syntax 'f.^n' and computes the n-th power of the each element in a matrix of NC polynomials.

arguments:

f is a matrix of NCpolys

n is a nonnegative integer

output:

matrix of NCpolys

possible usage:

f.^n, power(f, n)

example:

>> [x+y x-y].^2

ans = x^2+x*y+y*x+y^2   x^2-x*y-y*x+y^2