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

    %% Create 3-D Comet Graph

% Copyright 2015 The MathWorks, Inc.


t = -10*pi:pi/250:10*pi;
x = (cos(2*t).^2).*sin(t);
y = (sin(2*t).^2).*cos(t);
comet3(x,y,t);