Wednesday, August 29, 2007

Octave - 1

Begin: octave
Interrupt: Ctrl + C
Exit: quit or exit
suspend: Ctrl + Z
EXAMPLES:

Matrices
octave:1> A = [ 1, 1, 2; 3, 5, 8; 13, 21, 34 ]  (Create matrix to store for later. printout)
octave:2> B = rand (3, 2); (Create matrix 3 rows 2 columns, random vars, no printout)
octave:3> B (Display B)

octave:4> 2 * A (Matrix A times scalar a)
octave:5> A * B (Matrix matrix multiply)
octave:6> A' * A (transpose (A) * A)

octave:7> A \ b (solve Ax = b)



No comments: