mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-02-06 08:09:13 +01:00
Revert "Figure handle and some text issues fixed"
This reverts commit 5f7a161f44e683d15d85126db78a6de5f1e0bfab.
This commit is contained in:
parent
5f7a161f44
commit
69263413a1
@ -1,11 +1,10 @@
|
|||||||
---
|
---
|
||||||
language: Matlab
|
language: Matlab
|
||||||
filename: learnmatlab.mat
|
|
||||||
contributors:
|
contributors:
|
||||||
- ["mendozao", "http://github.com/mendozao"]
|
- ["mendozao", "http://github.com/mendozao"]
|
||||||
- ["jamesscottbrown", "http://jamesscottbrown.com"]
|
- ["jamesscottbrown", "http://jamesscottbrown.com"]
|
||||||
- ["Colton Kohnke", "http://github.com/voltnor"]
|
- ["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.
|
MATLAB stands for MATrix LABoratory. It is a powerful numerical computing language commonly used in engineering and mathematics.
|
||||||
@ -262,7 +261,7 @@ pcolor(A) % Heat-map of matrix: plot as grid of rectangles, coloured by value
|
|||||||
contour(A) % Contour plot of matrix
|
contour(A) % Contour plot of matrix
|
||||||
mesh(A) % Plot as a mesh surface
|
mesh(A) % Plot as a mesh surface
|
||||||
|
|
||||||
h = figure % Create new figure object, with handle h
|
h = figure % Create new figure object, with handle f
|
||||||
figure(h) % Makes the figure corresponding to handle h the current figure
|
figure(h) % Makes the figure corresponding to handle h the current figure
|
||||||
close(h) % close figure with handle h
|
close(h) % close figure with handle h
|
||||||
close all % close all open figure windows
|
close all % close all open figure windows
|
||||||
@ -330,7 +329,7 @@ double_input(6) % ans = 12
|
|||||||
% anonymous function. Useful when quickly defining a function to pass to
|
% anonymous function. Useful when quickly defining a function to pass to
|
||||||
% another function (eg. plot with fplot, evaluate an indefinite integral
|
% another function (eg. plot with fplot, evaluate an indefinite integral
|
||||||
% with quad, find roots with fzero, or find minimum with fminsearch).
|
% with quad, find roots with fzero, or find minimum with fminsearch).
|
||||||
% Example that returns the square of it's input, assigned to the handle sqr:
|
% Example that returns the square of it's input, assigned to to the handle sqr:
|
||||||
sqr = @(x) x.^2;
|
sqr = @(x) x.^2;
|
||||||
sqr(10) % ans = 100
|
sqr(10) % ans = 100
|
||||||
doc function_handle % find out more
|
doc function_handle % find out more
|
||||||
|
Loading…
x
Reference in New Issue
Block a user