CAD/rounding

Advertisement


Question
hi,
which function in matlab6 that can round the number 0.009876 to 0.00099?

Answer
Hi Hana,

no function can do that. You must use a "trick" to do want you want. Multiply you number with 1000, round it, and divide it by 1000, e.g. round(0.009876*1000)/1000. This will return 0.0099, which i assume is want you wanted (not 0.00099).

Best
G.

CAD

All Answers


Answers by Expert:


Ask Experts

Volunteer


George Moustris

Expertise

I have extensive experience in MATLAB which is a CAD for engineers.I can answer many questions on the programming script as well as the use of many toolboxes Matlab uses.However DO NOT ask me about the underlying theory of your projects.I will only answer questions regarding the USE of Matlab.

Experience

I have written many scripts in Matlab utilizing many toolboxes and libraries such as Fuzzy Logic toolbox,Neural Nets,Image processing,Wavelets,Signal processing etc.

Organizations
Aristotle University of Thessaloniki

©2012 About.com, a part of The New York Times Company. All rights reserved.