资源简介
只是为了好玩写的一个小程序来对三门概率问题进行一个仿真,仿真结果是裁判/主持人 去掉一个干扰选项后,选手换自己原本的选择的胜率高,这种问题要注意题干。这个资源纯粹是为了换下载积分,分够的大哥大姐麻烦帮帮忙吧!
代码片段和文件信息
clc;
clear;
Noexchange_Congratulations=0;
Exchange_Congratulations=0;
iters=1000;
for i=1:1:iters
x=[1 1 0];%抽奖选中0为中奖
a=rand(11);
choose=[a<=1/3 a>1/3&&a<=2/3 a>2/3]
choose_index=[1 2 3]*choose‘%选择3个球
switch choose_index%裁判去除1个干扰项
case 1
delete_index=2;
x(2)=[];
case 2
delete_index=1;
x(1)=[];
case 3
delete_index=(randn(11)>0.5)+1;
- 上一篇:中心差分法Matlab源程序
- 下一篇:Kraken波导不变量计算matlab程序
相关资源
- MATLAB Programming for Engineers 4th - Chapman
- OFDM_and_MC-CDMA_for_Broadband_Multi-User_Comm
- Gardner_for _MPSK(PSK的符号同步算法)
- MATLAB的S-Function编写指导
- odefun1.m
-
Liveli
nk for MATLAB - matlab beamforming
- MATLAB Codes for Finite Element Analysis
- Julia High Performance Programming mobi
- matlab R2014b for mac激活许可证
- 国外一大牛Petercorke 写得机器视觉工具
-
FMI Toolbox for Matlab/Simuli
nk的安装和使 - Robust Sparse Coding for Face Recognition
- matlab蚁群算法各种经典蚁群算法for
- The Finite Element Method for Thermal and Stre
- stanford研究组开发的图论工具箱matla
- MATLAB 优化问题 26个测试函数
- Zemax DDE toolbox for Matlab
- Multirate Filtering for Digital Signal Process
- Matlab 2013b Crack for 32bits 64bits
- Matlab coding for PAM4 basic transmission
- a mind for numbers - barbaraoakley学习之道英
- H.264源码for MATLAB
- Fusiello极线校正_A compact algorithm for r
-
MATLAB/Simuli
nk for Digital Communication - MATLAB Programming for Engineers 完整课件
- NURBS Toolbox for Matlab
- MatlabForRadar.rar
- matlab S-Function编写指导
- Solutions Manual for Digital Signal Processing
评论
共有 条评论