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
Post a Comment