# Does 'i' after value stand for 'index', and if so why does it appear as part of the answer?

1 view (last 30 days)

Show older comments

Alexander Eaton
on 24 Mar 2018

Commented: Alexander Eaton
on 25 Mar 2018

I am trying to calculate the Euclidean distance between two images vectors of 4096 values that are contained in a file called allData (see pic) with the command:

Dist = sqrt(sum((allData(1) - allData(3) .^ 2)))

the answer that was returned was

0.0000 +19.1794i

does this answer seem correct or is the 'i' returned because im indexing into a matrix and im just getting returned one of the values from that image vector or am i being returned the distance between the two rows?

##### 0 Comments

### Accepted Answer

Roger Stafford
on 24 Mar 2018

Edited: Roger Stafford
on 24 Mar 2018

##### 5 Comments

### More Answers (0)

### See Also

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!