/ concept-collection / numbl-chunkie
Sign in
concept-collection / numbl-chunkie
numbl-chunkie / chunkie_ex02_bymode.m
19 lines · 361 BBlameHistoryRaw
1% Example 2: Star-shaped domain defined by a cosine/sine series for the radius.
3mip load --install magland/magland/chunkie;
5tic;
7rng(0)
8modes = randn(11,1); modes(1) = 1.1*sum(abs(modes(2:end)));
9ctr = [1.0;-0.5];
10chnkr2 = chunkerfunc(@(t) chnk.curves.bymode(t,modes,ctr));
12toc;
14figure(2)
15clf
16plot(chnkr2,'b-x')
17hold on
18quiver(chnkr2,'r')
19axis equal tight
moveopenescclose