657
edits
Line 20: | Line 20: | ||
<!-- <syntaxhighlight lang="matlab"> --> | <!-- <syntaxhighlight lang="matlab"> --> | ||
<pre> | <pre> | ||
octavesvg = svg('octave.svg'); | |||
ids = | ids = octavesvg.pathid(); | ||
P = | P = octavesvg.path2polygon(ids{1},12)(1:end-1,:); | ||
P = bsxfun(@minus, P, centroid(P)); | P = bsxfun(@minus, P, centroid(P)); | ||
</pre> | </pre> |
edits