File Exchange

image thumbnail


version (1.49 KB) by Nshine
Similar to comet function but able to plot multiple comets which have a fading tail.


Updated 05 Jul 2018

From GitHub

View license on GitHub

1. Similar to comet function but includes functionality to plot multiple comets which have a fading tail.
2. Also includes video capture.
3. Arguments:
a) ax: axes handle on which to plot trajectories
b) steps: number of steps in the trajectory vector to plot at once.
c) numseg: number of segments that tail is divided up in
d) varargin: Trajectory data.
(i) Each 'argin' is made up of 2 rows. The top row is the 'x'
data (could be time), the bottom row is the 'y' data.
(ii) NOTE: The trajectories must be of the same length
(iii) NOTE: For more than 8 trajecties, add rows into color matrix

Cite As

Nshine (2021). MultiCometFade (, GitHub. Retrieved .

Comments and Ratings (3)


@ angie arrieta - What are your inputs? Do they comply with the documentation in the files?

angie arrieta

no puedo correrlo, que hago?


Great! Fantastic work!

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!