02-31.txt

来自「《MATLAB R2007基础教程》 清华大学出版社,包含电子课件,实例原文件,」· 文本 代码 · 共 7 行

TXT
7
字号
% script m-file example: calculate the volume and surface area of a colume
r=1;                   % the radius of the colume
h=1;                   % the hight of the colume
s=2*r*pi*h + 2*pi*r^2; % calculate the surface area
v=pi*r^2*h;            % calculate the volume
disp('The surface area of the colume is:'),disp(s);
disp('The volume of the colume is:'),disp(v);

⌨️ 快捷键说明

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