www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/SpecifyDataTypeOfRandomNumbersrandnExample.m

    %% 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)