logspace()在matlab帮助里的英文注释是这样的:
logspaceGenerate
logarithmically spaced vectors
Syntax
y = logspace(a,b)
y = logspace(a,b,n)
y = logspace(a,pi)
Description
The logspace function generates logarithmically spaced
vectors. Especially useful for creating frequency vectors, it is a
logarithmic equivalent of linspace and the ":" or colon
operator.
y = logspace(a,b) generates a row vector y of 50
logarithmically spaced points between decades 10^a and
10^b.
y = logspace(a,b,n) generates n points between decades
10^a and 10^b.
y = logspace(a,pi) generates the points between 10^a and
pi, which is useful for digital signal processing where frequencies
over this interval go around the unit circle.
Remarks
All the arguments to logspace must be scalars.
翻译成汉语是
logspace函数生成对数间隔向量
语句用法
y = logspace(a,b)
y = logspace(a,b,n)
y = logspace(a,pi)
用法详细描述
LOGSPACE函数生成对数间隔向量。而且在产生频率向量时格外有用,相当于是个对数形式的linspace函数
y = logspace(a,b)
生成一个在10^a到10^b之间个数为50的对数行向量。
y = logspace(a,b,n)生成一个在10^a到10^b之间个数为n的对数行向量。
eg:logspace(0,1,10)生成的序列是1.0000
1.2915
1.6681
2.1544
2.7826
3.5938
4.6416
5.99487.7426
10.0000 (即 10^0
10^(1/9) ........
10^(8/9) 10^(9/9))
y =
logspace(a,pi) (该函数目前不太清楚,希望可以叫和大家共同交流)