From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Prevent MatLab from Rounding the Values in a Matrix
Date: Thu, 16 Jun 2011 05:00:20 +0000 (UTC)
Organization: University of Colorado Denver
Lines: 6
Message-ID: <itc2l4$aks$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1308200420 10908 (16 Jun 2011 05:00:20 GMT)
NNTP-Posting-Date: Thu, 16 Jun 2011 05:00:20 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2492023
Xref: comp.soft-sys.matlab:732132


In MatLab I have created a 5x5 matrix where in each entry there is a specific equation with different variables. The equations in entry range greatly in terms of the calculated values. For example one entry will be equal to 10.3468 and the next entry will be equal to 5.391106*10^-6. Now the problem I am having is that when I create the matrix using variables inside the matrix the values that are output are rounded off. The entry in the matrix that was equal to 10.3468 displays perfectly, but the entry that was equal to 5.391106*10^-6 simply shows zero. Thus my question is if there is a way to make MatLab, when calculating the matrix, output these small values instead of rounding to zero? I have tried using 'double' but with no luck. I would like to get a matrix with values that are in a format similar to what you would see on a TI-83. Thanks for the help, sorry if the question is