Answered
I have complex equation of the form x=(y/c1)+K*(y/c1)^n ??
syms n y c1 K E = x==(y/c1)+K*(y/c1)^n; E0 = subs(E,{c1,K,n},{90e9, 5e12, 6.1245}); There will be multiple solutions....

10 years ago | 0

Answered
Set gradual parameter constraints in fmincon
Why cannot it be implemented? This is not even a nonlinear inequality constraint. Use the linear inequality constraints. Is y...

10 years ago | 0

| accepted

Answered
Nlinfit: Warning: The Jacobian at the solution is ill-conditioned, and some model parameters may not be estimated well (they are not identifiable). Use caution in making predictions.
Perhaps an example is simplest. In fact, I can give you a linear example that would probably cause the same error from nlinfit. ...

10 years ago | 3

| accepted

Submitted


movingstd & movingstd2
A (fast) windowed std on a time series (or array)

10 years ago | 12154 downloads |

4.8 / 5

Answered
Derivative of piecewise polynomial using ppval
Well, you could always use <http://www.mathworks.com/matlabcentral/fileexchange/46580-periodical-cubic-interpolation/content/ppd...

10 years ago | 0

| accepted

Answered
representing a given polynomial in Chebyshev polynomials
You can easily enough build the first kind Chebyshev polynomials in symbolic TB form. (Or second kind if you wish.) https://e...

10 years ago | 0

Answered
Numerical solver for system of equations
No. There is no such requirement when solving MLE problems. I would suggest that you misunderstand MLE (or basic algebra) if you...

10 years ago | 0

Answered
script that finds a number using binary search?
Why do something complicated? Learn to use MATLAB, as it is designed to be used. find(V == n)

10 years ago | 0

| accepted

Answered
more than one optimization using bintprog
There will in general be a huge number of feasible solutions, and there may be infinitely many solutions. Anyway, bintprog is no...

10 years ago | 0

Answered
I am unable to create a text file on matlab 2013a.The value in variable 'errmsg' is 'Permission denied'.Usage of other permissions like w+,a,A,W also gives the same result.The only permissions working are 'r' and 'r+'. How do I solve this problem?
You need to be given write access to the current directory if you intend to write a file to that directory. This is not a MATLAB...

10 years ago | 0

| accepted

Answered
Working with a very large matrix
You cannot specify that a given number will only have 2 decimal places stored. If floating point, it must be either a single or ...

10 years ago | 1

Answered
"Cannot find explicit solution"
This is a 1-variable problem, but one for which there will surely be no analytical solution. Solve told you as much. So just ...

10 years ago | 0

Answered
I am writting a code for power method, and I am not able to find the corresponding eigenvector for my eigenvalue
So you have an eigenvalue, but not the corresponding eigenvector? If lambda is an eigenvalue of the matrix A, then the correspon...

10 years ago | 0

| accepted

Answered
How to find extreme points of feasible solution of an linear programming problem?
Not all LP problems have an extreme point, as an LP problem need not even be bounded. However, even given that your problem ...

10 years ago | 0

Answered
Help with symbolic computation...
Not all problems are solvable in a finite amount of time, or even quickly. Big problems take big time, and just wanting them ...

10 years ago | 1

Answered
What is the algorithm used for lu built-in MATLAB matrix decomposition function?
1. READ THE HELP. In general most tools should give SOME idea of what algorithm was employed. Look for references if available. ...

10 years ago | 0

Answered
Numerical Integration Gives 0
This is difficult to answer, without understanding the mathematics behind your code. Perhaps the VERY most common reason why ...

10 years ago | 2

Answered
Questions about ppval in piecewise polynomial
You only think that this differentiates the polynomial. But it does not. In fact, look at the result. For example, consider the ...

10 years ago | 0

Answered
Hi, how do I compute f(x) = tan(x) at x=1 using the forward difference and the central difference. Using also h = 10^(-k), where k= 0,1,2,....,16.? I already did this but not too sure if it is correct.
Did you get the answer you would have expected? This is the best test of course. Think about what you got. What is the analytica...

10 years ago | 0

Answered
How can I return to a previous version of my function?
This is why one keeps backups. Time machine is nice on a Mac for that very purpose. If not, then well one presumes that you know...

10 years ago | 0

Answered
3D plot intersection with plane
No. You don't have a surface. You have scattered data points, that your eye chooses to see as a surface. The two are VERY DIFFER...

10 years ago | 0

Answered
how can help to find lower in this matrix , i found upper by cholesky decomposition ,but I need to find lower
A cholesky decomposition factors a SPD matrix A, prodcing a factor L, such that A = L*L' so if you found one part, all y...

10 years ago | 0

Answered
Matrix interpolation with two vectors as input
You have a TWO dimensional array. Not a one dimensional problem, but in two dimensions. help interp2 use the proper tool...

10 years ago | 0

| accepted

Answered
Simpson's 1/3 rules
A TERRIBLE idea to use the name sum as a variable. You WILL get int trouble later on if you continue to use incredibly useful fu...

10 years ago | 0

| accepted

Answered
Hello, How do i return the smallest positive value from a matrix?
So min(m_dot(wd > 0)) does not work? I'd try it anyway. :)

10 years ago | 1

Answered
how to calculate the accuracy of an MxN matrix in matlab.
Let me guess that eps is what the OP desires. Just a random guess though. eps(V)

10 years ago | 0

Answered
Cumulative radial distribution of particle centers
You are looking at this the wrong way. First, NEVER reinvent the wheel. Use existing, high quality code written by professionals...

10 years ago | 0

Answered
how to check the direction of a plot (monotonicity)
Assuming that x is in increasing order, then something like this: sum(diff(y) >= 0)/(numel(y) - 1) will suffice to yield...

10 years ago | 1

Answered
how to solve a multi objective optimization using genetic algorithm
The standard solution to multi-criteria optimization is to optimize the sum of a linear combination of those competing objective...

10 years ago | 0

Load more