Answered
Dependent swarm size PSO
You could write your own PSO tool. But that would be your choice. And there is no assurance this will work better. And structuri...

6 years ago | 0

| accepted

Answered
Why doesn't Multistart converge to the optimal solution?
Sadly, there is NO method that can absolutely, positively insure the optimal solution is found. No matter how hard you try, I ca...

6 years ago | 2

Answered
can anybody please help me to define this?
Special? Not really. help diag

6 years ago | 0

Answered
Why doesn't matlab recognize my variables?
What is sketchy is the invalid MATLAB syntax you have created in multiple lines. When you write things like this: Q = 5 e (-...

6 years ago | 1

Answered
Integration of a derivative(arc length formula)
I have absolutely no idea what it is you are trying to do, because your code makes no sense. So instead, I'll just show you ho...

6 years ago | 2

| accepted

Answered
How do I set an integer condition for fmincon?
You cannot do this using fmincon. Period. fmincon is not designed to allow this class of condition. Use a different optimizer th...

6 years ago | 0

Answered
Genetic Algorithm Convergence problem: big range of best fit square errors
Is there any optimal set? No. If there was some optimal set of algorithmic parameters, do you think there is any reason they wou...

6 years ago | 0

Answered
ODE45 not working
One must wonder if the reason a parameter NEVER changes, is if the derivative is always identically zero. Then I look at the e...

6 years ago | 0

Answered
Out of memory Problem [Problem 2 , Project Euler (Sum of even Fibonacci numbers)]
Note that IF you are really trying to solve PE #2 (it has been a moderately long time since I was actively solving PE problems o...

6 years ago | 0

| accepted

Answered
Why I can't plot an implicit form of function including abs()?
First, you are tryign to do the wrong thing here: fimplicit(abs(y-x)*(1+y/x)^2==0); That creates a LOGICAL result. Then you as...

6 years ago | 0

| accepted

Answered
curve fitting and optimisation code problems for f(x)= a.*exp(-b./(x.^p)) to dataset
A serious problem with this is what I would suggest looks like almost two functions merged into one. Worse, the two "curves" at ...

6 years ago | 2

| accepted

Answered
Multi-precision linear programming
None in MATLAB. However, I there is some question as to you really need super high multiple precision support. Do you have data ...

6 years ago | 0

Answered
Random Numbers Generation - For Loop VS 3D Matrix
It really is impossible to know something like this, unless you have the code sitting there in front of you. And that is somethi...

6 years ago | 2

| accepted

Answered
solving PDE problem : Linear Advection diffusion equation problem
First, it looks as if you are using ode15s for no good reason. Typically, unless you have some initial expectation your IVP is a...

6 years ago | 0

| accepted

Answered
write this following matrix
Try this: n = 100; D = (diag(ones(n-1,1),1) - diag(ones(n-1,1),-1))/(2*h); You can also use spdiags. or sparse, or many other...

6 years ago | 0

| accepted

Answered
Finding all unique permutations of a set
First, lets see if your task is even possible to do. You would be surprised. Far too often people seem to think they have immens...

6 years ago | 0

Answered
How to get set of outermost points out of given data set
Has nobody answered you? Oh well. here goes. Part of the problem is you only showed a picture of your data. A picture may be wor...

6 years ago | 0

Answered
How can I define split-complex number?
You would need to create a custom class for the object, where you will then define how arithmetic is to be performed. That is, y...

6 years ago | 0

| accepted

Answered
Implementation of array of queues
Standard arrays must be rectangular. However cell arrays are the perfect solution. C = {1:3, 1:5,1:8} C = 1×3 cell array ...

6 years ago | 0

| accepted

Answered
How to find the nearest positive definite matix
You can always just download my nearestSPD function from the file exchange. (Note that it does come with a reference to how it w...

6 years ago | 1

Answered
How can i plot surfaces for a recursive function?
Being recursive is not relevant to anything material. As long as you can evaluate it, do so. For example, you might create an ar...

6 years ago | 1

Answered
vpa doesnt transform the roots of a polynomial equation to numerical results
You want numerical roots, for completely general k? Brute force is a problem, since those roots would still be a function of k. ...

6 years ago | 2

Answered
double summation of a matrix
Of course it does work to use loops. Therefore, your loops were not written correctly. :-) However, it is far easier to write th...

6 years ago | 0

| accepted

Answered
Convolution and tolerances: how do I calculate the probability density function of the difference between two dimensions? (mechanical engieering)
Jeff has already answered this to my satisfaction, so I have upvoted his answer. But just to expand on things, to add some thoug...

6 years ago | 0

Answered
How can I solve this equation?
There will probably be no analytical solution to the problem, as I doubt lambertW or wrightOmega will suffice. However, given th...

6 years ago | 0

Answered
lower triangular semidefinite matrix
You just want the lower triangle elements. semi-definite-ness is irrelevant to what you asked for at the end. A = sprand(5,5,.3...

6 years ago | 0

Answered
Solve() does not find an obvious solution to a system of nonlinear equations
You have 4 equations, but effectively 9 unknowns. syms R_1 positive syms L_1 positive syms C_1 positive syms R_2 positive ...

6 years ago | 1

| accepted

Answered
how to get roots of determinant?
You re-wrote it incorrectly in x, as: [sin(x)-sinh(x) cos(x)-cosh(x) ; x*cos(x)-x*cosh(x) -x*sin(x)-x-sinh(x)] when the matri...

6 years ago | 1

Answered
How to plot |x|<=1 and |y|<=1 with X and Y rational numbers?
You cannot do so. Or, what you can do is pretty boring. Between any pair of rational numbers, there are infinitely many irratio...

6 years ago | 0

| accepted

Answered
Evaluating a function at every combination of two differently sized vectors
This should get you started: [r,theta] = meshgrid(1:3,2:2:10) r = 1 2 3 1 2 3 1 2 3 ...

6 years ago | 1

Load more