MATLAB: Plot a 2D ,with accordance to the distance between the points
plot
I have two array and distance between the corresponding points are known, I wish to plot the points such that it is arranged in accordance with the distance between them.
Please help me in this regard.
Best Answer
I hope I can give you some guide:
s = A(:,1);
t = A(:,2);
weight = A(:,3);
G = graph(s,t,weight);
plot(G, 'EdgeLabel', G.Edges.Weight);
You should take a look at "graph" in the documentation.
What you're calling the Euclidean distance is the RMS difference in intensity between the two images. And that (and PSNR and MSE) is not such a great way to compare images anymore, unless you're looking for a fairly exact match - like you know for a fact that the test image is definitely one of the database images. You'll probably find SSIM is used more often:http://en.wikipedia.org/wiki/SSIM. But I can't run your code because I don't have the Wavelet Toolbox. I've added it to the product list to alert anyone else who might try to run your code.
Best Answer