Skip to content

Commit

Permalink
Merge pull request adambard#1654 from claudsonm/matlab
Browse files Browse the repository at this point in the history
[matlab-en] Figure handle and some text issues fixed
  • Loading branch information
adambard committed Oct 19, 2015
2 parents 0bbf574 + 79d0e7c commit 9702bca
Show file tree
Hide file tree
Showing 2 changed files with 544 additions and 3 deletions.
7 changes: 4 additions & 3 deletions matlab.html.markdown
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
language: Matlab
filename: learnmatlab.mat
contributors:
- ["mendozao", "http://github.com/mendozao"]
- ["jamesscottbrown", "http://jamesscottbrown.com"]
- ["Colton Kohnke", "http://github.com/voltnor"]

- ["Claudson Martins", "http://github.com/claudsonm"]
---

MATLAB stands for MATrix LABoratory. It is a powerful numerical computing language commonly used in engineering and mathematics.
Expand Down Expand Up @@ -261,7 +262,7 @@ pcolor(A) % Heat-map of matrix: plot as grid of rectangles, coloured by value
contour(A) % Contour plot of matrix
mesh(A) % Plot as a mesh surface
h = figure % Create new figure object, with handle f
h = figure % Create new figure object, with handle h
figure(h) % Makes the figure corresponding to handle h the current figure
close(h) % close figure with handle h
close all % close all open figure windows
Expand Down Expand Up @@ -329,7 +330,7 @@ double_input(6) % ans = 12
% anonymous function. Useful when quickly defining a function to pass to
% another function (eg. plot with fplot, evaluate an indefinite integral
% with quad, find roots with fzero, or find minimum with fminsearch).
% Example that returns the square of it's input, assigned to to the handle sqr:
% Example that returns the square of it's input, assigned to the handle sqr:
sqr = @(x) x.^2;
sqr(10) % ans = 100
doc function_handle % find out more
Expand Down
Loading

0 comments on commit 9702bca

Please sign in to comment.