powered by
bsxfun(f, x, y, ...)
x, y
Vectorize
X <- matrix(rep(1:10, each = 10), 10, 10) Y <- t(X) bsxfun("*", X, Y) # multiplication table
Run the code above in your browser using DataLab