Filter löschen
Filter löschen

Using DTW function in Matlab with euclidean metric for 2D data

3 Ansichten (letzte 30 Tage)
m qasim
m qasim am 21 Sep. 2019
Kommentiert: Erik Jakobsson am 20 Jan. 2021
Hi iam using Matlab 2018a
When using DTW function for two single vectors on X and Y the DTW works good
but when using the 2D data as matrix input for DTW , the finction returns the absolute value for both metrics 'euclidean as well as absolute
X1=[3 7;5 9];
Y1=[4 5;2 6];
dist=dtw(X1,Y1,'euclidean')
& dtw(X1,Y1,'absolute')
both returns same answer
  1 Kommentar
Erik Jakobsson
Erik Jakobsson am 20 Jan. 2021
I have noticed this issue as well. It seems the function always returns the 1-norm, irrespective of the "metric" argument.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by