필터 지우기
필터 지우기

Plot contour on similarity matrix

조회 수: 9 (최근 30일)
Virtualkeeda
Virtualkeeda 2020년 4월 28일
댓글: Star Strider 2020년 4월 30일
I need to plot the contour which looks like the image. The image shows the contour of the laplacian kernel (similarity matrix)
I need to plot such contour on my similarity matrx (nxn) ....lets say the similarity matrix is built from the eucledian distance....

답변 (1개)

Star Strider
Star Strider 2020년 4월 28일
Use the surfc function.
  댓글 수: 6
Virtualkeeda
Virtualkeeda 2020년 4월 30일
That is indeed a similarity matrix (verified with properties) as you can see the diagonal element is 1 depicting the maximum similarity of 1 if element is same, rest are other similarities.
Do you have atleat idea about what Z constitues in surfc (X,Y,Z)? they used Z=peaks(X,Y). So what each value in the matrix Z says about X and Y?
Star Strider
Star Strider 2020년 4월 30일
The ‘Z’ matrix is what you specify it to be. (Note that ‘X’ and ‘Y’ are not required for surfc. In their absence, those values are set to the indices of the respective dimensions.)

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

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by