plotfig.m
来自「主要包括了用gui设计的计算机界面」· M 代码 · 共 19 行
M
19 行
R = round(100*get(HF9,'Value'))/100;
r = round(100*get(HF10,'Value'))/100;
h = round(100*get(HF11,'Value'))/100;
r = [1:0.1:100];
t = R^2./(5*r.^2).*sqrt(2*h/9.81);
switch get(HF14,'Value')
case 1
tim = round(1000*t)/1000;
case 2
tim = round(1000*t/60)/1000;
case 3
tim = round(1000*t/3600)/1000;
end
figure, plot(r,tim), title('The Figure of Time Vs. Hole Radius');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?