Answered
The inverse of a multivariate function ?
There is NO method that exists to solve for ALL/ANY general such nonlinear problem. Period. Even for a linear problem such as yo...

9 years ago | 0

Answered
Scaling a spline in MATLAB
A racetrack would imply a constant bias on either side, thus a uniform distance normal to the curve. While that is quite computa...

9 years ago | 0

Answered
Underdetermined/overdetermined polynomial interpolation
You CANNOT use a polynomial with 343 terms in it to fit 340 data points. Any interpolation you would get from that fit will be p...

9 years ago | 1

Answered
Why do I get different results for the same inverse calculation in command line and a function?
What you show is NOT the matrix M. What you show is a 4 digit approximation to the real matrix M. The rounding errors make it ra...

9 years ago | 1

| accepted

Answered
Find the radius of a circle tangent to a line and another circle
Sorry, but not MATLAB. Pretty basic analytic geometry. Had image Analyst not answered it, I'd never have posted an answer. And, ...

9 years ago | 1

Answered
How to add all columns in one column one after another?
b = reshape(a,[],1); Or b = a(:);

9 years ago | 1

| accepted

Answered
How can I reduce the computation time of this matrix multiplication like calculation?
Assuming you really want this to be faster, not an increase in the time required, you can just do this: A'*diag(C)*B If ...

9 years ago | 2

| accepted

Answered
How make Integer linear programming optimization, intlinprog built-in function, takes binary data or even single as its input rather than double?
Sorry. intlinprog requires doubles. According to doc intlinprog, even single is not an option. Just wanting software to do what ...

9 years ago | 0

Answered
Simulated Annealing with two vector Decision Variables
Is there a good reason why you cannot set it up to optimize one vector of length 48, where you split it into a pair of vectors? ...

9 years ago | 0

| accepted

Answered
generating random numbers respect to a certain constraint
Trivial? Although really, you have not provided sufficient information. What are the parameters of that distribution along t...

9 years ago | 0

Answered
How to automatically create new variables from existing column vector?
Don't do it! In fact, you don't actually NEED to do what you want. Instead, learn how to use the various types of arrays in M...

9 years ago | 2

| accepted

Answered
Line fitting slope error estimation from y-error affected datasets
I'm not exactly positive what you are really asking to do here. x = rand(1,100)*10 - 5; y = rand(1,100); P = polyfitn...

9 years ago | 0

Answered
Power Log Zero Returns as Zero?
Um, basic math? 1. The log function is singular at zero. Log(x) approaches -inf, as x approaches zero. So this seems clear. ...

9 years ago | 0

| accepted

Answered
How to generate random variables for a custom function
You appear to be trying to take a mixture of two Weibulls, and fit it, then use the result to generate a random variable. Don't ...

9 years ago | 0

Answered
solving exponential equation help
It did not work, because you are using the wrong tool to try to solve this, or you are using a tool in the wrong way. Solve f...

9 years ago | 0

Answered
Can someone please tell me where I'm wrong so that I can correct it
You don't think having - cot(x))); in an integral with a kernel that is a function of y will cause a problem? :) If...

9 years ago | 1

Answered
How to convert .mp4 files into .mat file to use it in matlab
You can't convert it directly into a .mat file, without bringing it into MATLAB. Then you could save anything as a .mat file. Bu...

9 years ago | 0

Answered
piece-wise linear fitting
No, you won't be able to use SLM,because whole you can specify aslope at some point, you cannot require that the specified locat...

9 years ago | 7

| accepted

Answered
How to shift the vector element inside of the vector?
I'd just do it in 2 steps. 1. Use circshift. 2. Replace the elements at the beginning with zeros as necessary. If the shif...

9 years ago | 0

Answered
Fittype - Fitting Curve and Starting Point
Ok. Think of an optimizer as a blind man placed on the surface of the earth, then tasked with finding the lowest point of elevat...

9 years ago | 4

Answered
How use all cpu cores?
It is possible ONLY if you have the parallel computing toolbox. Otherwise, you can want for MATLAB to know what it is that you w...

9 years ago | 0

Answered
How to solve a system of symbolic equations
This problem gets asked over and over again. What you miss is that there are some problems in mathematics that are simply im...

9 years ago | 0

Answered
Warning using fmincon function.
No need to have used inv - fmincon will call backslash on its own. Therefor, if you see a singular matrix indication while using...

9 years ago | 0

Answered
Sparse Matrix build efficiency
In general, DON'T DO IT! That is, don't build a sparse matrix one element at a time. Even if you use spalloc, the matrix will...

9 years ago | 2

| accepted

Answered
how do I extract the spline model and coefficients after I use fit with cubicinterp?
A spline fit is not a simple function you can write down easily. You can evaluate it at any point, and you are always given t...

9 years ago | 0

Answered
Distance between two moving particles
Perhaps we need to look at this differently. You have two particles, I'll call them P and Q. P and Q are moving along two str...

9 years ago | 0

| accepted

Answered
STANDARD DEVIATION OF FORECASTING ERRORS
It is not a standard deviation really, because you don't have an actual. But if you were to use Google, a search perhaps on the ...

9 years ago | 0

Answered
Distance between two moving particles
"Is there any code available to do this?" No. Why should there be? This is not a terribly difficult question of mathematics, ...

9 years ago | 0

Answered
Trying to interpolate missing values of Z, given scattered data values of X and Y
I'm not sure what you expected to see. Some magically smooth surface? A tool that will know what to do in those holes? I fill...

9 years ago | 0

| accepted

Answered
Maths/formula behind atan2 function
atan2(x,y) is effectively atan(y/x), with the exception that it caters to all 4 quadrants. So, while we have y/x == (-y)/(-...

9 years ago | 0

| accepted

Load more