This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
gibson:teaching:spring-2016:math445:lecture:graphics3d [2016/03/29 09:00] gibson [quiver plots and the gradient] |
gibson:teaching:spring-2016:math445:lecture:graphics3d [2016/03/29 09:02] (current) gibson [Math 445 lecture 16: 3D graphics] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Math 445 lecture 16: 3D graphics ====== | + | ====== Math 445 lecture 16: 2D, 3D graphics ====== |
| + | Some examples of plotting 2d functions $f(x,y)$ in Matlab. | ||
| ---- | ---- | ||
| Line 74: | Line 75: | ||
| <file matlab plotgradient.m> | <file matlab plotgradient.m> | ||
| - | |||
| - | </file> | ||
| % Plot f(x,y) = x e^(-x^2 - y^2) with contours and its gradient as arrows. | % Plot f(x,y) = x e^(-x^2 - y^2) with contours and its gradient as arrows. | ||
| x = linspace(-2, 2, 30); | x = linspace(-2, 2, 30); | ||
| Line 98: | Line 97: | ||
| colorbar() | colorbar() | ||
| </file> | </file> | ||
| + | |||
| + | {{ :gibson:teaching:spring-2016:math445:lecture:quiver.png?direct&500 |}} | ||