diff options
author | Adam <adam@adambard.com> | 2013-09-08 21:52:54 -0700 |
---|---|---|
committer | Adam <adam@adambard.com> | 2013-09-08 21:52:54 -0700 |
commit | 6172fee1a4a44d53648a26cd7764de9fcea46313 (patch) | |
tree | bfb1264276f5d60713e2f9a760672076115faf51 /matlab.html.markdown | |
parent | a933d419e07fd8af6effa89200b581e904c61679 (diff) | |
parent | 599ed0df3012ae578281dd92afc5a48891f56810 (diff) |
Merge branch 'master' of https://github.com/adambard/learnxinyminutes-docs
Diffstat (limited to 'matlab.html.markdown')
-rw-r--r-- | matlab.html.markdown | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/matlab.html.markdown b/matlab.html.markdown index 507e9c85..3bcc4bbc 100644 --- a/matlab.html.markdown +++ b/matlab.html.markdown @@ -250,7 +250,22 @@ eig(A) %Eigenvalues and eigenvectors of A isempty(A) % Tests if array is empty isequal(A, B) %Tests equality of two arrays numel(A) %Number of elements in matrix - +triu(x) % Returns the upper triangular part of x +tril(x) % Returns the lower triangular part of x +cross(A,B) % Returns the cross product of the vectors A and B +dot(A,B) % Returns the scalar product of the vectors A and B. A and B must be vectors of the same length. +transpose(A) % Returns the transpose of A + +% Common vector functions +max %largest component +min %smallest component +length %length of a vector +sort %sort in ascending order +sum %sum of elements +prod %product of elements +median %median value +mean %mean value +std %standard deviation ``` |