Adding an integer to each value in a vector
I have a lengthy function that basically boils down to adding an integer to each value in a vector and for some reason I cannot figure out how to get it to work.
For example, I have the integer, X, and the vector A. A has values from 0 to 4
How do I get it to add X to each value of A to output a vector of A (X+0, X+1, X+2, X+3, X+4)?
if the range variable for A goes like: for k = 0....4
would it not be something like X + a (k,0)?
Thanks

