Subject: | XploRe: Learning Guide |
See XploRe: |
Quantlet: | graph25 | |
Description: | Plotting lines. | |
Download: | graph25.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) line(x~y1, x~y2, x~y3) ; connects data points
Subject: | XploRe: Learning Guide |
See XploRe: |