Sunday, 9 October 2011

Matrix Operation

Now lets get serious with matrices shall we??

Right....
I shall go through  some of the commands of Matrix operation...
1) Inverse of a matrix...
        Simple as it sounds just use the command inv(<matrix name>) shall give you the output as the inverse of the matrix

2)Determinant of matrix
      det(<matrix name>)

3)eigenvalues of a matrix
     eig(<matrix name>)

4)How to make an Identity matrix??
  Its very easy eye(<size of matrix>)
 
   like eye(2)... gives a 2by2 Identity matrix and eye(2,3) gives an identity matrix of size 2by3

Isn't it fun??
You might wanna know more commands...its not really easy to remember all commands thats what is help in Matlab for...
If u have a doubt in something just type
     help <keyword>
To get help in any topic.

So don't ever feel you don't know Matlab because Matlab is there always to help you out in your troubles...


No comments:

Post a Comment