Plot contour on similarity matrix

1 visualizzazione (ultimi 30 giorni)
Virtualkeeda
Virtualkeeda il 28 Apr 2020
Commentato: Star Strider il 30 Apr 2020
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....

Risposte (1)

Star Strider
Star Strider il 28 Apr 2020
Use the surfc function.
  6 Commenti
Virtualkeeda
Virtualkeeda il 30 Apr 2020
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 il 30 Apr 2020
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.)

Accedi per commentare.

Categorie

Scopri di più su Contour Plots in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by