Re: Random Pick
- From: us <us@xxxxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 11:39:52 -0500
Ashwin Spencer:
<SNIP random picks
one of the many solutions
% the data
a=pi*(1:10);
nd=2; % nr of random data to be picked from <a>
% the engine
b=a(randperm(numel(a))<nd+1);
% the result
b
us
.
- References:
- Random Pick
- From: Ashwin Spencer
- Random Pick
- Prev by Date: Re: FINGERPRINT IDENTIFICATION
- Next by Date: Matlab no response after running commdoc_gray.m
- Previous by thread: Re: Random Pick
- Next by thread: Locating Compilers in Matlab
- Index(es):
Relevant Pages
|