search for: vector_list

Displaying 1 result from an estimated 1 matches for "vector_list".

Did you mean: factor_list
2008 Jul 18
2
generate repeats of a vector's elements
Dear all, I have got a question for generating repeats of a vector's elements. Please don't hesitate to email me back and say that it is very easy although I can't find a method to solve it. If I have a n-vector b, whose elements are b[1], b[2], ..., b[n], how can I generate such a vector b[1], b[1], b[2], b[1], b[2], b[3], b[1], b[2], b[3], b[4], ......, b[1], b[2], ...,