How can we plot the correlation between pixels in two images, the first clear and the other containing noise, or correlation between the samples in two sound signals?
Is there a tool in Matlab or a function that achieves this purpose?

 채택된 답변

Bjorn Gustavsson
Bjorn Gustavsson 2021년 9월 14일

0 개 추천

It seems that you ask for the corrcoef. If you look at the correlation between 2 signals you will simly get a 2-by-2 matrix which seems to be a bit small to plot as an image, but you can do something like this (for your 2 images case);
corrI1I2 = corrcoef([I1(:),I2(:)]);
imagesc(corrI1I2)
Or possibly:
plotmatrix([I1(:),I2(:)])
HTH

댓글 수: 4

reta jon
reta jon 2021년 9월 14일
thank you sir
i ask about Correlation between the samples in original audio file and encrypted audio file.
Bjorn Gustavsson
Bjorn Gustavsson 2021년 9월 15일
Well if you have 2 time-series (audio1 and audio2) you still get one 2-by-2 matrix with the correlation-coefficients, so the above suggestion should still work.
reta jon
reta jon 2021년 9월 15일
thank you sir
Bjorn Gustavsson
Bjorn Gustavsson 2021년 9월 15일
My pleasure.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

태그

질문:

2021년 9월 14일

댓글:

2021년 9월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by