D(t) = sqrt( (x1(t) + x2(t))^2 + (y1(t)+y2(t))^2 + (z1(t) + z2(t))^2) : how to Calculate the Euclidean distance between the two solutions, and plot this as a function of time.

3 views (last 30 days)
how to Calculate the Euclidean distance between the two solutions, and plot this as a function of time.

Answers (1)

Matt J
Matt J on 26 Sep 2013
norm(solution1-solution2)

Categories

Find more on Numeric Types 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!