How to get back real value after rounding
이전 댓글 표시
Hello, I have the value 3.3 and 0.5, when I apply my algorithim i round the value to 3.3 to 3 and 0.5 to 1.
I want to get back the real value 3.3 and 0.5 after rounding. How can i do that in MATALAB.
채택된 답변
추가 답변 (1개)
a=[3.3 0.5];
round_vector=round(a)
c=a-round_vector;
origin_vector=round_vector+c
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!