Plot a 2D Gaussian prior
Show older comments
Hi
So i want to get a heatmap / contour plot of a gaussian prior - before any data has been collected. So essetially im just plotting a 2D covarience funtion. I feel like this should be easy but im going mad trying to sort it out. Does anyone have any ideas where to start?
Accepted Answer
More Answers (1)
Maybe this:
arrayWidth = 500;
sigma = 80; % Standard deviation.
g = fspecial("gaussian", arrayWidth, sigma); % Create Gaussian matrix.
imshow(g, []);
axis('on', 'image')
Categories
Find more on Data Distribution Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
