File Exchange

image thumbnail

A christmas tree plot

version (2.8 KB) by Anselm
A Small piece of code that constructs a coloured christmas tree with some presents and snow.

1 Download

Updated 17 Dec 2008

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

I'm fairly new to matlab, but my lecturer suggestet we should try around a bit. Here is one of the more playful results. Just right for next week this code creates some christmasy shapes and makes a 3D plot. Nothing sophisticated, but i thought it was worth sharing... Thanks to Peter Gruber, my lecturer who suggested to upload it and helped with some improvements.

Happy Holidays


Cite As

Anselm (2021). A christmas tree plot (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (20)

Diego Ciccia

Ananth Subramanian

Christine Mark

Budd Ledbetter

Mattia Lecci

Victoria Kurushina

Babageldi Orazgulyyev

Stavros Lazaridis

Just amazing, great work!

Ryan Baxley

Vedrana Dahl


chen allan


Very nice and thank you for sharing~


Anna DB

so niceeeeeeeeee :D merry christmas!!!


Markus Buehren

Very nice, for version 2.0 you could animate the snow flakes :-)

Luigi Giaccari

Very nice

Very nice program Anselm,
Like you told it is not a very sophisticated program, but it is very nice. Why everything have to be sophisticated to be good? Very good job!!!!

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: Let it snow: falling snow on every figure!

Community Treasure Hunt

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

Start Hunting!