David's Octave Assignment
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