%% Specify Data Type of Random Numbers
% Create a 1-by-4 vector of random numbers whose elements are single precision.

r = randn(1,4,'single')

%

class(r)

% Copyright 2012 The MathWorks, Inc.