답변 있음

mean value of array

Why do you use mean with TWO output arguments? [Relative_ErrorM, indexAtM] = mean(Relative_Error,'omitnan'); Note that the do...

mean value of array

Why do you use mean with TWO output arguments? [Relative_ErrorM, indexAtM] = mean(Relative_Error,'omitnan'); Note that the do...

15분 전 | 0

답변 있음

Solving 2nd part of minimax question

I see you did answer the question in my comment. "mmr, a row vector containing the absolute values of the difference between th...

Solving 2nd part of minimax question

I see you did answer the question in my comment. "mmr, a row vector containing the absolute values of the difference between th...

약 9시간 전 | 1

| 수락됨

답변 있음

How does ode23 works?

Literally impossible to answer. A copmplete answer would involve teaching a class on numerical methods for ordinary differential...

How does ode23 works?

Literally impossible to answer. A copmplete answer would involve teaching a class on numerical methods for ordinary differential...

3일 전 | 1

| 수락됨

답변 있음

SVD and basis of a plane

Lets make some random data. X = rand(1000,2)*rand(2,3) + rand(1,3); I have no idea what plane represents the data, but I do kn...

SVD and basis of a plane

Lets make some random data. X = rand(1000,2)*rand(2,3) + rand(1,3); I have no idea what plane represents the data, but I do kn...

4일 전 | 0

| 수락됨

답변 있음

How to separate a variable out of trigonomic expression

As has been pointed out, this is not remotely a question about MATLAB, but you have gotten two answers already, so let me point ...

How to separate a variable out of trigonomic expression

As has been pointed out, this is not remotely a question about MATLAB, but you have gotten two answers already, so let me point ...

4일 전 | 1

답변 있음

return the numerator and denimentor

Rat gives rational results for a floating point number, sometimes they are only approximate, of course. [n,d] = rat(1/2) n = ...

return the numerator and denimentor

Rat gives rational results for a floating point number, sometimes they are only approximate, of course. [n,d] = rat(1/2) n = ...

6일 전 | 0

| 수락됨

답변 있음

2D Convex Hull: I can't think of a 'criteria' to filter out the 'wrong' points, please help!

It does not seem you have done anything at all. Write some code. Get started. Play with it. Find a way to overcome the problems....

2D Convex Hull: I can't think of a 'criteria' to filter out the 'wrong' points, please help!

It does not seem you have done anything at all. Write some code. Get started. Play with it. Find a way to overcome the problems....

12일 전 | 0

답변 있음

Nelder and Mead Algorithm

I'm trying to be retired from Answers, but having glanced in, I see this question, one which I am pretty well qualified to answe...

Nelder and Mead Algorithm

I'm trying to be retired from Answers, but having glanced in, I see this question, one which I am pretty well qualified to answe...

16일 전 | 2

답변 있음

Distinct sum of 3 variable which ranges between 1-255

As you recognize yourself, if you simply form the sum of three integers, you cannot then recover the original values from only t...

Distinct sum of 3 variable which ranges between 1-255

As you recognize yourself, if you simply form the sum of three integers, you cannot then recover the original values from only t...

약 1달 전 | 2

| 수락됨

답변 있음

How to initialize an array such that the values satisfies an equation

Too bad, in the sense that for smaller L, say on the order of 8 or so, this is not that difficult to do exactly. (I have written...

How to initialize an array such that the values satisfies an equation

Too bad, in the sense that for smaller L, say on the order of 8 or so, this is not that difficult to do exactly. (I have written...

약 1달 전 | 1

답변 있음

Solving non linear equations sytem

I would reduce this to a 2 variable problem first. That is, use equation 1 to solve for x1. x1 = b1/cos(a1 + x2) Likewise,...

Solving non linear equations sytem

I would reduce this to a 2 variable problem first. That is, use equation 1 to solve for x1. x1 = b1/cos(a1 + x2) Likewise,...

약 1달 전 | 1

답변 있음

sparse to gridded 3-D interpolation

First, should MATLAB use all of the CPU capability? That is difficult in what you are doing, becaue it is not easily parallelize...

sparse to gridded 3-D interpolation

First, should MATLAB use all of the CPU capability? That is difficult in what you are doing, becaue it is not easily parallelize...

약 1달 전 | 0

답변 있음

Regularization for Non-linear fitting with fitnlm.

(Please don't add answers to make a comment. Use comments for that.) But how can you do a simple regularization on the coeffici...

Regularization for Non-linear fitting with fitnlm.

(Please don't add answers to make a comment. Use comments for that.) But how can you do a simple regularization on the coeffici...

약 1달 전 | 2

답변 있음

185k1*185k Matrix

Think of it like this: If all of the elements in that matrix are non-zeros, then you have 185000^2 ans = 3.4225e+10 So 3...

185k1*185k Matrix

Think of it like this: If all of the elements in that matrix are non-zeros, then you have 185000^2 ans = 3.4225e+10 So 3...

약 1달 전 | 0

답변 있음

A function to find prime number

Hey, you wrote some code! Credit for that. :-) But what did you do? function isPrime(number) tf=isprime(number); if tf==tru...

A function to find prime number

Hey, you wrote some code! Credit for that. :-) But what did you do? function isPrime(number) tf=isprime(number); if tf==tru...

약 1달 전 | 0

답변 있음

Question about the tolerance of lsqcurvefit

This is not a problem of lsqcurvefit tolerance. Instead, see that the error makes a statement about INTEGRATION tolerances. That...

Question about the tolerance of lsqcurvefit

This is not a problem of lsqcurvefit tolerance. Instead, see that the error makes a statement about INTEGRATION tolerances. That...

약 1달 전 | 0

| 수락됨

답변 있음

I am trying to integrate IMU and GPS data to find roll of ground vehicle on the same road at different velocities. But, I am getting inconsistent results and an error at higher velocities (45mph) compared to lower velocities(25mph).

The singular matrix suggests why it is you are getting garbage, as once you have that, nothing will likely make any sense. Is th...

I am trying to integrate IMU and GPS data to find roll of ground vehicle on the same road at different velocities. But, I am getting inconsistent results and an error at higher velocities (45mph) compared to lower velocities(25mph).

The singular matrix suggests why it is you are getting garbage, as once you have that, nothing will likely make any sense. Is th...

약 1달 전 | 0

답변 있음

Linspace with varying increment

The problem is, vendor provided software cannot work like that. You have descibed several cases of potential interest to you, fr...

Linspace with varying increment

The problem is, vendor provided software cannot work like that. You have descibed several cases of potential interest to you, fr...

약 1달 전 | 1

답변 있음

Linear Constraint based on two variables fmincon

Why, if you already have other inequality constraints, is this a question? And how you wrote it, using A is inconsistent with yo...

Linear Constraint based on two variables fmincon

Why, if you already have other inequality constraints, is this a question? And how you wrote it, using A is inconsistent with yo...

약 1달 전 | 1

답변 있음

I need to solve an equation involving squares and cubes.

You have many values for both d and p? Do you want to solve it for all combinations of d and p? Anyway, first, I would recogniz...

I need to solve an equation involving squares and cubes.

You have many values for both d and p? Do you want to solve it for all combinations of d and p? Anyway, first, I would recogniz...

약 1달 전 | 1

답변 있음

decrease calculation accuracy to speed up running time

You essentially cannot do what you want, with one small caveat. That is, you canot arbitrarily tell MATLAB to do all computation...

decrease calculation accuracy to speed up running time

You essentially cannot do what you want, with one small caveat. That is, you canot arbitrarily tell MATLAB to do all computation...

약 1달 전 | 3

답변 있음

how to plot an ellipse having her equation?

First, learn how to write a function. fun = @(x,y) x.^2 / 25 + y.^2 / 9 - 1; Note the use of the .^ operators. They will be im...

how to plot an ellipse having her equation?

First, learn how to write a function. fun = @(x,y) x.^2 / 25 + y.^2 / 9 - 1; Note the use of the .^ operators. They will be im...

약 1달 전 | 0

답변 있음

Unable to predict data well enough

I would point out that your code shows you using the first SEVEN data points, not the first 10, despite your claim otherwise. n...

Unable to predict data well enough

I would point out that your code shows you using the first SEVEN data points, not the first 10, despite your claim otherwise. n...

약 1달 전 | 0

답변 있음

how can i find the intersection point between the vertical lines and the curve (xmin,ymin) ?

The red curve is a piecewise linear interpolation, not really a curve, just connect the dots by the plotting routine. The green...

how can i find the intersection point between the vertical lines and the curve (xmin,ymin) ?

The red curve is a piecewise linear interpolation, not really a curve, just connect the dots by the plotting routine. The green...

약 1달 전 | 1

| 수락됨

답변 있음

lsqcurvefit: is the output of this function unique for a given set of initial conditions (and deterministic model)?

The problem is, that is not your code. Not all of it. That is just how you call lsqcurvefit. We do not see the pandemic1Dall2 co...

lsqcurvefit: is the output of this function unique for a given set of initial conditions (and deterministic model)?

The problem is, that is not your code. Not all of it. That is just how you call lsqcurvefit. We do not see the pandemic1Dall2 co...

약 1달 전 | 1

답변 있음

change a logical array value based on the index of another matrix

If you want to create x on the fly, then just do this: x = A > 4; If you for some reason really want to modify an existing vec...

change a logical array value based on the index of another matrix

If you want to create x on the fly, then just do this: x = A > 4; If you for some reason really want to modify an existing vec...

약 1달 전 | 0

| 수락됨

답변 있음

What's the meaning of instrucment sound in Matlab?

Let me just answer this as if you asked for an explanation of what a sound is in the world of MATLAB. For example, if we try: l...

What's the meaning of instrucment sound in Matlab?

Let me just answer this as if you asked for an explanation of what a sound is in the world of MATLAB. For example, if we try: l...

약 1달 전 | 0

답변 있음

vector to upper and lower triangular matrix

What you fail to see is that while your code works for a 3x3 matrrix, it must always fail for any n other than n==3. You want t...

vector to upper and lower triangular matrix

What you fail to see is that while your code works for a 3x3 matrrix, it must always fail for any n other than n==3. You want t...

약 1달 전 | 0

| 수락됨

답변 있음

double differentiation and double integration of sine wave

This is not a question about MATLAB, just understanding some basic mathematics. At least, understanding calc 101. First, you ne...

double differentiation and double integration of sine wave

This is not a question about MATLAB, just understanding some basic mathematics. At least, understanding calc 101. First, you ne...

약 1달 전 | 0

답변 있음

Diagonal/Symmetric matrix

I don't even think your code works for a 3x3 matrix. The matrix it produces is OD OD = 81 23 18....

Diagonal/Symmetric matrix

I don't even think your code works for a 3x3 matrix. The matrix it produces is OD OD = 81 23 18....

약 1달 전 | 0

| 수락됨