title: Limit the significant figures in a uitable in Matlab. Data imported from Java
body: <p>I have a table where I imported data using javaaddpath. I would like to limit the significant figures of this java database in Matlab. </p>
  
  <p>I use javaaddpath to add the string I would like to work in and from there I select a database. Once in the database I fill a listbox with messages from the java database. From there I generate a template and check off the ones I would like to work with and hit a plot button. This populates a table with data (again, from the database in java). I would like to know how to limit the significant figures of the numbers that fill up that table.</p>
  
  <pre><code>format short
  </code></pre>
  
  <p>and </p>
  
  <pre><code>fprintf
  </code></pre>
  
  <p>aren't really relevant to me here because I'm trying to put the output into a table, which stores as a cell array. I'm currently working on trying the function</p>
  
  <pre><code>vpa(A,d)
  </code></pre>
  
  <p>but it doesn't accept a cell array or a matrix. I am willing to populate the table as normal, extract the data, format it, and then repopulate the table, I'm just unsure how to do so.</p>
  
  <p>Any help or websites to point me to would be very much appreciated. I also posted this query on the Mathworks help forum (<a href="http://www.mathworks.com/matlabcentral/answers/81540-how-can-i-limit-significant-figures-to-one-place-after-the-decimal-point-in-a-data-table" rel="nofollow">here</a>), but haven't had any luck.</p>