MuPAD
Pro Computing Essentials - Examples
Example 8.2 - Density plots
In this example we will plot a density plot of the
function z=10*x*y*exp(-x^2-y^2).
export(plot, density):
twoHills := density(
[x, y, 10*x*y*exp(-x^2-y^2)], x = -2..2, y = -2..2,
Grid = [30,20],
Color = [Height, RGB::White, RGB::Brown]
):
plot(twoHills)
In MuPAD the density plot is, in fact, a 3D plot. Here is
what you get after rotating it in VCam.
|