Ask a Question
Advertise on boostr.in
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??
Sep 7, 2015
to add a comment.
Related Hot Questions
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please