Answered
memory overflow with double factorial function
Recursive formulas like this always seem useful, but they are terrible in terms of coding, in terms of efficiency. You don't wan...

6 years ago | 1

| accepted

Answered
Unable to meet integration tolerances without reducing the step size below the smallest value allowed
Anytime you see this error message: "Unable to meet integration tolerances without reducing the step size below the smallest va...

6 years ago | 1

Answered
symbolic integration
No. You cannot first use a numerical integration to first integrate with respect to one variable, and THEN hope to use a symboli...

6 years ago | 0

Answered
Need fast quadrature method for use within root-finding routine
Way too late for this answer to be useful. In fact, way too late even for it to have been useful for me, when I had to solve the...

6 years ago | 0

Answered
Constrain a parameter in a fit?
Simple enough. You could do this using lsqcurvefit or lsnonlin from the optimization toolbox, which do allow bound constraints o...

6 years ago | 1

Answered
Why is lsqnonlin returning initial input values ?
lsqnonlin is not a function to optimize a scalar nonlinear function. Even though you could actually have written your problem in...

6 years ago | 0

Answered
Solving Equation Generated by pchipinterp method
The simplest way to do this is to use my SLM toolbox. x = sort(rand(1,20)); y = rand(1,20); spl = pchip(x,y); fnplt(spl) y...

6 years ago | 0

Answered
How to find the roots of the equraion f(x)=sin[sin(x)]+e^x=0
The simple answer is to know MATLAB syntax, and understand how to use a tool like fzero. So sin[sin(x)] may look better to you, ...

6 years ago | 1

Answered
How to find unstable solution
Your question about how to get two lines in one graph is a simple one. Use the command "hold on" between plots. That is... plot...

6 years ago | 1

Answered
3D shape approximation
An old question, answered here only to explain some aspects of the problem. It sounds as if you have an arbitrary shaped object...

6 years ago | 0

Answered
how to found bandes matrix
You have 5 non-zero bands. Use spdiags. Yes, you could use sparse. But since it is a banded matrix, use a tool to breate a bande...

6 years ago | 1

Answered
Behavior of a sequence
I won't do your homework for you. But I will offer some background to the solution. yn+1 =5/2 yn +yn-1 ,y0 =y1 =1 This is kno...

6 years ago | 0

Answered
Permanent A for any txt matrix
Actaually, probably NOT the determinant. The matrix permanent is sadly more computationally intensive than the determinant, whi...

6 years ago | 0

Answered
Ill-posed quadratic programing with linear inequality constraint
An old question, so my answer is completely irrelevant to Benjamin. Sorry about being late on this. But the solution is not that...

6 years ago | 0

Answered
reading elements of cfit
Easy enough. Consider the simple model: x = rand(10,1); y = rand(10,1); mdl = fit(x,y,'poly1') confint(mdl) So as you see, ...

6 years ago | 0

Answered
Constraints with fsolve
Fsolve CANNOT have constraints. The use of conditional statements inside your objective would often cause fsolve to fail to prop...

6 years ago | 0

Answered
can linprog handle discrete variables
linprog has NO ability to handle discrete variables. intlinprog, (introduced after this question was asked) can do so, in theory...

6 years ago | 0

Answered
Calculating model error
Even though you may THINK your data is good, the problem surely lies in your model. That it is a new device is not even relevant...

6 years ago | 0

Answered
finding vector from an equation
There is no solution. Except for possibly a trivial solution. And with some effort, I can prove that does not exist. norm(g(...

6 years ago | 0

Answered
Solving (non-linear equation) for a single unknown?
syms are a set of tools written to solve symbolic problems. fzero is a tool to solve numerical problems. The gray area between i...

6 years ago | 1

| accepted

Answered
How to make one plot comparing two solutions of of a function?
One of several ways... Plot one solution. Issue the command: hold on Plot the second solution The second plot will now appea...

6 years ago | 0

| accepted

Answered
Looking for a very fast root finding method in Matlab
Symbolic methods (vpasolve) are NEVER efficient. But all you have is a rational polynomial. The roots of a rational polynomial...

6 years ago | 0

Answered
using fimplicit function to plot
As an alternative to the use of fimplicit, you can simply think of this as a contour plot. That is essentially all fimplicit doe...

6 years ago | 1

Answered
Fit a function to the given data y(x) and extrapolate for y(0)
This is a LONG way to extrapolate. (Need I post, yet again, the Mark Twain quote about the dangers of extrapolation?) The point...

6 years ago | 3

Answered
Convex polygon partitioning in MATLAB
No, there (still) is no solution in MATLAB for this. You could write it however. If you do, then post it on the file exchange. I...

6 years ago | 0

Answered
Modulus of a fraction
I assume you are talking about the ring of integers modulo 5. In that case, 33/4 can be thought af as 33 times the mulitplicativ...

6 years ago | 0

Answered
Please tell about Delaunay triangulation
In three dimensions, a triangulation will be composed of tetrahedrae, or we could call them 4-simplexes. So each piece will have...

6 years ago | 0

Answered
fixed point Iterative method for finding root of an equation
To understand fixed point iteration, we need to know why and when it will diverge. When does it converge? For some problems, the...

6 years ago | 1

| accepted

Answered
How to find all solutions to a system of two nonlinear equations?
Here is the rub - you are in trouble IF you really want to find ALL solutions of a system of totally general nonlinear equations...

6 years ago | 2

| accepted

Answered
inverse matrix calculation problem
You need to understand that the matrix a=[1 2 3;4 5 6;7 8 9] is singular. Therefore it has no inverse. You may as well have s...

6 years ago | 1

Load more