%随机生成一个10000 3的矩阵 Y=randn(10000,3); hist(Y,5);
随机平均法 源代码
汇集 随机平均法 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
function Z = Z_matrix(n,k)%随机产生Z Z = zeros(n,k); for i=1:n Z(i,round(2*rand+1)) =1; end
function Z = Z_matrix(n,k)%随机产生Z Z = zeros(n,k); for i=1:n Z(i,round(2*rand+1)) =1; end
%随机生成一个10000 3的矩阵 Y=randn(10000,3); hist(Y,5);
%随机生成一个10000 3的矩阵 Y=randn(10000,3); hist(Y,5);
%随机生成一个10000 3的矩阵 Y=randn(10000,3); hist(Y,5);
%随机生成一个10000 3的矩阵 Y=randn(10000,3); hist(Y,5);
function Z = Z_matrix(n,k)%随机产生Z Z = zeros(n,k); for i=1:n Z(i,round(2*rand+1)) =1; end
function Z = M_matrix(n,k)%随机产生Z Z = zeros(n,k); for i=1:n Z(i,round(2*rand+1)) =1; end
function Z = M_matrix(k,m)%随机产生Z Z = zeros(k,m); for i=1:n Z(i,round(2*rand+1)) =1; end