%% Create Double-Precision Variable
%
% By default, numbers in MATLAB are of the data type double. You can use the class function to verify a variable's type.

x = 100;
xtype = class(x)

%
% Use the double function to convert variables that are not double precision to type double.

y = true

%

ydouble = double(y);
ynewtype = class(ydouble)

%
% Copyright 2012 The MathWorks, Inc.