LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
stat_documentation.m
1%% |stat|
2% This function prints some quick statistics about a variable in the
3% command window.
4%
5%% Syntax and Description
6%
7% |stat(variable)| prints the following properties of a variable in the
8% command window:
9%
10% * |size|: size of variable.
11% * |numel|: number of elements in variable.
12% * |NaNs|: number of not-a-number values in variable.
13% * |maximum|: maximum value in variable across all dimensions.
14% * |minimum|: minimum value in variable across all dimensions.
15% * |mean|: mean value of variable across all dimensions.
16% * |median|: median value of variable across all dimensions.
17% * |mode|: most frequent value in variable across all dimensions.
18% * |std dev|: standard deviation of variable across all dimensions.
19% * |variance|: variance of variable across all dimensions.
20%
21%% Examples
22
23A = magic(5)
24
25%%
26stat(A)
27
28%%
29% This function also works with |NaN| values:
30
31A(2:4)=NaN
32
33%%
34
35stat(A)
36
37%% Author Info
38% This function was written by <http://www.chadagreene.com Chad A. Greene> of the
39% University of Texas Institute for Geophysics (<http://www.ig.utexas.edu/people/students/cgreene/ UTIG>), October 2014.