Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Aug 26, 2023
1 parent 156fce0 commit 03f8dbc
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions lib/utils/range.m
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
function y = range(x,dim)
%RANGE Sample range.
% Y = RANGE(X) returns the range of the values in X. For a vector input,
% Y is the difference between the maximum and minimum values. For a
% matrix input, Y is a vector containing the range for each column. For
% N-D arrays, RANGE operates along the first non-singleton dimension.
% Sample range.
%
% RANGE treats NaNs as missing values, and ignores them.
% USAGE::
%
% Y = RANGE(X,DIM) operates along the dimension DIM.
% Y = range(X) returns the range of the values in X.
%
% For a vector input, Y is the difference between the maximum and minimum values
% For a matrix input, Y is a vector containing the range for each column.
% For N-D arrays, range operates along the first non-singleton dimension.
%
% range treats NaNs as missing values, and ignores them.
%
% Y = range(X,DIM) operates along the dimension DIM.
%
% See also BOUNDS, MIN, MAX, IQR, MAD, STD.

% Copyright 1993-2016 The MathWorks, Inc.


if nargin < 2
Expand Down

0 comments on commit 03f8dbc

Please sign in to comment.