graphics_toolkit("gnuplot");% force use of gnuplot backend instead of FLTK for plot. Generates smaller SVG file[X,Y]=meshgrid(-3:.05:3,-3:.05:3);% smaller step size increases resolution and smoothness but increases file sizeZ=exp(-X.^2-Y.^2);surf(X,Y,Z);view(-36,56);shadingflat;% remove edge lines on plot but keep color patchesprint('Gaussian_2d.svg')
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse
Captions
Add a one-line explanation of what this file represents
Changed colormap to be perceptually uniform to accurately portray z-axis values. Rescaled z-axis to be proportional to the x- and y-axes. Added a legend for the colormap.