% Example 2: Star-shaped domain defined by a cosine/sine series for the radius. mip load --install magland/magland/chunkie; tic; rng(0) modes = randn(11,1); modes(1) = 1.1*sum(abs(modes(2:end))); ctr = [1.0;-0.5]; chnkr2 = chunkerfunc(@(t) chnk.curves.bymode(t,modes,ctr)); toc; figure(2) clf plot(chnkr2,'b-x') hold on quiver(chnkr2,'r') axis equal tight