mathematica中如何填充成实心图 如画一个心形线 r=a(1-sinθ)如何填充 要用什么函数

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/27 14:52:26

mathematica中如何填充成实心图 如画一个心形线 r=a(1-sinθ)如何填充 要用什么函数
mathematica中如何填充成实心图 如画一个心形线 r=a(1-sinθ)如何填充 要用什么函数

mathematica中如何填充成实心图 如画一个心形线 r=a(1-sinθ)如何填充 要用什么函数
FILL Filled 2-D polygons.
    FILL(X,Y,C) fills the 2-D polygon defined by vectors X and Y
    with the color specified by C.  The vertices of the polygon
    are specified by pairs of components of X and Y.  If necessary,
    the polygon is closed by connecting the last vertex to the first.%% 示例
t = 0:0.1:2*pi;
r = 4*(1-sin(t));
[x y] = pol2cart(t, r);
fill(x, y, 'r')