Colls Octave Assignment: Difference between revisions

From Class Wiki
Jump to navigation Jump to search
Dcolls (talk | contribs)
No edit summary
Dcolls (talk | contribs)
No edit summary
Line 14: Line 14:
A=[2,0,0;0,5,0;0,0,5;]
A=[2,0,0;0,5,0;0,0,5;]


2  0  0
 
0  5  0
{| class="wikitable" border="1"
0  0  5
| 2  0  0
|-
| 0  5  0
|-
| 0  0  5
|}
 


det (A)
det (A)
ans=50
ans=50

Revision as of 10:49, 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:

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


2 0 0
0 5 0
0 0 5


det (A)

ans=50