Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

isdouble(), issingle(), ..., functions missing in Matlab2015a

Tags:

matlab

When I try:

>>isdouble(1)

I just get the error

Undefined function or variable 'isdouble'.

It is the same for the other is* functions. But these are standard functions in Matlab and I even find them when I use the help or doc functions:

>>help isdouble
isdouble - Determine whether input is double-precision data type

This MATLAB function returns 1 when the DataType property of fi object a is
double, and 0 otherwise.
...

So does anyone know whats going on here?

like image 394
Ghaul Avatar asked May 18 '15 13:05

Ghaul


1 Answers

These functions are a part of the Fixed-Point Designer toolbox, which you might not have. You should use the isa function instead:

isa(1, 'double');
like image 138
buzjwa Avatar answered Sep 24 '22 02:09

buzjwa