Answered
what does ... do in matlab?
It allows you to continue a line to the next line. Otherwise long lines will be unreadable. Without that though to indicate a...

10 years ago | 0

Answered
solve, command reveals solution for each part of my polynomial
There are no real roots. You can ask for a "single" X value that works, but no matter what you do, you cannot make magic, unl...

10 years ago | 0

| accepted

Answered
surface fitting issue when exporting polynomial
Oh, too bad! You are the 1000001'th person to make this mistake. The person before you got an all expense paid trip to Newark, N...

10 years ago | 0

| accepted

Answered
Randomising a vector with a restriction
An easy answer to an easy problem. This is NOT mathematically possible to solve. Not that it is difficult, or anything like ...

10 years ago | 1

Answered
Sine wave integration doubt?
How are you doing the integration? What EXACTLY did you do? For example, if you used cumtrapz to integrate a sine wave, it wi...

10 years ago | 0

Answered
Improving Nelder-Mead Optimization by Genetic Algorithms and Simulated Annealing concepts
Long ago (when I first learned about polytope methods), I recall being told by those who were knowledgable about Nelder-Mead tha...

10 years ago | 2

Answered
How to predict the shoreline rates to next 100 years?
One of my favorite quotes about mathematics came from Mark Twain: “In the space of one hundred and seventy six years the Lowe...

10 years ago | 2

Answered
how do i create a matrix with an undefined variable?
Very often people want to create a vector like this, without having a good reason for so doing. In fact, recently I've seen peop...

10 years ago | 1

Answered
Is there a Matlab function to normalize a vector ?
DEFINITELY. norma = @(a) a./norm(a); The point being, if you need a tool that you cannot find, nothing stops you from wr...

10 years ago | 2

Answered
Set conditions on variables - fminsearch
You cannot solve this using fminsearch. You cannot solve it using fminsearchbnd, since you will ask that too. Neither of thos...

10 years ago | 0

Answered
Convert vector to matrix
Are those strings? They must be, since variable names cannot have the - character inside them. Standard variables (double pre...

10 years ago | 0

Answered
How can I create a new vector using the if function?
So you want to round up to the nearest multiple of 5. Divide by 5, use ceil, then multiply by 5. The only catch is that for 0...

10 years ago | 2

| accepted

Answered
Fragility of matlab's solve routine, possibly a bug?
Not a bug. Part of your problem is in misunderstanding floating point arithmetic, where the number 0.9 is NOT represented exactl...

10 years ago | 0

Answered
Is there a data type has higher precision than double?
No, there is not a standard data type with higher precision than double. Yes, you can use symbolic toolbox to get that. Or yo...

10 years ago | 1

Answered
How can I force a gradient for a linaar fit
You want to force the slope to be 0.5? Then the least squares estimate for the constant term will come most simply from mean. ...

10 years ago | 0

| accepted

Answered
always having zero results
Well we cannot do anything with that equation, since it is not valid syntax. There are some spare * characters near the end. I'm...

10 years ago | 0

Answered
Problem using cumtrapz with acceleration data
Ok, so you have a long sequence of acceleration measurements, sampled at uniform times. You subtract off the mean, then use ...

10 years ago | 2

| accepted

Answered
Could not find a feasible initial point.
"plenty" of feasible points is not relevant, because you have provided no evidence that this is true. I see no reason why you dr...

10 years ago | 0

Answered
Minimization of a function with two variables
Use fminsearch or fminunc More, depending on the specifics of your problem.

10 years ago | 0

| accepted

Answered
Minimising non linear function
So what is your question? You have stated what you want. Did this not work? Ok, so I do wonder why you are trying to use the ...

10 years ago | 0

| accepted

Answered
Sinusoidal Random Vector question
This is just a guess. f1 = 4500; f2 = 4700; x = (sin(linspace(-pi/2,pi/2,20))+1)/2*(f2-f1) + f1; plot(x) <</mat...

10 years ago | 0

| accepted

Answered
How to "mark out" fminsearch s arguments
Trivial. Use <http://www.mathworks.com/matlabcentral/fileexchange/8277-fminsearchbnd--fminsearchcon fminsearchbnd> . It is on th...

10 years ago | 1

| accepted

Answered
What is wrong with the code? I am getting an error as ' Input should be vector ' ?? I have a second order polynomial of omega were the coefficients are 32x32 matrices. I have written two codes for the same.both with errors.
It would help if you actually reported the ENTIRE error message. Without that, I will only guess. Does roots handle problems ...

10 years ago | 0

Answered
last trial when optimization fail
What is the problem with just dumping the (ALL) function calls to the command window? In the beginning of your objective func...

10 years ago | 0

Answered
what is the best way to organize an odefun with 160 odes?
Well, I'd start off by recognizing that "[H+]*[EPOX]" is not valid MATLAB syntax. However, nothing stops you from naming your...

10 years ago | 0

| accepted

Answered
How to use trapz or cumtrapz function to integrate a function from -infinity to t?
Please don't ask the same question over and over again. I'll answer this only because it is SLIGHTLY different from your other n...

10 years ago | 0

Answered
Warning: Explicit integral could not be found. I got this warning while integrating a function.
I imagine people think computers are all-powerful. After all, they seem to be so in the movies, the TV shows. Computers can do a...

10 years ago | 0

Answered
Function hist() -matlab r2013a- produces always extremely high tales
So it tells you that you have much data at each end point. What is the problem? Surely hist is not making things up. I can see i...

10 years ago | 0

Answered
Solving an ode45 with extra input parameters that can not be expressed as a function of time
What do you mean that it is NOT time dependent? It sounds like a dataset representing some parameter that is not constant over t...

10 years ago | 0

Answered
Solve a matrix system generated at runtime
abc = matrix(:,2:4)\(matrix(:,1)-gam1-gam2*matrix(:,4));

10 years ago | 0

Load more