Community Profile

# sogol bandekian

Last seen: 6 Monate vor Aktiv seit 2022

#### Statistics

Abzeichen anzeigen

#### Content Feed

Anzeigen nach

Beantwortet
I want to use mvnrnd for generating numbers,but there is error in my code

6 Monate vor | 0

Frage

I want to use mvnrnd for generating numbers,but there is error in my code
% Multivariate normal random numbers % Gaussian mean and covariance d = 31; % number of dimensions mu = rand(1,d)...

6 Monate vor | 3 Antworten | 0

### 3

Antworten

Frage

how I can create matrix of amout of fun after for loop ???
in function below I tried to define uncertain value for a & b and then get the amount of fun in uncertain a and b,but after for ...

6 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

surf can not be drawn/how triple objective function is written in same page with ga solver?
I define this triple objective function in separate sheet ,but how I can define this with ga solver in same sheet? %%%%%multiob...

6 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

I tried to do Monte Carlo simulation in MATLAB, but it cannot be run! Can anyone help me?
sigma=[2 1;1 3] %statr simulation with matlab mu=[1,2] N=100 counter=0 function w=mcs(x,y,z) %run the simulation for i=...

7 Monate vor | 2 Antworten | 0

### 2

Antworten

Frage

I tried to show effect of uncertain parameters on bi-variate function with color map and aslo highlight changes to max and min,I am not sure the function I wrote is right!!!
for i=1:length(x) x=lhsdesign(10,1,"iterations",2); for j=1:length(y) y=lhsnorm(50,10,10,"on"); Z...

7 Monate vor | 1 Antwort | 0

### 1

Antwort

Beantwortet
How to assign the value to the min/max of a color map in heatmap?
I have same question,How can I show the max and min of bi-variate function with colormap?

7 Monate vor | 0

Frage

I generate some points with latin hypercube sampling and also by for loop I tried to separate out(i,j) to 4 kinds for plotting .but it only plots like below picture.
rng default LHsampling=lhsdesign(100,5,"criterion","correlation","smooth","off"); %criterion','correlation' give "equal distri...

7 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

how can I investigate the effect of uncertain parameters on a bi-variate function by using color map?can I use below code?and also how can I solve the error in code?
%monte carlo simulation sigma=[2 1;1 3] mu=[1,2] %initialization N=100 %number of trail counter=0 %run the simu...

7 Monate vor | 0 Antworten | 0

### 0

Antworten

Frage

how can I change the code to have only unique CDF and PDF plot?not for all samples
mu = 1; sigma = 5; % make the distribution as wide as we want. N = 100; randgeneration = randn(N,1)*sigma + mu; pdfNor...

7 Monate vor | 1 Antwort | 0

### 1

Antwort

Beantwortet
Performing Monte Carlo Sampling
I have question regarding monte carlo sampling. where should I start to learn about MC and write it in Matlab?if anybody has an...

7 Monate vor | 0

Frage

use ga optimization but got error for ga process
%fitness function Gomez and Levy function y=fitnessfunctiongl(x) x1=x(1); x2=x(2); y=(4*x1.^2)-2.1*x1.^4+1/3*x1.^6+(x1...

7 Monate vor | 2 Antworten | 0

### 2

Antworten

Frage

I try to write simple analytical function Gomez and Levy with ga in optimization toolbox but it cannot run
%fitness function Gomez and Levy function y=fitnessfunctiongl(x) x1=x(1); x2=x(2); y=(4*x1.^2)-2.1*x1.^4+1/3*x1.^6+...

7 Monate vor | 2 Antworten | 0

### 2

Antworten

Frage

I use fcn2optimexpr,but I got an error for scalar optimizationexpression
rng default A = [2,3]; a = [-0.9,-2.9]; tdata = 3*rand(200,1); tdata = sort(tdata); % Increasing times for easier plotting ...

7 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

I wrote this code,but the plot is not what I want.how can I get the plot like below picture?
% nonlinear constraint optimization function prob=optimproblem x=optimvar('x','LowerBound',-10,'UpperBound',10); y=optimvar...

7 Monate vor | 0 Antworten | 0

### 0

Antworten

Beantwortet
Why do I get "Array indices must be positive integers or logical values" error when using "angle" function?
rng default A = [3,4]; a = [0.2,0.55]; tdata = linspace(0, 2*pi); tdata = sort(tdata); % Increasing times for easier plottin...

7 Monate vor | 0