Plot Pythagoras tree with MATLAB (example)

Pythagoras tree is an infinite repetition pattern by Pythagoras according to the Pythagorean theorem are drawn. Because the shape is […]

Read More

Judge the point is inside or outside a polyhedron in MATLAB

If a body (such as an asteroid) is shaped in polyhedron, then is there a way to judge one point […]

Read More

Plot koch curve with MATLAB (example)

Fractal is usually defined as “a rough or fragmentary geometry, which can be divided into several parts, and each part […]

Read More

Making particles move and bounce Within a circle (a Matlab movie)

This example is given by a niubi person in stackoverflow.com. Here is his code: function bounce(npts, vmin, vmax, radius, center) […]

Read More

How to draw a butterfly in MATLAB?

How to draw a butterfly in MATLAB? Actually, it is very simple. Here is the code: %graph of butterfly theta […]

Read More

Astronomy/Astrophysics package in Matlab

This is the third package I’d like to introduce. Hundrends of functions are given. Click here to show them: http://www.astro.caltech.edu/~eran/matlab/ […]

Read More

SOFA (Standards of Fundamental Astronomy) Library in MATLAB

This is another powerful useful astronomy library written in Matlab. It contains about 200 useful functions. Click here to download […]

Read More

(Downloadable) Positional Astronomy Library in MATLAB

There are 32 functions in this zip file. This is the original link: https://cn.mathworks.com/matlabcentral/fileexchange/39874-positional-astronomy-library-in-matlab–partial-slalib-library- Introduction This is a subset of […]

Read More

Draw a transparent sphere and a arrow vector in Matlab

In the astronomy field or such, sometimes you need to draw a transparent sphere, which may be achieved by alpha […]

Read More