Answered
3D coordinates vectors. Sum along one of the dimentions of resulting volume
I don't have your data, so I cannot use it. But it is simple enough to generate some simple non-uniform data. xyz = sin(ran...

9 years ago | 1

| accepted

Answered
how to create or structure a big model?
Your question (structuring a big model) has nothing at all to do with the error you describe, or the other problems you hint at....

9 years ago | 0

Answered
How can I implement this trajectory?
Sorry. I won't write your code for you. However, you may find my interparc utility to be of value. It can interpolate a path so ...

9 years ago | 0

| accepted

Answered
Different results with different versions of Matlab. A way to detect what functions changed?
Really, the only way that I know of is to read the release notes for each release, as the release comes out. A virtue of doing s...

9 years ago | 0

Answered
Why does my nonlinear constraint return "not enough input arguments"?
How do you call your objective function? What is passed into it? Answer: X Note that nonlcon takes two arguments, yet fmin...

9 years ago | 1

| accepted

Answered
Curve fitting using particle swarm optimization
Answer: this is literally impossible to do, for us to show you how to change this mess of code to do something significantly dif...

9 years ago | 0

Answered
limit the number of function evaluation per iteration in FSOLVE
Sorry, but you can't force fsolve to have this behavior, since that would require re-writing fsolve. It simply is not one of the...

9 years ago | 0

| accepted

Answered
Overdetermined system of equations
So you have only 3 unknowns. x123 = [A(:),B(:),C(:)]\Y(:); This returns a vector of length 3, which is the linear least ...

9 years ago | 0

| accepted

Answered
Fit model to experimental data
"which like a fit"? This IS a curve fit. Just use a curve fitting tool. So the curve fitting toolbox, or nlinfit, lsqnonlin, ...

9 years ago | 0

Answered
how to prevent matlab to rounding numbers during excel read
MATLAB did NOT round the number. You misunderstand the difference between how MATLAB displays a number, and what is stored. ...

9 years ago | 1

Answered
Replace a symbolic variable with a symbolic expression
Subs does this directly. help subs

9 years ago | 0

Answered
Is there any difference between n(i,1) and n(i) in calculation when n is a vector? I got super weird thing......
It REALLY, REALLY, REALLY helps if you use the same variable name consistently! If you think you got different results from t...

9 years ago | 0

Answered
Separate a polynomial as a product of 2 polynomials (with opposite signed variables).
Have you been given the coefficients of Y? If you do, then you should also know that a6 is negative? At least it must be, IF ...

9 years ago | 0

| accepted

Answered
How to find the derivative of the function at some value of x?
MATLAB cannot do symbolic differentiation on an m-file. That would in general be impossible, since you could stick anything you ...

9 years ago | 1

| accepted

Answered
How to overwrite the coolant inlet temperature for a coolant circuit ?
That essentially makes the problem into a variant of delay-differential equation. ODE15S is NOT designed to solve that class of ...

9 years ago | 0

Answered
How to find inverse of large size matrix.?
800x800 is not even remotely large, IMO. Everyone assumes that computers are infinitely fast, infinitely powerful, and that t...

9 years ago | 1

Answered
I have gray scale noisy image (2-D). I want to plot Gaussian PDF for this 2-D gray scale noisy image in MATLAB. How I write matlab code for this?
If the image noise is presumed to be i.i.d. Gaussian (independent, identically distributed) then I'd probably do what I did in m...

9 years ago | 0

Answered
Interpolation 1-D
NEVER just throw anything (without thought) into a numerical routine and expect intelligence to come out of it. What is the old ...

9 years ago | 0

| accepted

Answered
How could I represent 3D scattered data without interpolation?
Your data does NOT live in 3-dimensions. This is a problem when you try to use delaunayn, because it assumes that your data does...

9 years ago | 0

Answered
problem with inversion of a matrix
So what is the problem? Let me guess, the inverse you are trying to compute does not exist? You state: N=(B*(R)^(-1)*B')...

9 years ago | 0

Answered
max value of poynomial surface fit
Simple enough. Using your data, I'll use my <https://www.mathworks.com/matlabcentral/fileexchange/34765-polyfitn polyfitn tools>...

9 years ago | 0

Answered
Polyfit doesn't generate the same coefficients that were inputted
Polyfit does just fine, if you use it properly. If you decide not to solve the same problem, then exactly why do you expect t...

9 years ago | 0

| accepted

Answered
Fitting my parametric function to experimental data from excel.
Note that these problems are pure hell to fit as nonlinear models. Nonlinear as hell. The search can go into bad places, creatin...

9 years ago | 0

Answered
How to get the maximal root of a function in an interval ?
fzero does not assure you that it will find any specific root. Looking at the end of the interval does not help, since there may...

9 years ago | 1

Answered
Create symbolic matrix from triplets with repeated indices
Not a big problem. If you do this often, then just write a function for it, that will take the vectors of indices, as well as th...

9 years ago | 0

Answered
Reference of Fourier series
I'm not sure you will find a book or paper on the explicit subject. On the other hand, this is basic regression modeling, app...

9 years ago | 0

Answered
Efficient factorization with eigenvalues
Well, did you try it? If you did not compute the eigenvalues as directed, why not? Seriously, COMPUTE THE EIGENVALUES OF A!!!!! ...

9 years ago | 1

Answered
how can i solve this equation for t , knowing all other variables ?
Too late to be accepted, but instructional anyway... By setting y as a vector, you actually make the problem more difficult. ...

9 years ago | 0

Answered
nlinfit and lsqcurvefit for problems with multiple variables?
No. You are not right. Not even remotely correct. They are both completely capable of solving a problem with multiple variables....

9 years ago | 0

| accepted

Answered
how do i increase the maximum number of iterations for linprog?
Linprog DOES allow you to set options if you pass them in properly. READ THE ERROR MESSAGE. linprog has a problem with the...

9 years ago | 0

Load more