format - Matlab - save calculated variable with 5 decimal cases -


i want use calculated variable result has 5 decimal cases, matlab saves 4. need have 5 decimal cases use in rest of code.

hence: not want display variable user.

example: l=10; n=1600;

fs=l/n;

matlab stores "fs" "0.0063" instead of "0.00625", , need "0.00625".

thank time , help!

you can use built-in function digits(n) n precision parameter.

digits(5) fs=vpa(l/n)  fs=0.00625  

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -