how to generate uniformly random varaibles with inequality constraints
Add IF CONDITION BRKEAK END in the loop will do. Set the iteration to a really big number to make sure(with a really small proba...

meer dan 9 jaar ago | 0

| accepted

Question

how to generate uniformly random varaibles with inequality constraints
Hi, I have two variables function f(c1,c2) and I would like to randomly generates c1 and c2 with the constraints that * M...

meer dan 9 jaar ago | 2 answers | 0

### 2

Question

how to solve implicit equation with two variables
Dear fellows, I have a function like this pf=f(p1,p2). The problem is "pf" is a vecotor so in fact there are two output for t...

meer dan 9 jaar ago | 0 answers | 0

### 0

Question

how to easily change the function paramters in contour plot
Hi fellow, I am using contour to plot something as shown below if true % plot([0,100],[100,0]) hold on [x,y] = mesh...

meer dan 9 jaar ago | 0 answers | 0

### 0

how to get the expression for a function handles
if true % syms x y f= eucara( p,r,dd,edw,[x;y]) end

meer dan 9 jaar ago | 0

| accepted

Question

how to get the expression for a function handles
Dear fellows, I have a function with lot of inputs if true % function [ eu ] = eucara( p,r,dd,edw,c) end Now ...

meer dan 9 jaar ago | 1 answer | 0

### 1

Question

how to generate a uniform distribution with an constraint
Dear fellows, I want to do a simulation. There are two variables c1 and c2. And they satisfy a function f(c1,c2)=constant. As...

meer dan 9 jaar ago | 1 answer | 0

### 1

Question

how can I specify the marker name in scatter plot
Dear Felows, Do you know is there any way that I can name the marker by myself instead using the the default ones? For exampl...

bijna 10 jaar ago | 1 answer | 0

### 1

Question

how can I let the string variable change in a loop
Dear fellows, I am trying to plot the scatter for a set of vectors. My secource file pf.mat is a 65*154 matrix. I want to plo...

bijna 10 jaar ago | 1 answer | 0

### 1

Question

how to check if there are any elements are equal in a vector
Dear fellows, Do you know how to write a code to check if are there any (Given that I don't know the numbers)elements are equ...

bijna 10 jaar ago | 3 answers | 0

### 3

Question

how to simply result from diff result
Hi, I used "diff" to differentiat an symbolic expression (which is a 2*1 matrix in terms of one variable "p1" )and I get the ...

bijna 10 jaar ago | 1 answer | 0

### 1

Question

Matrix is close to singular or badly scaled
Dear Fellows, I am trying to find out the answers for if true % inv([1.4326e+21,8.5958e+21;0.2001,2.2005]) e...

bijna 10 jaar ago | 3 answers | 1

### 3

Question

how to save variable value neatly
Hi, I am trying to save variables in matlab and I find that matlab always save all the files related to this this variables. For...

bijna 10 jaar ago | 1 answer | 0

### 1

how to write a loop to read two columns for a matrix each time
oh right. It acutally works in this way. I was missing multiplication syntax...

bijna 10 jaar ago | 0

Question

how to write a loop to read two columns for a matrix each time
Hi fellows, I have a matrix called tt (50*40) and I need to read two columns from it each time. And this is my code if tr...

bijna 10 jaar ago | 2 answers | 0

### 2

Question

why does the imaginary part show?
Hi, I use matlab to calcuate something for me, and the expressions is pf=edw*([d12-coef1^(1/r)*d11,d22-coef1^(1/r)*d21...

bijna 10 jaar ago | 1 answer | 0

### 1

Question

fzero returns complex result
Hi, I am running this code f4=@(x) 0.1*0.4*(0.1*x+100)^(-0.8)-0.1*0.5*(-0.1*x+100)^(-0.8)+0.5*0.1*(0.5*x+100)^(-...

ongeveer 10 jaar ago | 1 answer | 0

### 1

Question

how to plot 3d using coordinates
Hi fellows, Could you tell me how to plot 3d using coodinates? For example, I have the coordinates for one point is 0.2,0.3,04...

ongeveer 10 jaar ago | 3 answers | 0

### 3

Question

function return wrong output
Hi fellows, I have encounterred a super bizzare situation. I have a function called maxmin3. When I call it, it gives me the wr...

ongeveer 10 jaar ago | 2 answers | 0

### 2

Question

how to save data in matlab file
Hi fellows, Right now I am using things like if true % DD=xlsread('parameters.xlsx'); end to read in data from ...

ongeveer 10 jaar ago | 1 answer | 0

### 1

Question

DOUBLE cannot convert the input expression into a double array
*This is the code. Could anyone run it and give me some suggestion about the error 'DOUBLE cannot convert the input expression i...

ongeveer 10 jaar ago | 2 answers | 0

### 2

Question

how to create start point for multistart
Dear fellows, I need a 8 variable functions need to minimize. DO you know how to self define the start point for multi start?...

ongeveer 10 jaar ago | 1 answer | 0

### 1

Question

Hi fellows, I have been posted a lot of question for my optimization problem and so far I am still stuck in the place. I think i...

ongeveer 10 jaar ago | 0 answers | 0

### 0

Question

optimization routine for function that is not smooth and also has a lot of local minimum
Hi, is anyone can give me some suggestion about optimization routine for function that is not smooth and also has a lot of local...

ongeveer 10 jaar ago | 5 answers | 0

### 5

Question

fmincon doesn't stop
Hi I am using fmincon to do optimization. Here is my code if true % A=[1 1 1 0 0 0 0 0]; b=[1]; lb=[0.1;0.1;0.1;0.00...

ongeveer 10 jaar ago | 1 answer | 0

### 1

Question

Hi, please have a look at a part of my code in the function maxmin0. The general idea is that I use solve to get the solution...

ongeveer 10 jaar ago | 2 answers | 0

### 2

Question

fmincon stuck at an intermidiate value
Hi,fellows I am using fmincon to maximize the sum of likelihood(sumllh), which is part of a simulation. So I know the optimized...

ongeveer 10 jaar ago | 1 answer | 0

### 1

how to store the intermediate result when using fmincon
It needs to read in data in excel file. I can I also put into excel file here? Thanks!

ongeveer 10 jaar ago | 0

Question

how to store the intermediate result when using fmincon
Dear fellows, I am using fmincon to do optmization. Could you tell me how to look at and store the intermediate result when fmi...

ongeveer 10 jaar ago | 4 answers | 0

### 4

Question

how to choose fmincon Algorithm
Hi Fellows, I am doing some optmization problem use fmincon. Currently it is running very slowly. I think I might choose an u...

ongeveer 10 jaar ago | 0 answers | 0