diff options
Diffstat (limited to 'matlab.html.markdown')
| -rw-r--r-- | matlab.html.markdown | 22 | 
1 files changed, 17 insertions, 5 deletions
| diff --git a/matlab.html.markdown b/matlab.html.markdown index 507e9c85..3c909153 100644 --- a/matlab.html.markdown +++ b/matlab.html.markdown @@ -10,10 +10,7 @@ If you have any feedback please feel free to reach me at  [@the_ozzinator](https://twitter.com/the_ozzinator), or  [osvaldo.t.mendoza@gmail.com](mailto:osvaldo.t.mendoza@gmail.com). -```Matlab - - - +```matlab  % Comments start with a percent sign.  %{ Multi line comments look  @@ -250,7 +247,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  ``` | 
