diff options
author | James Scott-Brown <james@jamesscottbrown.com> | 2013-09-15 16:06:26 +0100 |
---|---|---|
committer | James Scott-Brown <james@jamesscottbrown.com> | 2013-09-15 16:06:26 +0100 |
commit | 3eb4dbab9a4a6d9082f424289f982e8489138033 (patch) | |
tree | 3e616d8a04d398115ab5b91a5dadb03637f16c0d /matlab.html.markdown | |
parent | 28f0e163e2d4d5d8e55f484fef93190dda4e7593 (diff) |
Typos
Diffstat (limited to 'matlab.html.markdown')
-rw-r--r-- | matlab.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/matlab.html.markdown b/matlab.html.markdown index e9874f21..27b00eba 100644 --- a/matlab.html.markdown +++ b/matlab.html.markdown @@ -199,7 +199,7 @@ ylabel('y axis') title('Plot of y = sin(x)') axis([0 2*pi -1 1]) % x range from 0 to 2*pi, y range from -1 to 1 -plot(x,y1,'-',x,y2,'--',x,y3,':'') % For multiple functions on one plot +plot(x,y1,'-',x,y2,'--',x,y3,':') % For multiple functions on one plot legend('Line 1 label', 'Line 2 label') % Label curves with a legend % Alternative method to plot multiple functions in one plot. @@ -403,7 +403,7 @@ trace(A) % Trace of matrix - equivalent to sum(diag(A)) isempty(A) % Tests if array is empty all(A) % Tests if all elements are nonzero or true any(A) % Tests if any elements are nonzero or true -isequal(A, B) %Tests equality of two arrays +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 |