MATLAB: From double to single precision

equationsingle precision

I want to calcute this equation x= 3.0*(4.0/3.0-1.0)-1.0 but using single precision instead of double. How do I do switch to single?

Best Answer

single(x)