如题所述
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')
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]
1}, {\[Theta], -Pi, Pi}, Mesh -> False]
第2个回答 2014-09-03
用Filling画图参数,详细使用请参考说明。