Colls Octave Assignment: Difference between revisions

From Class Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:

Here Are Some Linear Algebra Functions You Can Use In Octave
Here Are Some Linear Algebra Functions You Can Use In Octave


----
----
* balance (Eigenvalue Balancing)
* cond (Condition Number)
* dmult (computes diag(x)* A efficently)
* dot (Dot Product)
* orth (Orthonormal basis of the range space)
* pinv (pseudoinverse)
* det (Determinant)

For Example when solving a simple matrix to find its determinant you (or any matrix for that matter):

A=[2,0,0;0,5,0;0,0,5;]

2 0 0
0 5 0
0 0 5

det (A)
Then Octave will output an answer saying

ans=50

Latest revision as of 10:51, 1 October 2010

Here Are Some Linear Algebra Functions You Can Use In Octave


  • balance (Eigenvalue Balancing)
  • cond (Condition Number)
  • dmult (computes diag(x)* A efficently)
  • dot (Dot Product)
  • orth (Orthonormal basis of the range space)
  • pinv (pseudoinverse)
  • det (Determinant)

For Example when solving a simple matrix to find its determinant you (or any matrix for that matter):

A=[2,0,0;0,5,0;0,0,5;]

2   0   0
0   5   0
0   0   5

det (A) Then Octave will output an answer saying

ans=50