필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How do I align the matrices of variable sizes using the Dynamic time warping algorithm?

조회 수: 1 (최근 30일)
Learner
Learner 2018년 8월 19일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello there,
I have a problem where there are three matrices X,Y,Z of variable sizes and I would like to align them all to the same uniform size, however, making sure that the information is not lost from the data. While browsing I came across a method called Dynamic time warping, however, I couldn't do much with the available examples. Can someone help me with this, attached is the spreadsheet with data.
Thanks in advance.

답변 (1개)

Juan Rivera
Juan Rivera 2018년 8월 19일
편집: Walter Roberson 2018년 8월 19일
Have you tried predetermining the size of the matrices before assigning values?
ex:
x = zeros(5); y = zeros(5); z = zeros(5);
x(:,1) = [1;1;1;1;1]; y(:,3) = [1;1;1;1;1]; z(:,5) = [1;1;1;1;1];
x, y, z
You can also insert null values to make matrices equivalent sizes.
  댓글 수: 1
Learner
Learner 2018년 8월 20일
The idea is to equalize the size of all three matrices making sure that the information is consistent throughout, the data I have attached has a trend, however, there was a bias in data acquisition. So, if I can stretch smaller matrix with reference to the larger one it would suffice the need.

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by