Community Profile

photo

John D'Errico


Last seen: Today

Retired

4,790 total contributions since 2006

Please don't contact me. I won't answer questions.

Contact

John D'Errico's Badges

  • Master
  • Revival Level 3
  • 36 Month Streak
  • Promoter
  • Speed Demon
  • CUP Challenge Master
  • Top Downloads 2019
  • Personal Best Downloads Level 5
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Thankful Level 4
  • Knowledgeable Level 4
  • First Answer

View all

Contributions in
View by

Answered
Fitting a sigmoid curve using curve fitting tool box
The problem is, there are many functional forms that people think of and call with the generic name "sigmoid". We can find a few...

20 hours ago | 0

Answered
Can anyone explain for loop ? And nested loops.
How can we do better than to suggest you read the help for for? It has examples in there. help for doc for A simple for loop:...

1 day ago | 0

Answered
How to write while a set Q is not empty do the following in matlab?
What function tells you if a vector is empty? (Hint: isempty) What do you want? Not empty. So what is the logical negation oper...

1 day ago | 0

| accepted

Answered
Solving of vectorial equations
You cannot do it, at least if these are completely general nonlinear equations, since there may be no unique solution for nonlin...

2 days ago | 1

Answered
Inverse of algebraic expression in Matlab
As is often the case, not all simple problems have an algebraic solution. In fact, as you have found, it is trivial to write one...

3 days ago | 1

Answered
The quotient and remainder of a number divided by another (Euclidean Division)
What is the problem? :) You did it correctly. Well, except for the very last line. n = 19 d = 3 r = rem(n,d) q = (n-r)/d di...

3 days ago | 0

Answered
need help on my matrix code
An if statement dose NOT work this way. You cannot use that single statement to act on each element of the array, independently....

3 days ago | 0

| accepted

Answered
so for when i try to mutiply the variable v my number is really big can someone explain why. The choose in is user input
I think it MAY be partly that you do not understand how to write numbers. Or, do you not understand how to write algebraic expre...

4 days ago | 1

Answered
Cylinder fit to a point cloud data
You seem to be way overthinking this. xyz = REAL_data; xyz0 = mean(xyz) xyz0 = -0.024621 -18.89 0.75025 xyzh...

5 days ago | 0

| accepted

Answered
I cant solve linear programming
Who can solve it? Most likely, nobody. Your problem is unbounded. I can go through some mathematics to reduce it to show more cl...

5 days ago | 1

Answered
Can anyone write a mathlab program for this question?
Can anyone write a mathlab program for this question? The answer is easy - Yes. I can. Do I win the prize? Oh. Wait. You asked...

5 days ago | 0

Answered
How can a matrix of randperm be generated with variable n*m?
SImpler than you think. M = 4; N = 3; [~,A] = sort(rand(M,N),1) A = 1 1 3 4 2 1 2 3 ...

6 days ago | 1

| accepted

Answered
Unrecognized function or variable 'x'.
Where exactly did you define the value of x? I see this line: %x^2=5-y^2 But there is the minor flaw of a comment. Anyway, th...

7 days ago | 0

Answered
Can someone help me solve this. I am trying to evaluate the integral.
You don't understand. Just because a sometimes useful mathematical way of writing the cube of a function like sin, is to write i...

8 days ago | 0

| accepted

Answered
negative x axis meaning
This is confusing as a question. You have a plot of some numbers. Some of them are negative. Of course MATLAB will extend the ax...

8 days ago | 0

| accepted

Answered
precision of calculation with Matlab
This must of course fail as you are doing it, since out must generally exceed 2^53-1, the limits of flintmax for a double precis...

8 days ago | 1

| accepted

Answered
Does someone has the Composite MicroMechanics COMM toolbox? Thanks!
Just contact the source. This link claims it to be freely available, by contacting the author. https://www.researchgate.net/pub...

8 days ago | 0

Answered
Question on pdepe solver
Why not just read the help? That is, first, I typed doc pdepe Quickly scan down through there, and I see that indeed, pdepe ...

9 days ago | 0

| accepted

Answered
fminsearch and simulated annealing with penalties
You do not want to solve it using penalties. That tends to cause problems, making the solution more difficult. At best, the opti...

10 days ago | 0

Answered
How to create a smooth curve through data points?
We don't have your data, so I cannot give any examples. As well, I don't know your definition of a smooth curve. Do you want a...

10 days ago | 0

Answered
How can I plot a Sin or Cosine graph that looks this this?
Start with one of these: help fplot help ezplot But before that, start by reading the getting started tutorials.

11 days ago | 0

Answered
Coding problem in pattern search optimization algorithm
Your objective function needs to return a SCALAR value for any set of inputs. That is, you cannot minimize two (or more) indepen...

12 days ago | 0

Answered
Can we use aliasing concept to achieve solution for following use case in MATLAB ?
I suppose you could do so, by writing a custom alias class to do it. It would seem a bit of a kludge though. But, no. MATLAB do...

13 days ago | 0

Answered
Solving a over determined system in MATLAB
Is it the correct way? perhaps it might be, except that you have a typo in e3. Perhaps that is why you decided to try it with on...

13 days ago | 0

| accepted

Answered
How to fit a power law equation using three variables?
The answer is simple, sort of. But it very much depends on your data. For example, if Z varies by multiple orders of magitude ov...

13 days ago | 0

| accepted

Answered
How to evaluate a curve at infinite points inside it's upper and lower bounds.
If I plot your data, it it far too highly nonlinear to use any sort of a fit to the data directly. But plotted on log-log axes, ...

14 days ago | 0

Answered
How to get the maximum value of an implicit function?
If you have the otimization toolbox, then just formulate it as a nonlinear optimization. fmincon will be the correct tool. That ...

14 days ago | 0

| accepted

Answered
two inputs and two equations
This is easy enough to answer, as long as EXACTLY ONE of the two inputs was provided. However, you need to consider what happen...

15 days ago | 0

| accepted

Answered
how to write or constrains optimization
For which optimization tool? fmincon? You can't. This essentially reduces to a discrete optimization problem. You can think of...

16 days ago | 0

Answered
repeating elements in weird fashion.
help repelem MAtLAB is not a spreadsheet though. I would suggest that you are thinking of it as one, and until you free yoursel...

16 days ago | 0

Load more