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')

温馨提示:答案为网友推荐,仅供参考
第1个回答  2014-09-04
ParametricPlot[ 2 a (1 - Sin[\[Theta]]) {Sin[\[Theta]], Cos[\[Theta]]}, {a, 0,
1}, {\[Theta], -Pi, Pi}, Mesh -> False]
第2个回答  2014-09-03
用Filling画图参数,详细使用请参考说明。

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网