Using B=single(A) , as suggested by @cbz, or defining arrays as SINGLE , for example by calling B=zeros(3,3,'single') , creates "floats" in Matlab.
It is not possible to globally turn Matlab into a floating point environment. Although most of the lower-level functions are also implemented for single (with some exceptions, for example, mentioned in the DOUBLE help), many high-level built-in functions will work only with double .
In other words, you will have to manually define your variables as single , you will have to periodically check that the variables are not quietly converted to double , and in the end your code may not work if it needs a function that is not yet implemented for single .
Jonas
source share