MATLAB: Can two 201×1 arrays be added in matrix multiplication way to produce a 201×201 matrix

for loop

I'm having trouble creating a for loop nested in a for loop that allows me to add to single column arrays in a matrix multiplicative way. In other words take two 201×1 arrays add them in the way described below to produce a 201×201 matrix. Please help if you can.
And what I mean by a matrix multiplicative way is :.
A=[1
2
3
4]
B=[A
B
C
D]
A+B=[1+A 2+A 3+A ]
1+B 2+B 3+B
1+C 2+C 3+C
1+D 2+D 3+D....

Best Answer

Take a look at bsxfun:
C = bsxfun(@plus, A, B')