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

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

11 years ago | 2 answers | 0

2

answers

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

11 years ago | 0 answers | 0

0

answers

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

11 years ago | 0 answers | 0

0

answers

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

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

11 years ago | 1 answer | 0

1

answer

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

11 years ago | 1 answer | 0

1

answer

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

11 years ago | 1 answer | 0

1

answer

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

11 years ago | 1 answer | 0

1

answer

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

11 years ago | 3 answers | 0

3

answers

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

11 years ago | 1 answer | 0

1

answer

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

11 years ago | 3 answers | 1

3

answers

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

11 years ago | 1 answer | 0

1

answer

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

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

11 years ago | 2 answers | 0

2

answers

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

11 years ago | 1 answer | 0

1

answer

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

11 years ago | 1 answer | 0

1

answer

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

11 years ago | 3 answers | 0

3

answers

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

11 years ago | 2 answers | 0

2

answers

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

11 years ago | 1 answer | 0

1

answer

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

11 years ago | 2 answers | 0

2

answers

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

11 years ago | 1 answer | 0

1

answer

Question


problems about solve exponential function
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...

12 years ago | 0 answers | 0

0

answers

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

12 years ago | 5 answers | 0

5

answers

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

12 years ago | 1 answer | 0

1

answer

Question


problems about solve exponential function
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...

12 years ago | 2 answers | 0

2

answers

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

12 years ago | 1 answer | 0

1

answer

Answered
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!

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

12 years ago | 4 answers | 0

4

answers

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

12 years ago | 0 answers | 0

0

answers

Load more