이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
This function rounds inputs to multiples of a fraction. For example, to round values in an array x to the nearest fifth, use roundfrac(x,1/5).
Syntax
Xrounded = roundfrac(X,fraction)
Xrounded = roundfrac(X,fraction,option)
Description
Xrounded = roundfrac(X,fraction) rounds X to multiples of nearest fraction. If fraction is a scalar, it is applied to all values in X. If dimensions of fraction match dimensions of X, it is applied element-wise. If fraction is 1/3, values of X are rounded to the nearest one third. roundfrac(X,1) is equivalent to round(X).
Xrounded = roundfrac(X,fraction,option) specifies an option string as 'floor', 'ceil', 'fix', or 'round'. Default rounding option is 'round'.
인용 양식
Chad Greene (2026). roundfrac (https://kr.mathworks.com/matlabcentral/fileexchange/48965-roundfrac), MATLAB Central File Exchange. 검색 날짜: .
도움
도움 받은 파일: round2, ROUND2, roundn(x,n) returns x rounded to n digits.
| 버전 | 퍼블리시됨 | 릴리스 정보 | Action |
|---|---|---|---|
| 1.0.0.0 |
