Answered
Extrapolating from matrix data
Sigh. Hint: help interp2 help griddedInterpolant Note that both allow you to extrapolate. I'm not sure what "getting the xyz...

7 years ago | 0

Answered
Can someone help me to iterate the equation
Algebra? (1/M)*(2/2.4*0.4/2.4*M^2)^(2.4/0.8)-0.3/0.2 == 0 --> (1/M)*(1/7.2*M^2)^3 - 3/2 == 0 M^5 * (1/7.2)^3 == 3/2 Wh...

7 years ago | 1

Answered
Help in curve fitting tool box
Without even immediately addressing the error you got, first, it is a really bad idea trying to fit a 3 parameter model, using o...

7 years ago | 1

Answered
Cant get integral from Lagrange interpolation polynom
Ok. As I said, this is a misuse of recursively built function handles. It is easy enough to build a Lagrange polynomial. First, ...

7 years ago | 0

| accepted

Answered
Why does my 3d randomwalk trend to the pole?
Confusing as hell. Sorry, but it is. The problem is, you state this is a 3-d random walk, apparently subject to constraints that...

7 years ago | 1

Answered
Fitting an equation to a non-linear data set
This is an example of a case where you have no reason to use any specific nonlinear model. Your hope that an ODE might be approp...

7 years ago | 0

Answered
How do I get a vector of Simpson's rule approximations with different step sizes?
Write a function that will do simpson's rule for a given number of nodes on a function on some interval. function simpint = mys...

7 years ago | 3

| accepted

Answered
How I can make 64*64*256 double matrices as .mat file?
Of course. X = rand(64,64,256); save Xmat X clear load Xmat whos X Name Size Bytes Class A...

7 years ago | 0

Answered
How can I make this code run faster with a sparse matrix
How can I say this? You are using sparse in the very worst way possible. Well, you are. Not only that, but your code will dump ...

7 years ago | 1

| accepted

Answered
Curve fitting with constraints
You cannot use the curve fitting toolbox to fit a model that has constraints on it like the ones you have. At least not directly...

7 years ago | 0

Answered
finite difference method for second order ode
Hmm. A zombie question, far too late for my answer to help the OP. But at least maybe I can help the secondary poster @Furkan Ce...

7 years ago | 3

| accepted

Answered
griddedInterpolant for 3D matrix using grid vectors; not enough sample points?
Since we do not have your actual inputs, only you can know what you did.For exampel, IF you really have what you claim to have, ...

7 years ago | 0

| accepted

Answered
fmincon with sqp algorithm but without inclduing a gradient
SQP does use the gradient, but it is not necessary to provide one. When none are provided, then finite differences often provide...

7 years ago | 1

| accepted

Answered
Why does not Matlab use the full capacity of my computer while training a neural network?
I do not think the issue is single threading. Not at all. You surely don't keep all 25000 images in memory at once. Instead, yo...

7 years ago | 1

| accepted

Answered
how to get the inverse of a symmetric matrix and ensure accurancy
You want to compute the inverse of a symmetric matrix F. So let me first check your claim... norm(F,inf) ans = 9.7249e-06 ...

7 years ago | 1

Answered
linprog cannot find solution
I'll answer this a different way than did Walter, using different tools to answer the question at hand. You have a linear syste...

7 years ago | 1

Answered
How to do curve fitting on a data set with errors associated to each data point (y ± Δ y)
Since you have explicit bounds on y +/- deltay, you cannot just use simple weights. As well, you cannot use the curve fitting to...

7 years ago | 1

Answered
Should I use PCA to order the data points in order to find the mode of the data points?
Let me try to explain a bit, although, I think you wouldbe best servd by doing some reading online, or atextbook about PCA. I th...

7 years ago | 0

Answered
how separate the first one (Xp) from (Xn).?
I have no idea why you are trying to do this using a vector. Far better would be to store your variables in a struct or a cell a...

7 years ago | 0

| accepted

Answered
Normalizing a sparse matrix so that rows sum to 1
WTP? M = sprand(10000,10000,.00001); mean(sum(M,2)) ans = (1,1) 0.050375 So M is large, sparse, and its rows sum ...

7 years ago | 0

| accepted

Answered
Does Mac Mojave work with matlab R2013 ?
Not even remotely close. https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequireme...

7 years ago | 0

Answered
Solving non linear equations using fsolve
Using the symbolic toolbox is often a mistake that people do, just because they think because the value of some parameters is no...

7 years ago | 1

| accepted

Answered
2-dimensional polynomial interpolation
No. You simply do NOT want to do this. It is a terribly bad idea. Even 1-dimensional interpolation using any high degree polyno...

7 years ago | 0

Answered
Trying to find non-zero solution.
Which solution do you wish to find? F = matlabFunction(det(X)); fplot(F,[0 .1]) It appears there might be 2 or 3 solutions....

7 years ago | 0

| accepted

Answered
How can we generate an N-dimensional unitary column vector?
Confusing. Usually that means you are also confused about what you really want. x = rand(4,1) +i*rand(4,1); x = x/norm(x) x =...

7 years ago | 0

Answered
Help with probability density functions
This is not a question about MATLAB. But you have done something. You do not have a PDF. You have an approximation to a PDF, s...

7 years ago | 0

Answered
How to show a equation?
X = sym('X',[1,3]); coeff = rand(1,3); vpa(sum(X.*coeff),5) ans = 0.022414*X1 + 0.053832*X2 + 0.14087*X3

7 years ago | 0

| accepted

Answered
what is written below i cant read that
A mess of undocumented code that does something we are not given a clue to the purpose? That is almost impossible to decipher, a...

7 years ago | 0

Answered
Creating possible addition of a number
Trivial, if you download my partitions function from the File Exchange. A = [1 2 4 8 16]; partitions(4,A) ans = 4 ...

7 years ago | 3

| accepted

Answered
Any tool/method to get top x% brightest pixels in image ?
You need to learn to think about how to use MATLAB. You don't need a specialized tool. A grayscale image is just a 2-d array of...

7 years ago | 1

| accepted

Load more