The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Simulation a function with random parameters
Replies: 4   Last Post: Jul 29, 2013 10:05 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 31
Registered: 5/29/13
Simulation a function with random parameters
Posted: Jul 29, 2013 4:11 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I would like to simulate a function with random parameters. The function is named simulation4 and can be called by the following command :


What I would like to do is then to write another function that would call simulation4 50 times for example and with random parameters. Each time it is called, I would write something in an .xls file.

Moreover I need to control the "randomness" : indeed I need first parameter to be a random number between 10 and 50, the second between 100 and 700, the third between 3000 and 5000 and finally the last between 1 and 16. I would like to avoid something like this :


Which, for some specifical reasons, would be useless.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.