<기본적인 정의>
Generate linearly spaced vectors
Syntax
Description
The linspace function generates linearly spaced vectors. It is similar to the colon operator ":", but gives direct control over the number of points.
y = linspace(a,b) generates a row vector y of 100 points linearly spaced between and including a and b.
y = linspace(a,b,n) generates a row vector y of n points linearly spaced between and including a and b.
예를 들면 더 쉽게 이해할 수 있다.
y=linspace(a,b,n)
n의 개수만큼 a, b 사이의 선형공간의 y 값을 제공하는 것이다.
ex)
y = linspace(1, 500, 3) = [ 1, 250.5, 500]
반응형
'IT > MATLAB' 카테고리의 다른 글
| 4개의 클래스 분류 with a perceptron (0) | 2014.12.19 |
|---|---|
| bwperim() 함수 (0) | 2014.12.19 |
| [dlmwrite 함수] excel로 저장할때 데이터가 커서 오류가 날 경우 (0) | 2014.12.19 |
| 외부 데이터(파일) 불러오기와 저장하기 (0) | 2014.12.19 |
| randperm 함수 (0) | 2014.12.19 |