Randsample in matlab 2007

Hello, I have a question, which is the equivalent of randsample in matlab 2007 ? I am using matlab 2012 now and this works fine, but at the university we have a 2007 license and it is not working.
I am using it like so to take a value from 1 to M. Where M can be any number possible, for example 10 billion.
i=randsample(M,1);
Thank you!

 采纳的回答

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Manage Products 的更多信息

产品

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by