rounding numbers in a specific values
2 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
Guillaume
2020 年 3 月 7 日
multiply by 2, round to the nearest integer, divide back by 2 => round to the nearest 1/2:
>> Num = 10.25;
>> round(Num*2)/2
ans =
10.5
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!