www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/CreateCometGraph1Example.m

    %% Create Comet Graph

% Copyright 2015 The MathWorks, Inc.


t = 0:.01:2*pi;
x = cos(2*t).*(cos(t).^2);
y = sin(2*t).*(sin(t).^2);
comet(x,y);