title: Writing to a Static Text Box in a Panel - MATLAB
body: <p>I created a matlab GUI using GUIDE.</p>
  
  <p>I created several panels with static text boxes inside them. I would like to write values to all the boxes once I push an "update" pushbutton.</p>
  
  <p>for instance, I would like to write to a box with tag AV1, and the text box is inside panel "uipanel2".</p>
  
  <p>Both ways give errors:</p>
  
  <p><code>set(handles.AV1,'String','hi');</code>
  The above code does not work as it says the field does not exist. This makes sense as I need to access the panel first.</p>
  
  <p>So below I access the panel, but how do I get to its children?</p>
  
  <p><code>set(handles.uipanel2.AV1,'String','hi');</code></p>
  
  <p>this code gives the following error: <em>Attempt to reference field of non-structure array.</em></p>