笔记总结自coursera的机器学习课程~
懒得中英文切换,就用我幼稚有限的英语写啦,反正~嗯哼嗯哼,这么简单的英语,以后我用到也一定看得懂 (- ^ -)
命令如下:
- At first, we need to know, “;” means turn to the next line of the matrix in octave
- a=[1 2; 3 4; 5 6] # a is a 3*2 matrix. If you do not want octave to print it out, add ; to the sentence
- help functionName # print the docum about the function
- hist() # draw a picture
- size(a) # return a vector expressing the row and column of matrix a: row * column
- size(a, 1) # give the row of matrix a
- length(a) # usually a is a vector, and it return the number of vector a’s elements
- pwd # show the current directories or the current path that octave is in
- ls # list the directories
- load fileName # load the file ( usually we should first enter where the file is with “cd” command)
- who # show the variables created in octave