Pregunta

I've two complex functions (size 1x1x2501) and i need to do a correlation between these (cross-correlation).

I've tried to use this command:

r=corrcoef(Hmimo_tb(1,:)',Hmimo_tb1(1,:)','coeff');

Where Hmimo_tb and Hmimo_tb1 are my two signals in which the only difference is the fact that they have been measured in different positions. The difference betweeen these two signals is max equal to 1.5e-13, so they are only affected by noise.

I obtain as result:

ans =

1.0000             1.0000 + 0.0000i
1.0000 - 0.0000i   1.0000          

The function that I'm going to correlate are complex but the 0.0000i leave me some doubts.... Another doubt is the fact that the the signals are not equal in fact as i've told before there is a difference of 1.5e-13 that is not reported on the secondary diagonal why?

What are the difference between corrcoef and xcorr?


yes this is true i've tried with:

format long g

and i've obtained as result this:

Column 1

                      1                         
                      1 +  3.73593550274545e-11i

Column 2

                      1 -  3.73593550274545e-11i
                      1      

now how can i interpretate the small complex value?what does it represent? Thank you

¿Fue útil?

Solución

The answer could be printed to less digits than required to show a difference on the order of 1e-13. It may have been rounded to zero, possibly during print formatting, or maybe somewhere else in the calculation.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top