%% Convert to Single-Precision Variable
% Convert a double-precision variable to single precision with the single function.

x = 100;
xtype = class(x)
y = single(x)

%
% Copyright 2012 The MathWorks, Inc.