David's Octave Assignment

From Class Wiki
Revision as of 09:10, 4 October 2010 by David.bryson (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

You can abort any command in octave by pressing Ctrl C.

and you can create a diagonal matrix by entering diag([1 2 3]) it looks like this.

    diag([1 2 3])

ans =

  1   0   0 
  0   2   0
  0   0   3