single
- :
y =single(x)¶ Return x recast in the single-precision floating-point class.
Each element is represented as a 32-bit real (or complex) value, with the shape of x preserved; values too large in magnitude for single precision become infinite. Logical, character, integer, and double-precision inputs are accepted, but a sparse input is an error because the single class has no sparse form. Exactly one argument is required.