how to find the Euclidean distance between the first and last columns in matrix?

4 views (last 30 days)
how to find the Euclidean distance between the first and last columns in matrix

Answers (1)

Voss
Voss on 12 Nov 2022
norm(A(:,1)-A(:,end))

Community Treasure Hunt

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

Start Hunting!