
John D'Errico
Retired
A retired applied mathematician, consultant, sometime mechanical engineer, numerical analyst, woodworker, bridge player. Please DON'T contact me, as too many students then decide I am their personal consultant if I allow it. I won't do consulting by mail.
統計
All
Content Feed
回答済み
How to get area between 2 cdf curves?
If the curves cross, then you need to decide what the "area between" means. That is, is the area in one part negative? Or do you...
How to get area between 2 cdf curves?
If the curves cross, then you need to decide what the "area between" means. That is, is the area in one part negative? Or do you...
約16時間 前 | 0
回答済み
transposing 3d matrix with permute function
You CANNOT tell MATLAB that a matrix is explicitly 265x508x1, and have it recognize that third singleton dimension. Yes, if you ...
transposing 3d matrix with permute function
You CANNOT tell MATLAB that a matrix is explicitly 265x508x1, and have it recognize that third singleton dimension. Yes, if you ...
1日 前 | 0
回答済み
How to calculate are under the curve from 2 vector sets.
It seems as if you want to compute the area between the curve and the x axis, while ignoring the sign of y. But a simple integra...
How to calculate are under the curve from 2 vector sets.
It seems as if you want to compute the area between the curve and the x axis, while ignoring the sign of y. But a simple integra...
2日 前 | 1
| 採用済み
回答済み
lsqnonlin optimization: large condition number of Jacobian matrix at all iterations, but full rank
@SA-W - A full rank does NOT mean the parameters are not linearly dependent. With that high of a condition number, it often does...
lsqnonlin optimization: large condition number of Jacobian matrix at all iterations, but full rank
@SA-W - A full rank does NOT mean the parameters are not linearly dependent. With that high of a condition number, it often does...
2日 前 | 0
回答済み
lsqcurvefit() moved from Matlab to toolbox?
You definitely mis-remember this. lsqcurvefit has always been in the optimization toolbox. At least as long as I can recall on t...
lsqcurvefit() moved from Matlab to toolbox?
You definitely mis-remember this. lsqcurvefit has always been in the optimization toolbox. At least as long as I can recall on t...
3日 前 | 0
回答済み
Hi there, I am trying to solve a differentiation of long equation. The system shoot me the warning that cannot find a explicit solution. I need the value of X in terms C.
I want world peace. Does that mean I can have it? I even need world peace. Still, no good. How about you? You need to solve an e...
Hi there, I am trying to solve a differentiation of long equation. The system shoot me the warning that cannot find a explicit solution. I need the value of X in terms C.
I want world peace. Does that mean I can have it? I even need world peace. Still, no good. How about you? You need to solve an e...
3日 前 | 0
| 採用済み
回答済み
how to write a specific text in matlab
L appears there as a function ONLY as the inverse of L. As such, it is just a name. We could call it something else, and nothing...
how to write a specific text in matlab
L appears there as a function ONLY as the inverse of L. As such, it is just a name. We could call it something else, and nothing...
3日 前 | 0
回答済み
How to generate bivariate random normally distributed 3d array?
Um, trivial? You apparently want to generate 300 samples of a bivariate normal. So generate them as a 300x2 array, Then reshape...
How to generate bivariate random normally distributed 3d array?
Um, trivial? You apparently want to generate 300 samples of a bivariate normal. So generate them as a 300x2 array, Then reshape...
4日 前 | 1
| 採用済み
回答済み
Why the nonlinear least square fitted curve is not a curve?
Data=[0.928571429, 0; 0.012118074, 1.5; -0.450001188, 3; -0.316739249, 4.5; 0.394139277, 6; 0.094786629...
Why the nonlinear least square fitted curve is not a curve?
Data=[0.928571429, 0; 0.012118074, 1.5; -0.450001188, 3; -0.316739249, 4.5; 0.394139277, 6; 0.094786629...
4日 前 | 0
回答済み
vpa solving 5 equations with 5 unknowns, but result is an empty structure
Suppose I had two equations. Two unknowns. Totally trivial, but they are not unlike your question. x + y = 1 x - y <= 3 ...
vpa solving 5 equations with 5 unknowns, but result is an empty structure
Suppose I had two equations. Two unknowns. Totally trivial, but they are not unlike your question. x + y = 1 x - y <= 3 ...
4日 前 | 0
回答済み
Second time derivative of ODE45 solution looks bumpy
Reemmber that the gradient function usues an APPROXIMATION. And, that at the ends of the series, that approximation is less good...
Second time derivative of ODE45 solution looks bumpy
Reemmber that the gradient function usues an APPROXIMATION. And, that at the ends of the series, that approximation is less good...
5日 前 | 0
回答済み
How to plot a surface curve with inequalities?
And exactly what is the problem? I think what you do not understand is, what you have created is NOT a surface. M = 0.85 : 1/20...
How to plot a surface curve with inequalities?
And exactly what is the problem? I think what you do not understand is, what you have created is NOT a surface. M = 0.85 : 1/20...
5日 前 | 0
回答済み
Fsolve produces comlex numbers
Remember that fsolve does not allow constraints. Not even bound constraints. So when one of the variables tries to go into a bad...
Fsolve produces comlex numbers
Remember that fsolve does not allow constraints. Not even bound constraints. So when one of the variables tries to go into a bad...
6日 前 | 0
回答済み
Optimisation Algorithm and Levenberg-Marquardt for fitglm in MATLAB
The important thing you need to recognize is that fitglm fits a LINEAR model. No nonlinear iterations will be performed. fitgl...
Optimisation Algorithm and Levenberg-Marquardt for fitglm in MATLAB
The important thing you need to recognize is that fitglm fits a LINEAR model. No nonlinear iterations will be performed. fitgl...
6日 前 | 0
回答済み
error in the process of symbol operation of the matrix
Why do you think there is something wrong with T? We don't know why you wrote this code. It computes what you told MATLAB to com...
error in the process of symbol operation of the matrix
Why do you think there is something wrong with T? We don't know why you wrote this code. It computes what you told MATLAB to com...
6日 前 | 0
回答済み
Is it possible to plot a curve with changing colours under a single plot?
Arguably, this is something the line function would allow you to do. But line allows you to specify only a single color for an e...
Is it possible to plot a curve with changing colours under a single plot?
Arguably, this is something the line function would allow you to do. But line allows you to specify only a single color for an e...
7日 前 | 0
| 採用済み
回答済み
Find value at which a line changes its slope
There is NO exact point where that can be known to happen. Your curve is noisy. At best, you can estimate where the curve start...
Find value at which a line changes its slope
There is NO exact point where that can be known to happen. Your curve is noisy. At best, you can estimate where the curve start...
7日 前 | 0
回答済み
How do I get random variables generated from a distribution in [-1, 1]?
The MATLAB crystal ball is foggy today. You give us a tiny fragment of code, and then tell us that something strange happens. PR...
How do I get random variables generated from a distribution in [-1, 1]?
The MATLAB crystal ball is foggy today. You give us a tiny fragment of code, and then tell us that something strange happens. PR...
7日 前 | 1
回答済み
Can Simulink use symbolic constants (syms x, y, z) or only numerical values (x=1, y=2, z=3) are accepted ?
NO. Simulink will NOT use symbolic parameters. Sorry. Simulink is essentially a numerical solver. It does not perform symbolic c...
Can Simulink use symbolic constants (syms x, y, z) or only numerical values (x=1, y=2, z=3) are accepted ?
NO. Simulink will NOT use symbolic parameters. Sorry. Simulink is essentially a numerical solver. It does not perform symbolic c...
8日 前 | 0
| 採用済み
回答済み
three order complex coefficient polynomial root matlab
Another classic solution is to find the matrix that has the same eigenvalues as your polynomial has roots. Then use eig to compu...
three order complex coefficient polynomial root matlab
Another classic solution is to find the matrix that has the same eigenvalues as your polynomial has roots. Then use eig to compu...
9日 前 | 1
回答済み
Problem with making cash change
Now that you have an answer, I'll add one that is not solved the way you would do so, but using an ILP solver, so an Integer Lin...
Problem with making cash change
Now that you have an answer, I'll add one that is not solved the way you would do so, but using an ILP solver, so an Integer Lin...
9日 前 | 1
回答済み
How do I code for optimization of max volume of box?
It would arguably be a good time to learn about something called Lagrange multipliers. They allow you to build constraints into ...
How do I code for optimization of max volume of box?
It would arguably be a good time to learn about something called Lagrange multipliers. They allow you to build constraints into ...
9日 前 | 0
回答済み
write down a function
There is no "function". It sounds as if, given vectors x and h, you want to know what the function would have been, as if MATLAB...
write down a function
There is no "function". It sounds as if, given vectors x and h, you want to know what the function would have been, as if MATLAB...
9日 前 | 0
回答済み
Using find to determine equality not of scalars, but vectors
This is not really the province of find. Yes, you can break an egg with a hammer, but it is not really the right tool for the pu...
Using find to determine equality not of scalars, but vectors
This is not really the province of find. Yes, you can break an egg with a hammer, but it is not really the right tool for the pu...
9日 前 | 2
回答済み
How to do a Taylor expansion with a matrix
You cannot compute the Taylor series of a constant. You CAN compute a Taylor series, and then evaluate it at that constant value...
How to do a Taylor expansion with a matrix
You cannot compute the Taylor series of a constant. You CAN compute a Taylor series, and then evaluate it at that constant value...
9日 前 | 0
回答済み
Is it possible to truncate a vector to form one of lower dimension?
You have two choices. First, you can extract the elements you want. Or you can delete the elements you wnat to drop. For example...
Is it possible to truncate a vector to form one of lower dimension?
You have two choices. First, you can extract the elements you want. Or you can delete the elements you wnat to drop. For example...
10日 前 | 1
回答済み
Most efficient way to put vector on the off-diagonal of the blocks of a block matrix
The most efficient way? SPDIAGS. help spdiags For example, to create a 6x6 sparse matrix, with an upper and lower diagonal ele...
Most efficient way to put vector on the off-diagonal of the blocks of a block matrix
The most efficient way? SPDIAGS. help spdiags For example, to create a 6x6 sparse matrix, with an upper and lower diagonal ele...
12日 前 | 0
回答済み
xy+y^5+3=0 My input is real x, from this implicit equation y will have both real and imag values for each x I want to plot a 3 D plot where z will represent imag y. Pleasehelp
Simple enough. Just do exactly what you asked. Remember the roots of a 5th degree polynomial will in general have no algebraic s...
xy+y^5+3=0 My input is real x, from this implicit equation y will have both real and imag values for each x I want to plot a 3 D plot where z will represent imag y. Pleasehelp
Simple enough. Just do exactly what you asked. Remember the roots of a 5th degree polynomial will in general have no algebraic s...
12日 前 | 0
回答済み
How do I fit two data sets to each other?
This is a classic problem of calibration. You have two curves, one of which must be shifted (translated) to the other. In some c...
How do I fit two data sets to each other?
This is a classic problem of calibration. You have two curves, one of which must be shifted (translated) to the other. In some c...
12日 前 | 1
回答済み
Pick a value with some probability
Please stop asking the same question. There is NO way to know what distribution any set of data comes from. You can use tools to...
Pick a value with some probability
Please stop asking the same question. There is NO way to know what distribution any set of data comes from. You can use tools to...
13日 前 | 0