If you want to do one. You can just get the output from the algorithm and use those as the samples.
(I don't have MatLab actually).