title: Matlab GUI, radio buttons, plotting
body: <p>I have two radio buttons <code>radiobutton1</code>,<code>radiobutton2</code> (not in a group) in GUI, each of them plot on the <code>axes1</code>a specific function. If I select <code>radiobutton1</code> and <code>radiobutton2</code> the two functions will be plotted on the <code>axes1</code>. If I unselect <code>radiobutton1</code> there will be only function of  <code>radiobutton2</code> on the <code>axes1</code>, the function of <code>radiobutton1</code> will not be seen anymore. The same for <code>radiobutton2</code>. Or If I unselect two radio buttons nothing will be plotted. </p>
  
  <p>I have defined <code>if</code> loop for each radio buttons such as </p>
  
  <pre><code>    v = get(hObject,'Value');
  
  if (v == 1)
      axes(handles.axes1);
      plot(sin(x));
      hold on;
  else
      cla;
  end
  </code></pre>
  
  <p>I tried <code>cla</code> to clear <code>axes1</code>, but it clears all the plots when one radio button is unselected. </p>
  
  <p>I have written two radio buttons for the sake of simplicity. But I have many of them. So please think the solution for many radio buttons. </p>
  
  <p>How can this be done?</p>