How can we plot the correlation

9 ビュー (過去 30 日間)
reta jon
reta jon 2021 年 9 月 14 日
コメント済み: Bjorn Gustavsson 2021 年 9 月 15 日
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 日
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 月 15 日
thank you sir
Bjorn Gustavsson
Bjorn Gustavsson 2021 年 9 月 15 日
My pleasure.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio I/O and Waveform Generation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by