diff options
author | James Scott-Brown <james@jamesscottbrown.com> | 2013-09-15 02:53:32 +0100 |
---|---|---|
committer | James Scott-Brown <james@jamesscottbrown.com> | 2013-09-15 02:53:32 +0100 |
commit | 28f0e163e2d4d5d8e55f484fef93190dda4e7593 (patch) | |
tree | 817153fe04c8cbd031c2f5925cf751b949551c08 /matlab.html.markdown | |
parent | e0f9a4dab392c13df8c909eb4a58a81950c30e1a (diff) |
Typos
Diffstat (limited to 'matlab.html.markdown')
-rw-r--r-- | matlab.html.markdown | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/matlab.html.markdown b/matlab.html.markdown index 98d085da..e9874f21 100644 --- a/matlab.html.markdown +++ b/matlab.html.markdown @@ -249,10 +249,10 @@ set(h, 'LineStyle', '--') get(h, 'LineStyle') -% The function gcs returns a handle to the axes for the current figure +% The function gca returns a handle to the axes for the current figure set(gca, 'XDir', 'reverse'); % reverse the direction of the x-axis -% To creatw a figure that contains several axes in tiled positions, use subplot +% To create a figure that contains several axes in tiled positions, use subplot subplot(2,3,1); % select the first position in a 2-by-3 grid of subplots plot(x1); title('First Plot') % plot something in this position subplot(2,3,2); % select second position in the grid @@ -394,7 +394,7 @@ zeros(m,n) % m x n matrix of 0's ones(m,n) % m x n matrix of 1's diag(A) % Extracts the diagonal elements of a matrix A diag(x) % Construct a matrix with diagonal elements listed in x, and zeroes elsewhere -eye(m,n) % Indentity matrix +eye(m,n) % Identity matrix linspace(x1, x2, n) % Return n equally spaced points, with min x1 and max x2 inv(A) % Inverse of matrix A det(A) % Determinant of A |