matlab randsrc 未定义,MATLAB常见错误
randsrc(m,n,alphabet);输出m*n阶矩阵,元素由alphabet确定,概率等同;randsrc(m,n,[alphabet;prob]);prob参数确定每元素的出现概率。例如代码:>> randsrcans =1>> randsrc(5)ans =1 -1 -1 -1 1-1 1 -1 -1 -1-1 -1 -1 -1 -11 -1 -1 1 11 1...