How to merge results of multiple viscircles in MATLAB
<p>I'm trying to plot a circle in a function using viscircles, and then come back to that function later on to plot another circle like the figure shown below:</p>

<p><img src="https://i.stack.imgur.com/Gcem3.png" alt="Multiple circles"> </p>

<p>At the moment, I can only plot single circles using these lines of code:</p>

<pre><code>figure
center = [numberX numberY];
xlim([-0.1 10.1])
ylim([-0.1 10.1])
axis square
artwork = viscircles(center,size,'Color',colorControl)
</code></pre>

<p>After plotting the first <code>viscircles</code>, control rolls back over to a prompts function to get data for the next <code>viscircles</code>, but when it comes back around to plotting, the original <code>viscircles</code> is overwritten, even when I tried using <code>hold on</code>. Any advice would be much appreciated.</p>