Consider a matrix A:

```
A = magic(5)

17    24     1     8    15
23     5     7    14    16
 4     6    13    20    22
10    12    19    21     3
11    18    25     2     9

```

I have to compute the following formula: w\_ij = ||I(i) - I(j)|| ^ 2 from point A(1,1) to its neighborhood i.e. A(1:2, 1:2). Now I don't understand well what this formula stand for since it is not specified. Is this the Euclidean distance? 

I tried

```
norm(A(1, 1) - A(1:2, 1:2))

```

But that gives me a scalar. I'm expecting a vector of 4 elements. Can you help me?