Category Archives: arrays

How to determine if the input is a scalar real number

Some times it is interesting to know whether the input is a scalar real number, as for example if we are trying to introduce the sampling frequency of a sequence. We can use some of the following commands: isscalar:   … Continue reading

Posted in arrays, checking format, data format | Tagged , | Leave a comment

How to check array dimensions

There are a few matlab commands to determine array size or shape: length:  finds the number of elements along the largest dimension of an array. ndims:  returns the number of dimensions of the array. size:      returns the sizes of each … Continue reading

Posted in arrays | Tagged , | Leave a comment