[249cf9]: testing / tester_rand.m  Maximize  Restore  History

Download this file

18 lines (11 with data), 278 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
function f=tester_rand(varargin);
%RAND Random numbers for testing.
% Usage: f=tester_rand(p1,p2);
global LTFAT_TEST_TYPE
if isempty(LTFAT_TEST_TYPE)
LTFAT_TEST_TYPE='double';
end;
f=rand(varargin{:});
if strcmp(LTFAT_TEST_TYPE,'single')
f=single(f);
end;

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks