回答済み

Equation to Matlab code

ALWAYS show what you wrote. Ony you know what you mean by dealing with vectors, etc. In the first case, do you have a vector of ...

Equation to Matlab code

ALWAYS show what you wrote. Ony you know what you mean by dealing with vectors, etc. In the first case, do you have a vector of ...

17日 前 | 0

| 採用済み

回答済み

How to calculate partial area-under-the-curve?

After all of those comments, to be honest, sorry, but you were both working far too hard on a moderately simple problem. Simpl...

How to calculate partial area-under-the-curve?

After all of those comments, to be honest, sorry, but you were both working far too hard on a moderately simple problem. Simpl...

18日 前 | 0

回答済み

How to call fminsearch on my function

Um, you misunderstand the problem. Your function has TWO arguments. PR and PC, both of which you want to be optimized. And while...

How to call fminsearch on my function

Um, you misunderstand the problem. Your function has TWO arguments. PR and PC, both of which you want to be optimized. And while...

19日 前 | 0

回答済み

Uniform Random Variable PDF

What are you doing wrong? Um, pretty much everything? Sorry, but true. ;) However, you do seem to have made some credible effort...

Uniform Random Variable PDF

What are you doing wrong? Um, pretty much everything? Sorry, but true. ;) However, you do seem to have made some credible effort...

19日 前 | 0

回答済み

Solving Exponencial fuction is not returning the right answer

Yes, you THINK the true answer is 3. But it is not. format long g log(2653/2500) / log(51/50) And that is effectively the exa...

Solving Exponencial fuction is not returning the right answer

Yes, you THINK the true answer is 3. But it is not. format long g log(2653/2500) / log(51/50) And that is effectively the exa...

20日 前 | 1

| 採用済み

回答済み

Solving an inequation of first degree issue

syms x a = 3*x + 21 <= 5*x + 13 asol = solve(a,'returnconditions',true) asol.x asol.conditions It looks like x >= 4 is the ...

Solving an inequation of first degree issue

syms x a = 3*x + 21 <= 5*x + 13 asol = solve(a,'returnconditions',true) asol.x asol.conditions It looks like x >= 4 is the ...

21日 前 | 1

| 採用済み

回答済み

datetime values appear to be equal but return not equal

format long does NOT tell you every single digit in the number!!!! format long does NOT tell you every single digit in the numb...

datetime values appear to be equal but return not equal

format long does NOT tell you every single digit in the number!!!! format long does NOT tell you every single digit in the numb...

21日 前 | 0

| 採用済み

回答済み

Distribute data in the form of a circle

You say you want to distribute data, which implies you want to see random numbers, based on some vague, unspecified distribution...

Distribute data in the form of a circle

You say you want to distribute data, which implies you want to see random numbers, based on some vague, unspecified distribution...

22日 前 | 0

| 採用済み

回答済み

Cody Problem 19. Swap the first and last columns

This is NOT a provblem with the Cody problem, but with your code to solve it. First, see what happens when A is 1. I'll show wh...

Cody Problem 19. Swap the first and last columns

This is NOT a provblem with the Cody problem, but with your code to solve it. First, see what happens when A is 1. I'll show wh...

22日 前 | 0

| 採用済み

回答済み

How I can separate a matrix that is not positive definite, into two matrices?

Please learn to use operators and to clearly explain your question. Are you asking to find a new matrix Sq, such that the linea...

How I can separate a matrix that is not positive definite, into two matrices?

Please learn to use operators and to clearly explain your question. Are you asking to find a new matrix Sq, such that the linea...

22日 前 | 0

回答済み

Search for combination of parameters that make minimum function output.

Before you go too far, some ideas to consider. I hope you have a FUNCTION, not a script. Learn to use functions. You will need...

Search for combination of parameters that make minimum function output.

Before you go too far, some ideas to consider. I hope you have a FUNCTION, not a script. Learn to use functions. You will need...

22日 前 | 0

回答済み

Interpolating non-independent values

x is non-monotonic as a function of time. I have no idea what you mean by bounce, but I assume it indicates the failure to be mo...

Interpolating non-independent values

x is non-monotonic as a function of time. I have no idea what you mean by bounce, but I assume it indicates the failure to be mo...

24日 前 | 1

回答済み

Is not there a way to erase all the NaNs from a mxn matrix once and left the index values empty ?

A matrix cannot have "empty" elements. Well, a cell array can, or if you wrote a completely new class of your own, but standard ...

Is not there a way to erase all the NaNs from a mxn matrix once and left the index values empty ?

A matrix cannot have "empty" elements. Well, a cell array can, or if you wrote a completely new class of your own, but standard ...

24日 前 | 1

| 採用済み

回答済み

Can't solve for x with (a = y/x)

I'm not sure what a rational integer is. How is that distinct from an integer? Anyway, assume x and y are integers, with a comp...

Can't solve for x with (a = y/x)

I'm not sure what a rational integer is. How is that distinct from an integer? Anyway, assume x and y are integers, with a comp...

27日 前 | 0

回答済み

How can I use while loops to determine if an element is larger than the element below it and store the results in a vector with 1 representing true and 0 representing false?

"While" this does not answer your question, I would not use a while loop at all. Learn to use MATLAB as it is designed. A = ran...

How can I use while loops to determine if an element is larger than the element below it and store the results in a vector with 1 representing true and 0 representing false?

"While" this does not answer your question, I would not use a while loop at all. Learn to use MATLAB as it is designed. A = ran...

27日 前 | 2

回答済み

Function after spline fitting

You cannot extract any "function" from a spline. At least, if you did, it would not be anything you could read or type without m...

Function after spline fitting

You cannot extract any "function" from a spline. At least, if you did, it would not be anything you could read or type without m...

28日 前 | 0

回答済み

How to extrapolate a curve using a data set?

Ah, if people were able to accurately and easily extrapolate data, then everyone would agree about things like global warming. O...

How to extrapolate a curve using a data set?

Ah, if people were able to accurately and easily extrapolate data, then everyone would agree about things like global warming. O...

28日 前 | 1

回答済み

Solving a first order ODE with dsolve

While you may THINK that is the only answer, is it true that y==0 is also a solution? How about the constant value of sqrt(2)? ...

Solving a first order ODE with dsolve

While you may THINK that is the only answer, is it true that y==0 is also a solution? How about the constant value of sqrt(2)? ...

28日 前 | 0

| 採用済み

回答済み

does pp.breaks represent the arc length ?

NO. Not even remotely close to the arc length for a standard spline, perhaps something computed using the function spline. Alth...

does pp.breaks represent the arc length ?

NO. Not even remotely close to the arc length for a standard spline, perhaps something computed using the function spline. Alth...

29日 前 | 0

回答済み

How to efficiently solve a matrix eqation when the matrix is updated?

The problem is, it very much depends. If you can write the change in A as a rank 1 update, AND you write the code well, then you...

How to efficiently solve a matrix eqation when the matrix is updated?

The problem is, it very much depends. If you can write the change in A as a rank 1 update, AND you write the code well, then you...

29日 前 | 0

回答済み

2d plot of a non-linear equation

Walter has already told you how to plot it. But so you can learn how to find that for yourself, learn to use lookfor. The trick...

2d plot of a non-linear equation

Walter has already told you how to plot it. But so you can learn how to find that for yourself, learn to use lookfor. The trick...

29日 前 | 0

回答済み

Basins of attraction and Newtons Method

Since this is clearly homework, and we don't do homework for people on this site, think about it! First, you almost always want...

Basins of attraction and Newtons Method

Since this is clearly homework, and we don't do homework for people on this site, think about it! First, you almost always want...

29日 前 | 0

回答済み

Multiple Equations in Matlab Solver

No. You have ONE equation. It just happens that you defined it in 4 pieces, then you added them all up. If you defined them as ...

Multiple Equations in Matlab Solver

No. You have ONE equation. It just happens that you defined it in 4 pieces, then you added them all up. If you defined them as ...

約1ヶ月 前 | 0

回答済み

Fitting nonlinear noisy data

This is something I recall reading about many years ago. Nonlinear least squares in the presence of high noise is a classically ...

Fitting nonlinear noisy data

This is something I recall reading about many years ago. Nonlinear least squares in the presence of high noise is a classically ...

約1ヶ月 前 | 0

| 採用済み

回答済み

Solving an Improper Integral

Think of it like this. Do ALL problems you might pose to a computer have a solution? If so, then I might try solve('Peace ...

Solving an Improper Integral

Think of it like this. Do ALL problems you might pose to a computer have a solution? If so, then I might try solve('Peace ...

約1ヶ月 前 | 0

回答済み

Find range of values of independent variable so the dependent variable is in a certain range

No. Given a completely general nonlinear function as a black box, so you cannot see inside the box, just pass in values, the ans...

Find range of values of independent variable so the dependent variable is in a certain range

No. Given a completely general nonlinear function as a black box, so you cannot see inside the box, just pass in values, the ans...

約1ヶ月 前 | 0

回答済み

Please Help - How do I solve this for M

You need to understand that solve is a solver that will produce an analytical solution if possible. And this apparently reduces ...

Please Help - How do I solve this for M

You need to understand that solve is a solver that will produce an analytical solution if possible. And this apparently reduces ...

約1ヶ月 前 | 0

回答済み

How to transform matrix V? (A = V*F*inv(V))

If a solution exists to the problem, you finding it in a fully robust way using the transformation A*V == V*F may be problematic...

How to transform matrix V? (A = V*F*inv(V))

If a solution exists to the problem, you finding it in a fully robust way using the transformation A*V == V*F may be problematic...

約1ヶ月 前 | 2

回答済み

Graph of a truss

Just plot each line segment using line, where you define the end points of the segments. You can provide a color spec for each s...

Graph of a truss

Just plot each line segment using line, where you define the end points of the segments. You can provide a color spec for each s...

約1ヶ月 前 | 0

回答済み

binary quadratic optimization under linear constraints

How is this not just a linear least squares estimation of the two unknown parameters? There is nothing binary about this, except...

binary quadratic optimization under linear constraints

How is this not just a linear least squares estimation of the two unknown parameters? There is nothing binary about this, except...

約1ヶ月 前 | 1

| 採用済み