Organizational Research By

Surprising Reserch Topic

limiting the number of decimal points taken by matlab for calculation using -'math,random,wolfram-mathematica,signal-processing,digits'


limiting the number of decimal points taken by matlab for calculation  using -'math,random,wolfram-mathematica,signal-processing,digits'

I was checking the similarity of two random matrices by using two methods ,after addition, sum of one elements of first matrix comes as .7095  and same .7095 for  second matrix matrix but when tried to find the difference in sum ,instead of zero it was giving a value very close to zero .Later I checked in work space and find out that first number is actually 0.709485632903040 and the second is  0.709485632903037. I want to limit the calculation only for 4 or 5 digits,I had used digits(4) but it is not working . I want matlab to do calculation in a precision up to 4 decimal places only(not for display,calculation inside matlab) ,Is there is a way to do that??
    
asked Sep 7, 2015 by rajesh
0 votes
7 views



Related Hot Questions



Government Jobs Opening


...