Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How to generate multiple results

2 vues (au cours des 30 derniers jours)
Stan
Stan le 27 Oct 2014
Clôturé : MATLAB Answer Bot le 20 Août 2021
Question is very simple. When I input a "rand" commend in the script. I can generate multiple answers just simply by clicking the "Run" button. Can I know what commend is input there?

Réponses (1)

Ganesh Gaonkar
Ganesh Gaonkar le 27 Oct 2014
"rand" generates a pseudorandom numbers and this number will be different for different instance. Random number is generated using a 'seed' which acts as initial point from which different random numbers are generated. You can find more details on it if you try: 'edit rand' in MATLAB command window

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by