Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MachineLearning스터디/Octave: Difference between revisions

From ZeroWiki
imported>trailblaze
No edit summary
imported>trailblaze
No edit summary
Line 22: Line 22:
   B = zeros(2, 3)
   B = zeros(2, 3)
  [[File:Matrix3.PNG]]
  [[File:Matrix3.PNG]]
  w = -6 + sqrt(10) * (randn(1, 10000))
  hist(w)
* hist(w) : w에 대한 histogram을 보여줌.


   eye (2)
   eye (2)
Line 31: Line 27:
* identity matrix를 만들어 줌.
* identity matrix를 만들어 줌.


== 기타 함수 ==
  w = -6 + sqrt(10) * (randn(1, 10000))
  hist(w)
* hist(w) : w에 대한 histogram을 보여줌.
----
----
[[MachineLearning스터디]]
[[MachineLearning스터디]]



Revision as of 07:02, 14 February 2014

Octave

기본 산술, 논리 연산

Elementary Operation.PNG

  • ~= : not equal
  • false : 0
  • true : 1

행렬 만들기

 A = [1 2; 3 4; 5 6]
Matrix1.PNG
  • ;는 다음 행으로 넘어간다는 표시
 A = 1:0.1:2
Matrix2.PNG 
 A = ones(1, 3)
 B = zeros(2, 3)
Matrix3.PNG
 eye (2)
Eyem.png
  • identity matrix를 만들어 줌.

기타 함수

 w = -6 + sqrt(10) * (randn(1, 10000))
 hist(w)
  • hist(w) : w에 대한 histogram을 보여줌.

MachineLearning스터디