| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Bioinformatics Toolbox |
| Contents | Index |
| Learn more about Bioinformatics Toolbox |
Med = median(DMObj)
Med = median(DMObj, Dim)
Med = median(DMObj, Dim, IgnoreNaN)
| DMObj | DataMatrix object, such as created by DataMatrix (object constructor). |
| Dim | Scalar specifying the dimension of DMObj to calculate the medians. Choices are:
|
| IgnoreNaN | Specifies if NaNs should be ignored. Choices are true (default) or false. |
| Med | Either of the following:
|
Med = median(DMObj) returns the median values of the elements in the columns of a DataMatrix object, treating NaNs as missing values. Med is a row vector containing the median values for elements in each column in DMObj.
Med = median(DMObj, Dim) returns the median values of the elements in the columns or rows of a DataMatrix object, as specified by Dim. If Dim = 1, returns Med, a row vector containing the median values for elements in each column in DMObj. If Dim = 2, returns Med, a column vector containing the median values for elements in each row in DMObj. Default Dim = 1.
Med = median(DMObj, Dim, IgnoreNaN) specifies if NaNs should be ignored. IgnoreNaN can be true (default) or false.
Bioinformatics Toolbox function: DataMatrix (object constructor)
Bioinformatics Toolbox object: DataMatrix object
Bioinformatics Toolbox methods of a DataMatrix object: max, mean, min, sum
![]() | mean (DataMatrix) | microplateplot | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |