Emulates the times() and .* operators from Matlab.
Usage
times(a, b)
Value
matrix with dimensions equal to the larger of the two factors
Arguments
a
first factor of the multiplication
b
second factor of the multiplication
Details
This function basically handles elements of different length
better than the * operator in R, at least as far as behavior from a
Matlab user is expecting.