Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.0 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Statistics > Measures of Dispersion > strange

strange

range

Calling Sequence

[r]=strange(x)
[r]=strange(x,'r') (or, equivalently, [r]=strange(x,1))
[r]=strange(x,'c') (or, equivalently, [r]=strange(x,2))

Arguments

x

real or complex vector or matrix

Description

The range is the distance between the largest and smallest value, [r]=strange(x) computes the range of vector or matrix x.

[r]=strange(x,'r') (or equivalently [r]=strange(x,1)) give a row vector with the range of each column.

[r]=strange(x,'c') (or equivalently [r]=strange(x,2)) give a column vector with the range of each row.

Examples

x  = [22    63    57    24    31
      76    85    67    24    94
      1     69    73    22    22
      34    88    20    89    32
      67    7     55    66    37 ];

strange(x)       // 94-1 = 93
strange(x, 'r')  // [ 76-1=75   88-7=81   73-20=53   89-22=67   94-22=72 ]
strange(x, 'c')  // [ 63-22=41 ;  94-24=70 ;  73-1=72 ;  89-20=69 ;  67-7=60 ]

References

Wonacott, T.H. & Wonacott, R.J.; Introductory Statistics, J.Wiley & Sons, 1990.

Report an issue
<< mad Measures of Dispersion Measures of Shape >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Fri Apr 11 14:06:53 CEST 2014