on rounding decimals at a specific digit
1 次查看(过去 30 天)
显示 更早的评论
Howe can i truncate my decimals at a certain digit, round is not working "Error using sym/round Too many input arguments"
0 个评论
回答(2 个)
Image Analyst
2018-7-10
Evidently you have an old version of MATLAB where you can't specify the number of digits in round(), but you're calling round with the second argument as if you did have a modern version.
It seems you forgot to fill out your release when you were making the post so no one knows what version you have, so all I can say (unless you add your release) is that you have an old version before the number of digits option was introduced.
Brian Cianciola
2018-7-10
I can't be exactly sure since I can't see your code, but I think what you're looking for is the roundn() function.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!