ts ,g);</span>
0022 <span class="comment">%[xy,e]= fminunc(@spring_energy, xy0, opts ,g);</span>
0023 
0024 [xy,e] = lsqnonlin(@<a href="#_sub2" class="code" title="subfunction evec = spring_energy_vec(xy)">spring_energy_vec</a>, xy0, [], [], opts);
0025 <span class="comment">%[xy,e]= fminunc(@spring_energy, xy0, opts ,g);</span>
0026 
0027 <a href="embed.html" class="code" title="function embed(g,xy)">embed</a>(g,xy);
0028 toc;
0029 
0030 
0031 <a name="_sub1" href="#_subfunctions" class="code">function e 