随机 m×n 矩阵的 randperm 子集
如何使用 randperm 选择 m×n 数据矩阵并输出该随机数据的较小子集?
IE
newfile = randperm(data(m = 2000, n = 3)); %% save random m-by-n data as newfile
how do you use randperm to select a m-by-n matrix of data and output a smaller subset of that random data?
i.e
newfile = randperm(data(m = 2000, n = 3)); %% save random m-by-n data as newfile
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
考虑这个例子:
请注意,R2011b 为 RANDPERM 引入了更简单的语法,允许您直接编写:
Consider this example:
Note that R2011b introduced an easier syntax for RANDPERM, allowing you to directly write: