Thursday, November 17, 2016

[solved]Matlab round() error: too many arguments

round(pi,3)
is an example given by mathwork, which doesn't always work because older versions (probably before 2014b) don't support two digits.

But that's fine, a way to work around that is:

round(pi*1000)/1000

No comments:

Post a Comment