I have a column vector `A`. When `A` is a scalar I can use the colon operator to generate a vector like so

```
B = A-m:n:A+p

```

However, what I want to do is different. I want the result B to look like so,

```
[A-m, A-m+1 ... A ... , A+n-1, A+n]

```

I know I can accomplish this by using `repmat` on `-m:n:p` followed with a `bsxfun` added with the original `A` matrix. 

Is there a more direct method?