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

2 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))

Categories

Find more on Operators and Elementary Operations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!