求一小程序中的一小句解释:。
Mostrar comentarios más antiguos
clear all;
%设置超几何分布的参数
M=1000;
K=50;
n=20;
% 产生len个随机数
len=5;
y1=hygernd(M,K,n,[1 len]);
%产生P*Q的矩阵
P=3;
Q=4;
y2=hygernd(M,K,n,P,Q)
%显示超几何分布的柱状图
M=1000;
y3=hygernd(M,K,n,[1,M]);
figure(1);
t=0:1:max(y3);
hist(y3,t);
axis([0 max(y3) 0 500]);
xlabel('取值');
ylabel('计数值') 望大虾解释下 在好多程序中 我都看到 figure(1) 或 figure 不知这句什么意思???? 在网上搜了好久 一直没有答 案!!!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre 探索与可视化 en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!