normal distrbution , Monte Carlo , Random

3 vues (au cours des 30 derniers jours)
Hazim Hamad
Hazim Hamad le 26 Mar 2021
Modifié(e) : Aditya Patil le 30 Mar 2021
for this command
m=standard_deviation.*randn(1,1000)+mean;%generates an array of 1000 numbers
is this Monte Carlo simulation or not ; if mnot can you give the comand line of Monte Carlo based on normal distrbution .
Also if I need to get a fixed results can you update the comand to include seed please.
Regards
Hazim

Réponses (1)

Aditya Patil
Aditya Patil le 30 Mar 2021
Modifié(e) : Aditya Patil le 30 Mar 2021
Monte Carlo involves using random sampling, so depending on what you use the result for, it might be monte carlo.
For random seed, use
rng("default");
or
rng(1234); % some number
  4 commentaires
Hazim Hamad
Hazim Hamad le 30 Mar 2021
many thanks , i have another question please is it avialable in MATLAB tool deals with n single and multi objective robust optimisation please.
Regards
Aditya Patil
Aditya Patil le 30 Mar 2021
If are referring to optimizing some function under some constraints, optimization toolbox will help you. See solve for example. I did not understand what you mean by robust optimization. I recommend asking a separate question, as optimization is not my area of expertise, so someone else might be able to help you better.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by