memory leak in datasample
이전 댓글 표시
Hi,
I seem to be suffering from a memory leak from datasample. Does anyone else suffer from a memory leak in the following code?
Thanks!
close all;
clear all;
weights = abs(rand(100,1));
weights = weights./sum(weights);
nn = 1:100;
for i = 1:10000000
ix = datasample(1:100,20,'Weights',weights,'Replace',false);
end
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!