MATLAB 求圆形面积

%该文件用于计算一个圆的面积,并显示该结果
radius=2.5;
area=pi*2.5^2;
string=['该圆的面积为:',num2str(area)];
disp(string);

运行

>> pathtool
该圆的面积为:19.635

原文地址:https://www.cnblogs.com/Angella/p/6777643.html