
Recent Posts
Recent Comments
Archives
Categories
Meta
Tag Archives: isa
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
How to determine whether input is integer
The easiest and fastest way to check if a variable is an integer independently of its format is to compare the input with its rounded version, for example: x==floor(x) If we are just interested in knowing if the input is an … Continue reading