Sławosz Sławiński home

Octave tips

I am taking Coursera Machine Learning course, which requires octave usage for programming assighments. Here are some tricks I learned:

Getting matrix without first column:

octave:11> a = [1 2 3; 4 5 6]
a =

   1   2   3
   4   5   6

octave:12> a(:,2:end)
ans =

   2   3
   5   6
Tweet
blog comments powered by Disqus
Fork me on GitHub