replicate
contributed by Andrew Gibson simple way to create a n-element vector of the same value (x)
Return
1D array of length n filled with values x
Parameters
x
scalar input value
n
number of replications
contributed by Andrew Gibson simple way to create a n-element vector of the same value (x)
1D array of length n filled with values x
scalar input value
number of replications