Path: news.mathworks.com!not-for-mail From: <HIDDEN> Newsgroups: comp.soft-sys.matlab Subject: Re: Prevent MatLab from Rounding the Values in a Matrix Date: Thu, 16 Jun 2011 05:15:05 +0000 (UTC) Organization: SERC Lines: 11 Message-ID: <itc3gp$cd1$1@newscl01ah.mathworks.com> References: <itc2l4$aks$1@newscl01ah.mathworks.com> Reply-To: <HIDDEN> NNTP-Posting-Host: www-03-blr.mathworks.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: newscl01ah.mathworks.com 1308201305 12705 172.30.248.48 (16 Jun 2011 05:15:05 GMT) X-Complaints-To: news@mathworks.com NNTP-Posting-Date: Thu, 16 Jun 2011 05:15:05 +0000 (UTC) X-Newsreader: MATLAB Central Newsreader 2684471 Xref: news.mathworks.com comp.soft-sys.matlab:732136 "Kevin Ellis" wrote in message <itc2l4$aks$1@newscl01ah.mathworks.com>... > Hello, > > 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 > confusing. > > Kevin Hi Kevin, Your question is really confusing. Perhaps changing format to 'long' might help you. Also tell us if the output was simply 0 are 0.000 etc.Please explain your problem clearly! hth, Krishna.