/ concept-collection / turing-surface
Sign in
concept-collection / turing-surface
8 lines · 234 BCodeBlameHistory
0af3386Reaction-diffusion on spherical-harmonic surfacesJeremy Magland 1% A triaxial ellipsoid: the sphere with each axis scaled independently.
3function [gx, gy, gz] = shape(theta, phi, ax, ay, az)
4 st = sin(theta);
5 gx = ax * (st .* cos(phi));
6 gy = ay * (st .* sin(phi));
7 gz = az * cos(theta);
8end
moveopenescclose