Hello everyone.
I am just wondering if there is an algorithm or technique to give the answer to the question "If the two signals are originally from the same source".. I am trying to calculate the delay time between two signals and the data are real data so I don't know my answer myself but I meant to calculate the delay time then be able to answer if the two signals are alike but just that one is delayed but at the moment with me I just answer this question by looking at the signals after shifting it back by the delayed time. My question is, is there a more practical way to code then it will be like a model evidence rather than my own judgement based on some alogorithm it will answer this question?? Any idea on any algorithm I should use and read about will be appreciated !!
Cheers, Susan

댓글 수: 1

Fangjun Jiang
Fangjun Jiang 2011년 8월 15일
I am trying to calculate the delay time between two signals and the data are real data so I don't know my answer myself but I meant to calculate the delay time then be able to answer if the two signals are alike but just that one is delayed but at the moment with me I just answer this question by looking at the signals after shifting it back by the delayed time.
breathe, breathe, breathe...

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

 채택된 답변

David Young
David Young 2011년 8월 15일

2 개 추천

In general, you need to make some assumptions about what might have happened to the signals (e.g. addition of noise, non-linear distortion, delays etc.) in order to answer your question. However, it sounds like you believe that there are two possibilities: (a) the signals are unrelated or (b) the main difference is just a time delay. In that case, cross-correlation may be sufficient. Start by having a look at that.

댓글 수: 5

Susan
Susan 2011년 8월 15일
Thanks for your answer, I did use cross correlation to calculate the delay time between the two signals and yeah in my case I am not looking at any other factors other than it could be delayed or they not from the same source. but when I run the code it calculates the delay time then I need to shift it by the delayed i calculated then judge it myself by looking at it if they are actually from the same source but one is delayed, I am asking is there a method or technique I could implement that give me the answer by using the delayed time was calculated and determine if the indeed the same but one is delayed or they absolutely unrelated rather than my own judgement?
David Young
David Young 2011년 8월 15일
The cross correlation gives you a correlation coefficient, as well as the best lag. The correlation coefficient will be larger the more similar the two signals are. You can do a statistical test on it (if you can make suitable assumptions about the noise distribution) to help make a judgement about whether the signals are from the same source - try a web search on "correlation coefficient statistical test".
Susan
Susan 2011년 8월 16일
Thank you, will look at it !!
Daniel Shub
Daniel Shub 2011년 8월 16일
It is a minor, but important point, most statistical tests will tell you how confident you are that the signals are NOT from the same source. They tell you little about if the signals are in fact from the same source.
Susan
Susan 2011년 8월 29일
Thank you Daniel, I managed to get the ttest2 works on my code and you right it tells me that the two signals are not from the same source but do you know what to use to find out if they are from the same source??

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

추가 답변 (3개)

Syeed
Syeed 2023년 6월 28일

1 개 추천

Hello everyone,
In Signal processing onrap course there is an task in Preprocessing Signals of Custom Preprocessing Function and the task is "Duplicate the harp, pax, and wanc signals and append _cm to the signal names. For example, duplicate harp and name the result harp_cm.
The function nm2cm has been written for you. Use the custom preprocessing function nm2cm to process the three new signals so that their units are in centimeters instead of nanometers. Then display the three new signals in the time domain." and I put my 100% on it. so, can you gays help me.

댓글 수: 3

Ayush
Ayush 2023년 7월 16일
Hello
You need to preprocess all the three copies with the nm2cm function, one by one. This can be verified by the 'i' button which will appear after you have applied the function to the copy.
Hope this helps!!
CHEEPATI
CHEEPATI 2023년 8월 25일
me also put 100% effort can't solve it can you explain in detail.
Abhishek Tripathi
Abhishek Tripathi 2023년 9월 13일
Duplication was succesful but it says the harp_cm, pax_cm, and wanc_cm signals are not processed correctly.

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

Vasam
Vasam 2023년 8월 28일

0 개 추천

Duplicate the harp, pax, and wanc signals and append _cm to the signal names. For example, duplicate harp and name the result harp_cm.
The function nm2cm has been written for you. Use the custom preprocessing function nm2cm to process the three new signals so that their units are in centimeters instead of nanometers. Then display the three new signals in the time domain.
Yashwanth
Yashwanth 2026년 1월 15일

0 개 추천

Are the pax_cm and wanc_cm signals processed correctly?

카테고리

질문:

2011년 8월 15일

답변:

2026년 1월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by