if</span> nargin &gt; 4
    text(2,1,1.8,text1);
    text(2,1,1.4,text2);
  <span class="keyword">end</span>


  drawnow
<span class="comment">%   pause(plant.dt/2);</span>
<span class="keyword">end</span>
</pre><p class="footer"><br><a href="http://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2012b</a><br></p></div><!--
##### SOURCE BEGIN #####
%% draw_unicycle.m
% *Summary:* Draw the unicycle with cost and applied torques
%
%    function draw_unicycle(latent, plant,t2,cost,text1, text2)