Round saved variables (not command line output) to 5 decimal places
이전 댓글 표시
I am trying to create a series starting at 0.00625 km, with a step of 0.00625 km i.e. the first three terms would be: 0.00625 0.0125 0.01875 .... I am creating this series using:
dx=0.00625;
xstart=0.00625;
xend=35;
vbx=(xstart:dx:xend);
However the variable vbx is only saving to 4 decimal place precision i.e. 0.0063 0.0125 0.0188 ...
I need the actual variable that is saved to have the correct precision - the output on the command line is not important.
Could someone tell me how to go about this?
round does not work unfortunately, I think that this is an error due to the class of the numbers?
채택된 답변
추가 답변 (1개)
Image Analyst
2016년 4월 22일
0 개 추천
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!