normal distrbution , Monte Carlo , Random

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

답변 (1개)

Aditya Patil
Aditya Patil 2021년 3월 30일
편집: Aditya Patil 2021년 3월 30일

0 개 추천

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

Hazim Hamad
Hazim Hamad 2021년 3월 30일
Many thanks , do you mean now if sett the seed it will be not Montecarlo
Aditya Patil
Aditya Patil 2021년 3월 30일
No. Random number seed is used to make the code be reproducible everytime it's executed. In other words, you will get the same random numbers everytime you execute the script. The numbers you get from functions like rand() are still random.
Hazim Hamad
Hazim Hamad 2021년 3월 30일
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 2021년 3월 30일
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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Link-Level Simulation에 대해 자세히 알아보기

질문:

2021년 3월 26일

편집:

2021년 3월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by