MATLAB: How to surface plot a 1000×2 matrix

MATLABmeshgridsurf

If we assume I have a 1000×2 matrix generated using:
A = randn(1000,2);
How can I surface plot that A matrix to achieve a result similar to this image:

Best Answer

A = randn(1000,2);
hist(A(:))
hist(A)