title: How to display Unicode Big Endian encoded text file in MATLAB gui?
body: <p>I need to display a text file with Unicode Big Endian encoding in Matlab's GUI. How can I do that?</p>
  
  <p>I'm trying this code for UTF-8 encoded text file but it is not working for this format as well, it only displays english characters correctly, but the other characters are all jumbled up:</p>
  
  <pre><code>fid = fopen( 'file.txt','r','n','UTF-8');
  str = textscan(fid, '%s', 'Delimiter','\n'); str = str{1};
  fclose(fid);
  
  hFig = figure('Menubar','none', 'Toolbar','none');
  hPan = uipanel(hFig, 'Title','Your Required Directions', ...
      'Units','normalized', 'Position',[0.05 0.05 0.9 0.9]);
  hEdit = uicontrol(hPan, 'Style','edit', 'FontSize',12, ...
      'Min',0, 'Max',2, 'HorizontalAlignment','left', ...
      'Units','normalized', 'Position',[0 0 1 1], ...
      'String',str);
  </code></pre>
  
  <p>Can someone please help me out in displaying <em>Unicode Big Endian</em> encoded text file in Matlab's GUI?</p>