Community Profile

photo

John D'Errico


Retired

4,220 total contributions since 2006

Mainly retired from Eastman Kodak. (Of course, Kodak itself is now semi-retired. I don't think I had any influence in that.) I still write MATLAB code as I find something interesting, and I do attempt to write new tools to put on the File Exchange when I think I can make a contribution.

However, I DON'T answer direct e-mail questions, and I do NOT do homework. In general, your homework is YOUR problem, not mine. Please do NOT e-mail me with your homework problems or student projects. If I was willing to answer your questions, I would very rapidly become overwhelmed, because one question is never just one simple question.

When I'm not doing something with MATLAB, you might find me playing bridge, either in the club or online on BBO.

Professional Interests: MATLAB, numerical analysis, mathematical modeling

Avocational interests: Bridge, woodworking, woodturning

Contact

John D'Errico's Badges

  • Master
  • Revival Level 3
  • 36 Month Streak
  • Thankful Level 4
  • Knowledgeable Level 4
  • First Answer
  • Promoter
  • Speed Demon
  • CUP Challenge Master
  • Creator
  • Commenter
  • Solver

View details...

Contributions in
View by

Answered
Write a function called under_age that takes two positive integer scalar arguments: age that represents someone's age, and limit that represents an age limit. The function returns true if the person is younger than the age limit. If the second arg
This is not an error. It is a failure of your code to work as it is supposed to work by your goals. What did I say? What has EV...

3 hours ago | 0

| accepted

Answered
How do I plot a certain interval?
I'm confused. That you are not using x-values does not seem relevant. You plotted Mc on the horizontal axis. Next, the line: f...

4 hours ago | 0

Answered
Create an accurate boundary around 2D point cloud horizontal plane
As I thought about your problem, there is a simple solution. This is a TSP - a Traveling Salesman Problem. You want a closed sol...

6 hours ago | 0

Answered
How to draw a cylinder that has an irregular cross section and changing along the cylinder length?
You essentially have radius, as a function of theta, and z. And I don't have your data, since all you gave us is a picture. It i...

22 hours ago | 1

| accepted

Answered
Just how random are random numbers in MATLAB?
The random number generation scheme in MATLAB is fairly sophisticated, having evolved greatly over the years. It is currently us...

1 day ago | 0

Answered
Is it possible to constrain the unknown x in an optimization problem to be rounded up to 1 when it originally is a value between 0 and 1?
You are trying to use a tool not designed to solve that class of problem. You cannot round the results AFTER fmincon returns a r...

2 days ago | 0

| accepted

Answered
Finding extreme points in the convex hull
Why not do the obvious? xy = rand(1000,2); >> ch = convhull(xy) ch = 55 460 890 204 908 222 189 ...

2 days ago | 2

| accepted

Answered
How to plot the exterior edges only of an alphaShape
When you have a problem like this, learn how to investigate what you can do with the class. x = rand(10,1)*5; y = rand(10,1)*5...

3 days ago | 1

Answered
Looping a matrix to find determinant
An ambiguous question, and possibly, an ambitious question too. For example, do you feel it to be of importance to test the subm...

3 days ago | 0

Answered
is it possible to create a Character array using a vertical vector of characters?
Sadly, answers A, B, and C are all virtual drivel, as is the entire question. The difference between options B and C is silly. A...

3 days ago | 3

| accepted

Answered
Can I analytically solve a logarithmic equation using the symbolic toolbox?
Sigh. Sorry. I typed too fast there, and I answered incorrectly. Not sure why solve does not get this. Multiply by log(u) + 1. ...

4 days ago | 0

| accepted

Answered
Writing a one line programme to show that an equation equals to the answer shown.
Homework, but you did make an effort. Does this not show what you need to show? sqrt(4) ans = 2 Or this? sqrt(4) == 2 ...

4 days ago | 0

Answered
Euler-Bernoulli's beam ODE or PDE
Euler-Bernoulli https://en.wikipedia.org/wiki/Euler–Bernoulli_beam_theory might appear in several aspects. It kind of depends...

4 days ago | 0

Answered
Exiting: the problem is unbounded.
THERE IS NO SOLUTION, BECAUSE THE PROBLEM HAS NO SOLUTION. Changing the solver will not make it now a viable problem. This was e...

4 days ago | 0

Answered
residual r=ax-b ∞-norm
Why would you possibly have expected to get the right answer? Was the infinity norm requested? Is it a 2-norm that you computed?...

5 days ago | 1

Answered
General Approach to Fitting dozens of curves using the same coefficients
I'll suggest that while you CAN do at least something, it is perhaps not trivial. And, sadly, the result would likely be total, ...

5 days ago | 1

Answered
Matrix dimensions must agree.
Look at line 4. y = (0.943*(x-9).^2)-(24.99*t+6113.91); We know what x is, that is, a vector. x = 9:0.1:15; But wh...

5 days ago | 0

| accepted

Answered
Trying to solve system of equations symbolically, getting zero for solution
You have what you claim to be a linear system of 7 equations in 7 unknowns. (I've not checked this claim, carefully, but it look...

5 days ago | 1

| accepted

Answered
quadgk is wrong???
Your normal distribution is one that is too narrowly defined around the mean of 350. In fact, it is effectively zero towithin to...

5 days ago | 0

| accepted

Answered
Matlab giving incorrect graph for exponential below function
Sorry. But whatever you did in Excel is apparently flat out wrong. Lets just think about this, for a moment. Does it make even r...

6 days ago | 2

Answered
What is the best way to smooth and compute the derivatives of noisy data?
The "best" way? That will be completely dependent on your data, on what you know about your data, and on what you are willing to...

6 days ago | 1

| accepted

Answered
Assignment support in Sparse Matrix
Answers is not a homework service, so I will not do your homework for you. However, this question is one that I would argue is c...

6 days ago | 0

| accepted

Answered
Average of two closed curves
Given two closed curves, say a circle and a square, I would first formulate the problem as a pair of functions in polar coordina...

7 days ago | 1

Answered
Getting a maximum from a fitted curve (smoothing spline)?
Where does the problem lie? Are you surprised that the spline does not pass through the maximum data point? So are you just aski...

8 days ago | 2

| accepted

Answered
MATLAB code that can replace the inbuilt function 'norm'
I suppose I can write a simple 1-norm code, that will work for a vector OR matrix. Thus, the 1-norm of a vector is the sum of a...

8 days ago | 0

| accepted

Answered
Fitting an Equation on to graph
Easiest is if you just use the curvefitting toolbox, OR the stats toolbox, OR the optimization toolbox. Still easy enough to us...

8 days ago | 0

Answered
how to move a sphere until it intersect a surface?
You have a surface defined as Z = x.*exp(-0.1*x.^2 - 0.2*y.^2 + 1.5); fsurf(Z) xlabel X ylabel Y zlabel Z And a sphere, ...

10 days ago | 2

| accepted

Answered
Poisson distribution-for loop not working
It is impossible to know. What is x(1)? What is x(2)? I would suggest that you look at those numbers. For example, suppose x(1) ...

11 days ago | 0

Answered
Can I solve for multiple variables in an equation?
Sigh. It looks like this is a followup to your last question. But it is COMPLETELY different. And you cannot use randfixedsum, w...

13 days ago | 0

Load more