www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/SpecifyDataTypeofRandomNumbersExample.m
%% Specify Data Type of Random Numbers %% % Create a 1-by-4 vector of random numbers whose elements are single precision. r = rand(1,4,'single') %% class(r)