Weird problem with fix.
조회 수: 1 (최근 30일)
이전 댓글 표시
Guys do you know why fix on matlab 2017a is behaving weirdly. Pls have a look on the attached pic.This is not photoshopped.
댓글 수: 0
답변 (2개)
Star Strider
2017년 7월 22일
편집: Star Strider
2017년 7월 22일
The format displays the value rounded to the nearest integer. The fix function rounds toward zero (for both positive and negative numbers).
Example —
format long g
R1C2 = 3.9999999999
format short g
Q1 = R1C2
Q2 = fix(R1C2)
R1C2 =
3.9999999999
Q1 =
4
Q2 =
3
————————————————————
EDIT — Clarified explanation.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 3-D Scene Control에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!