Funzioni MATLAB: alcune funzioni
fondamentali
» help linspace
LINSPACE Linearly spaced vector.
LINSPACE(x1, x2) generates a row vector of 100 linearly
equally spaced points between x1 and x2.
LINSPACE(x1, x2, N) generates N points between x1 and
x2.
See also LOGSPACE
» linspace(0.,
3., 7)
ans = 0 0.5000 1.0000 1.5000 2.0000 2.5000 3.0000
»
» help logspace
LOGSPACE Logarithmically spaced vector.
LOGSPACE(d1, d2) generates a row vector of 50 logarithmically
equally spaced points between decades 10^d1 and 10^d2. If d2
is pi, then the points are between 10^d1 and pi.
LOGSPACE(d1, d2, N) generates N points.
See also LINSPACE.
» logspace(0.,
3., 7)
ans =
1.0e+003 *
0.0010 0.0032 0.0100 0.0316 0.1000 0.3162 1.0000
Alba C. Simoncelli | - MATLAB (nov. 2002) - pag.15 | Indice | Pag. Prec. | Pag. Seg. |