Matlab學習手記——隨機函數

整理一下Matlab裏的隨機函數功能。 randperm函數 randperm(n) % 產生從1到n的隨機排列(整數類型); randperm(n, m) % 產生m個屬於1到n的隨機整數; randsrc函數 out = randsrc % -1 或 1 out = randsrc(m) % m*m
相關文章
相關標籤/搜索