title: Matlab GUI Attempt to reference field of non-structure array
body: <p>I have a GUI menu on Matlab with 4 buttons (menu.fig). Then I have 4 .fig file that I want to open when I click on the buttons. Here it's all ok, when I open a .fig from menu and insert value to do a plot I get this error:</p>
  
  <blockquote>
    <p>???? Attempt to reference field of non-structure array.</p>
  </blockquote>
  
  <p>If I try to open 1.fig directly, everything works perfectly.</p>
  
  <p>I read that the problem is with eval(), but I can't solve it.</p>
  
  <p>I changed the variable names on each .fig file</p>
  
  <p>One 1.fig:</p>
  
  <pre><code>function pbutton1_Callback(hObject, eventdata, handles)
  A1=get(handles.edtSAmp,'String');
  f1=get(handles.edtSFreq, 'String');
  fi1=get(handles.edtSFase, 'String');
  t1=get(handles.popTipo, 'Value');
  
  A1=str2double(A1);
  f1=str2double(f1);
  fi=str2double(fi1);
  
  SinalSinusoidal(A1,f1,fi,t1);
  </code></pre>
  
  <p>I got the error on the that 1st line.</p>