The following Matlab project contains the source code and Matlab examples used for random sample without replacement.
% Random smapling with weight and without replacement
% O/P : sample--> random sample
% I/P : N--> population; n--> sample size; W--> weightage vector
function sample = RandSampleWR(N,n,W)
%% checking
if(length(N)<=0)||(n<=0)||(length(N)<=n)
disp('Populationsize and sample size must be greater than zero and sample size must be less than population size.

The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.

## Project Files:

File Name | Size |
---|---|

license.txt | 1321 |

RandSampleWR.m | 1265 |