回答済み

How to integrate discrete values over a surface

You are a bit ambiguous here, but I will guess I understand what you are asking. You have a quad mesh over that domain. At eac...

How to integrate discrete values over a surface

You are a bit ambiguous here, but I will guess I understand what you are asking. You have a quad mesh over that domain. At eac...

約1ヶ月 前 | 0

| 採用済み

回答済み

Creating a Random Vector with Several Conditions

Um, trivial? I suppose trivial is in the eyes of the beholder. The equation dot(Z1,Y1) == 0 implies that Y1 lies in a plane in ...

Creating a Random Vector with Several Conditions

Um, trivial? I suppose trivial is in the eyes of the beholder. The equation dot(Z1,Y1) == 0 implies that Y1 lies in a plane in ...

約1ヶ月 前 | 1

| 採用済み

回答済み

How can I get more than 49 digits of pi in a string?

You could always download my HPF toolbox from the file exchange. It will provide 500100 digits of pi. P = hpf('pi',500000); cp...

How can I get more than 49 digits of pi in a string?

You could always download my HPF toolbox from the file exchange. It will provide 500100 digits of pi. P = hpf('pi',500000); cp...

約1ヶ月 前 | 1

回答済み

Create a spline along points and then extract points at a specified distance apart

Actually, you CAN use interparc to determine points at a given distance along the curve, with just one extra tool, my arclength ...

Create a spline along points and then extract points at a specified distance apart

Actually, you CAN use interparc to determine points at a given distance along the curve, with just one extra tool, my arclength ...

約1ヶ月 前 | 1

回答済み

So i'm trying to find the probability of how often can you win the "Impossible bet".

First, some logical thought. (That has absolutely nothing to do with MATLAB.) Does the argument made hold water? We can think o...

So i'm trying to find the probability of how often can you win the "Impossible bet".

First, some logical thought. (That has absolutely nothing to do with MATLAB.) Does the argument made hold water? We can think o...

約1ヶ月 前 | 3

| 採用済み

回答済み

When to use . matlab for equations

First, I think you do not understand that MATLAB uses RADIANS for trig functions. (Pretty standard, at least once you get past h...

When to use . matlab for equations

First, I think you do not understand that MATLAB uses RADIANS for trig functions. (Pretty standard, at least once you get past h...

約1ヶ月 前 | 0

| 採用済み

回答済み

Does MATLAB2019B automatically add semicolons in m files?

R2019b here. >> ver ----------------------------------------------------------------------------------------------------- MAT...

Does MATLAB2019B automatically add semicolons in m files?

R2019b here. >> ver ----------------------------------------------------------------------------------------------------- MAT...

約1ヶ月 前 | 0

回答済み

Is there it possible to create a function that checks for the best next move in this Connect N game?

Of course it is possible. You simply generate a tree of all possible moves, checking to see if a win occurs. A forced win arises...

Is there it possible to create a function that checks for the best next move in this Connect N game?

Of course it is possible. You simply generate a tree of all possible moves, checking to see if a win occurs. A forced win arises...

約1ヶ月 前 | 1

| 採用済み

回答済み

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...

約1ヶ月 前 | 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...

約2ヶ月 前 | 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...

約2ヶ月 前 | 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...

約2ヶ月 前 | 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 ...

約2ヶ月 前 | 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 = ...

約2ヶ月 前 | 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....

約2ヶ月 前 | 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...

2ヶ月 前 | 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...

3ヶ月 前 | 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...

3ヶ月 前 | 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,...

3ヶ月 前 | 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...

3ヶ月 前 | 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...

3ヶ月 前 | 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...

3ヶ月 前 | 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...

3ヶ月 前 | 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...

3ヶ月 前 | 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...

3ヶ月 前 | 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...

3ヶ月 前 | 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...

3ヶ月 前 | 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...

3ヶ月 前 | 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...

3ヶ月 前 | 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...

3ヶ月 前 | 0