|
|
| Subject: | XploRe: Learning Guide |
| See XploRe: |
| Quantlet: | graph23 | |
| Description: | Plotting several functions. | |
| Download: | graph23.xpl |
library("plot") ; loads library plot
xmin = 0 ; grid minimum
xmax = 2*pi ; grid maximum
n = 100 ; number of grid points
x = xmin + (xmax-xmin)/(n-1) .* (0:n-1) ; generates grid
y1 = sin(x) ; computes sin(x)
y2 = sin(3.*x) ; computes sin(3x)
y3 = sin(6.*x) ; computes sin(6x)
plot(x~y1, x~y2, x~y3) ; plots data sets
| Subject: | XploRe: Learning Guide |
| See XploRe: |