title: Matlab GUI, how to display result in listbox gui like command windows
body: <p>i write code for generate the result in command window</p>
  
  <pre><code>fprintf('                      Maximum Power Mismatch = %g \n', maxerror)
  
  head =['    Bus  Voltage  Angle    ------Load------    ---Generation---   Injected'
         '    No.  Mag.     Degree     MW       Mvar       MW       Mvar       Mvar '
         '                                                                          '];
  disp(head)
  for n=1:nbus
       fprintf(' %5g', n), fprintf(' %7.3f', Vm(n)),
       fprintf(' %8.3f', deltad(n)), fprintf(' %9.3f', Pd(n)),
  </code></pre>
  
  <p>what the listing for generate the result in gui listbox</p>
  
  <p>sorry i can post longer listing than this</p>
  
  <p>here my file .fig and .m file if you wanna try, you can change listbox with multiline edit textbox or table, i just wanna display the result in gui</p>
  
  <p><a href="https://www.dropbox.com/s/dxy49nxr14kgeb4/pflow.rar?dl=0" rel="nofollow">matlab file</a></p>
  
  <p><em>Note : fill basemva = 100, accuracy = 0.001 , max iter = 100 , accelaration = 1.8</em></p>
  
  <p>thx</p>