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일

1 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2021년 4월 5일

댓글:

2021년 4월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by