📄 theory.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 + -