ass="comment">% publish some files without running the code</span>
options.evalCode = false;

publish(<span class="string">'index.m'</span>,options);
publish(<span class="string">'makedoc.m'</span>,options);

<span class="comment">% publish a file and run the code</span>
options.evalCode = true;

publish(<span class="string">'example.m'</span>,options);

<span class="comment">% close figures</span>
close <span class="string">all</span>;
<span class="comment">% open file for viewing</span>
open(<span class="