MATLAB: draw sample