Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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 ]
Abel

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

Hello,

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

simulation4(50,700,5000,4);

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 :

simulation4(1.12,5.68,8.21,1.01)

Which, for some specifical reasons, would be useless.

Thanks.



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.