Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

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

plus de 11 ans il y a | 2 réponses | 0

2

réponses

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

plus de 11 ans il y a | 1 réponse | 0

0

réponse

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

plus de 11 ans il y a | 1 réponse | 0

0

réponse

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

plus de 11 ans il y a | 0

| A accepté

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

plus de 11 ans il y a | 1 réponse | 0

1

réponse

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

plus de 11 ans il y a | 1 réponse | 0

1

réponse

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

plus de 11 ans il y a | 1 réponse | 0

1

réponse

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

plus de 11 ans il y a | 1 réponse | 0

1

réponse

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

plus de 11 ans il y a | 3 réponses | 0

3

réponses

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

plus de 11 ans il y a | 1 réponse | 0

1

réponse

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

plus de 11 ans il y a | 3 réponses | 1

3

réponses

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

plus de 11 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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...

plus de 11 ans il y a | 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...

plus de 11 ans il y a | 2 réponses | 0

2

réponses

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

plus de 11 ans il y a | 1 réponse | 0

1

réponse

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

plus de 11 ans il y a | 1 réponse | 0

1

réponse

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

plus de 11 ans il y a | 3 réponses | 0

3

réponses

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

plus de 11 ans il y a | 2 réponses | 0

2

réponses

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

plus de 11 ans il y a | 1 réponse | 0

1

réponse

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

plus de 11 ans il y a | 2 réponses | 0

2

réponses

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

plus de 11 ans il y a | 1 réponse | 0

1

réponse

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

presque 12 ans il y a | 1 réponse | 0

0

réponse

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

presque 12 ans il y a | 5 réponses | 0

5

réponses

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

presque 12 ans il y a | 1 réponse | 0

1

réponse

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

presque 12 ans il y a | 2 réponses | 0

2

réponses

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

presque 12 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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!

presque 12 ans il y a | 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...

presque 12 ans il y a | 4 réponses | 0

4

réponses

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

presque 12 ans il y a | 1 réponse | 0

0

réponse

Charger plus