rng() throwing error

2 visualizaciones (últimos 30 días)
Scott Theer
Scott Theer el 5 de Abr. de 2021
Comentada: Scott Theer el 5 de Abr. de 2021
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.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by