⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 theory.m

📁 一些常被用于教学或者参考的概率论的实例的源代码
💻 M
字号:
%theory.m/created by PJNahin for "Duelling Idiots"(6/10/98)
%This m-file plots the theoretical distribution function
%for Problem 17.
%
%
factor=2/pi;
for l = 1:1414
   lscale=l/1000;
   if l<1000
      F(l)=factor*lscale;
   else
      F(l)=factor*(1+2*acos(1/lscale)-sqrt(lscale^2-1));
   end
end
   x=.001:.001:1.414;
   plot(x,F)
   grid
   xlabel('length')
   ylabel('probability')
   title('Fig.17.7 - Theoretical Distribution Function')
   figure(1)
   

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -