Answered
FunctionTolerance parameter has no effect on fmincon - is it a bug?
I'm not sure I've call it a bug. optimoptions('fmincon','functionTolerance',1) ans = fmincon options: Op...

10 years ago | 0

| accepted

Answered
how i do random sampling to a linear euation by using Monte Carlo simulation?
I don't see why this is difficult. (Actually, I do, but there are ways to resolve the problem.) I think your difficulty lies in ...

10 years ago | 0

| accepted

Answered
How to solve an inequality?
This is one of the very frequent questions we see here. You cannot in general "solve" an inequality. An inequality represents...

10 years ago | 0

| accepted

Answered
How to get a accurate or near accurate extrapolation in interp1?
Extrapolating a spline is insane, dangerous, crazy, random ... Just pick your word. They all apply. Accurate is hardly ever a...

10 years ago | 0

| accepted

Answered
estimation parameters of equation
In general, not possible to do. Suppose that you knew the perfect values for x1, x2, G2? Then your problem reduces to this...

10 years ago | 0

Answered
Randomly oriented two sided ball roll
This is not a MATLAB question. It is a simple question of mathematics. Viewed from a fixed point of view, a sphere is just a ...

10 years ago | 0

| accepted

Answered
Cannot save a .m file
Simple. You probably do not have write access to that directory. You cannot write a file to a directory where you are not allowe...

10 years ago | 0

Answered
HOW TO REMOVE THE ERROR
MATLAB does NOT use zero based indexing. However, in several places, you index with a variable that takes on that value. For ...

10 years ago | 0

| accepted

Answered
How to calculate dimension of a bounding box with an angle?
Existing code is always a better choice, if you can find it? For example, you can find <http://www.mathworks.com/matlabcentral/f...

10 years ago | 0

Answered
How to correctly solve cubic spline interpolation?
To "model it" makes no sense when you talk about an existing piece of software, that is well documented. So I'm not sure what yo...

10 years ago | 0

Answered
Basic fitting MATLAB: How can I find out the functions for shape-preserving interpolant and spline interpolant
Nope. Not possible. There are no simple "functions" there. These are splines. So they are composed of MANY tiny polynomial se...

10 years ago | 0

| accepted

Answered
Problems with solve command.
Looks like you defined T in the comments. Anyway, time to learn what vpa does for you. vpa(Efv) ans = 1.0706432917...

10 years ago | 0

| accepted

Answered
Surface Fitting only in Z Direction
But you just have a regular grid in x,y. So just use conv2, with a Gaussian blur kernel. Simple to do. Fast. Easy. No need to do...

10 years ago | 0

Answered
Fixed Point Iteration on an interval
Perhaps you are asking how to do this: syms x g = 1 - 5*x + 15/2*x^2 - 5/2*x^3; x0 = solve(diff(g) - 1) x0 = ...

10 years ago | 0

Answered
Array combination using pairs
Two vectors are trivial. help meshgrid help ndgrid [arr1,arr2] = meshgrid(0:15); Result = arr1.*arr2 + arr1.^2 +...

10 years ago | 0

Answered
Is there a way to simplify this expression?
But why bother to do so for the addition of two arrays? Be serious. Don't waste time trying to over optimize code that is trivia...

10 years ago | 0

Answered
Speed up Matlab funtion optimset or fsolve
There is no need to call optimset more than once, so why do you think you need to speed it up? Save the options structure, and b...

10 years ago | 0

Answered
I need a help with my project!!
v is a vector. what do you expect v(1.1) to return? Where will the 1.1 element of that vector be found? (Between the 1st and 2nd...

10 years ago | 1

| accepted

Answered
coloring region of inequalities on matlab
Download plotregion from the file exchange. It does exactly what you want. Although, I should point out that this is an unbounde...

10 years ago | 0

| accepted

Answered
solve the problem of singular stiffness matrix
A stiffness matrix that describes the deformation of an elastic body will in general be singular. Why? Because any simple transl...

10 years ago | 0

| accepted

Answered
i have a question
So what happens if you reshape the matrix, to be 28x3484? Then use min. So groupmins = min(reshape(A,[28,3484]),1); L...

10 years ago | 1

| accepted

Answered
How can I calculate the pseudo inverse of a matrix of a set of linear equations with nonlinear constraints
They are no longer a system of linear equations when that nonlinear equality constraint is added. The pseudo-inverse is not defi...

10 years ago | 0

Answered
sum of all matrix elements equal to zero
Well, you COULD just subtract off the sum of the matrix, divided by the number of elements in the matrix. theta = theta - s...

10 years ago | 0

| accepted

Answered
vpasolve returns Empty sym: 0-by-1
Well, you did not answer my question about KNOWING a solution exists. Close enough to zero is not zero. Anyway, this is a ONE va...

10 years ago | 0

Answered
"??? Undefined function or variable 'v_pT'."
I'll guess your problem is for some reason, you have not bothered to define the variable v_pT that you are then passing into the...

10 years ago | 0

Answered
Why does the matrix rank not agree with the number of pivots in rref? For J below, we see the rank is 17 and the number of pivots is 18?
It is time for you to learn what the singular value decomposition tells you. svd(J) ans = 3.1533 3.1...

10 years ago | 0

Answered
Write Function/Integral equation
Well, since x and X are different variables, X*Y*sin(2*pi*X*R) is a constant. That means you have a constant integrated from 0 t...

10 years ago | 0

Answered
fminimax give negative values when the lower bound is set to 0
All of these solvers generally employ a constraint tolerance. They can potentially exceed the constraint by that amount. So, ...

10 years ago | 0

Answered
non linear minimization problem
You want to solve for 4 parameters, a,b,c,E. They all enter the problem linearly. However, since the set of equality constrai...

10 years ago | 0

Answered
how to find all possible paths in MxM matrix
No. I'm not going to write the code for you, as this is probably either homework or possibly something like a project Euler prob...

10 years ago | 0

Load more