Community Profile

sogol bandekian

Last seen: ongeveer 2 maanden ago Active since 2022

Content Feed

View by

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

ongeveer 2 maanden ago | 0

Question

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)...

ongeveer 2 maanden ago | 3 answers | 0

3

Question

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 ...

3 maanden ago | 1 answer | 0

1

Question

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...

3 maanden ago | 1 answer | 0

1

Question

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=...

3 maanden ago | 2 answers | 0

2

Question

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...

3 maanden ago | 1 answer | 0

1

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?

3 maanden ago | 0

Question

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...

3 maanden ago | 1 answer | 0

1

Question

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...

3 maanden ago | 0 answers | 0

0

Question

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...

3 maanden ago | 1 answer | 0

1

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...

3 maanden ago | 0

Question

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...

3 maanden ago | 2 answers | 0

2

Question

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+...

3 maanden ago | 2 answers | 0

2

Question

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 ...

3 maanden ago | 1 answer | 0

1

Question

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...

3 maanden ago | 0 answers | 0