Category Archives: checking format

How to check if a viable is even or odd

Oldest question in the history of humanity… If the number is even, the remainder after the division by 2 is zero, and 1 if the number is odd, so using rem function (which actually calculates the remainder of the division between … Continue reading

Posted in checking format | Leave a comment

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