How to compare two different size wave shape?

Hi all, Firstly I apologize that I am too week in matlab. I have stuck to compare two different size wave shape. I have to value, a=[1 3 6 4 7 0] and b=[0 1 2 4 7 4 3 1] which are different in size. When I plot them they are different in shape. Now I want a value "c" which will show me the percentage of difference between those wave shape.

댓글 수: 2

Geoff Hayes
Geoff Hayes 2015년 11월 7일
Zubair - how are you plotting these two arrays? Is the c value (scalar?) supposed to give you a percentage difference in area or something else? Please clarify the problem that you are trying to solve.
Are they intended to represent the same time period with different sampling rates?

댓글을 달려면 로그인하십시오.

답변 (2개)

Zubair Ahsan
Zubair Ahsan 2015년 11월 9일

0 개 추천

Actually I have a ECG signal, I have already cut it in each segment (in figure: as p1 to p2 or p2 to p3). Each segment length are different. Now I want to compare those segmented signal. Is it possible?
Walter Roberson
Walter Roberson 2015년 11월 9일

0 개 추천

You can compare in at least some respects. For example you could fft() the segments to the same number of target points and then make some comparisons of the frequency characteristics. Or if you can identify common features then you could compare which fraction of the way through they occur.

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

태그

질문:

2015년 11월 7일

답변:

2015년 11월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by