rng() throwing error

2 次查看(过去 30 天)
When I run rng() with any input - even those in the Matlab documentation ('default' for example) - I receive the following error: "Error using rng. Too many input arguments." I am using Matlab version R2021a. I was receiving the same error on R2020b. Is this a versioning error? Any way around this issue? Thank you for your help.

采纳的回答

David Fletcher
David Fletcher 2021-4-5
Not really sure: only thing that springs to mind is something shadowing the Matlab function?
what do get when you type:
which rng
  1 个评论
Scott Theer
Scott Theer 2021-4-5
This was exactly what was happening - Thank you! Don't think I would have ever figured that out.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

产品


版本

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by