MachineLearning스터디/Octave (rev. 1.16)
2. 기본 산술, 논리 연산 ¶

[PNG image (5.2 KB)]
- ~= : not equal
- false : 0
- true : 1
3. 행렬 만들기 ¶
A = [1 2; 3 4; 5 6]

[PNG image (581 Bytes)]
A = 1:0.1:2

[PNG image (3.06 KB)]
A = ones(1, 3)
B = zeros(2, 3)

[PNG image (2.07 KB)]
eye (2)

[PNG image (945 Bytes)]
size([1; 2; 3; 4])
* 결과
ans =
4 1
4 rows 1 column
length([3 2; 2 3; 1 3])
* 결과
ans = 3
load filename
- filename을 불러옴. 불러온 데이터는 filename을 이름으로 가진 행렬임.
w = -6 + sqrt(10) * (randn(1, 10000))
hist(w)
- hist(w) : w에 대한 histogram을 보여줌.
- 지금까지 선언 된 행렬, 변수 목록 자세하게 출력