rng() throwing error

조회 수: 2 (최근 30일)
Scott Theer
Scott Theer 2021년 4월 5일
댓글: Scott Theer 2021년 4월 5일
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