matlab实现唯一随机整数列表

收录时间:2021-09-13
资源分类:Matlab 工具:MATLAB 7.6 (R2008a)

matlab实现唯一随机整数列表

Unique Random Integer List

Usage r=myrand(a,b)

a and b is the range, for example if we want to generate random integers between 370 and 55780 we call the function :

    r=myrand(370,55780)

We can also limit the list as we need. for example if we want only 10 random integers between 370 and 55780 we use:

r10=r(1:10;

It is also useful for scrambling an array randomly.

文件下载列表
myrand.zip (1.13KB)  
附件内容(只显示2中的1个)
myrand.m  
更多

目前尚无评论

用户反馈   关于我们
Copyright (©) ZHIHUISHI.COM 2013 All Rights Reserved.
京ICP备18060134号-3