Home > Objects > @iData > ind2sub.m

iFit/ind2sub

PURPOSE ^

ind2sub(s,index) : get indexed element in an iData array

SYNOPSIS ^

function data = ind2sub(data, index)

DESCRIPTION ^

 ind2sub(s,index) : get indexed element in an iData array

   @iData/ind2sub is equivalent to accessing directly the indexed element in arrays,
         except when the array is of lenght 1.
         When length(s) is 1, s(1) would return s itself,
         whereas ind2sub(s,1) returns the first element of its 'Signal',

 input:  s:     object or array (iData)
         index: index in array
 output: s(index)
 ex :    ind2sub(s, 1)

 Version: Nov. 27, 2018
 See also iData, iData/disp, iData/get, iData/size

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Tue 27-Nov-2018 10:56:24 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1