John D'Errico
Retired
Statistics
62 Files
Cody Discussions13 Discussions
RANK
9
of 301,327
REPUTATION
22,271
CONTRIBUTIONS
15 Questions
7,914 Answers
ANSWER ACCEPTANCE
46.67%
VOTES RECEIVED
4,867
RANK
4 of 21,234
REPUTATION
66,737
AVERAGE RATING
4.80
CONTRIBUTIONS
62 Files
DOWNLOADS
470
ALL TIME DOWNLOADS
602583
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
13 Discussions
AVERAGE NO. OF LIKES
4
Feeds
GA stops with different score every time, even with setting big MaxGeneations and MaxStallGenerations
Nonlinear solvers, of which GA is one, cannot be forced to ALWAYS return the optimal result. And while tools like GA are designe...
1 day ago | 1
Does [V,D] = eig(A) always return normalized eigenvectors for any real matrix A?
Be a little careful that A is not in symbolic form, even if it is real and SPD. A = randn(4,3); A = A'*A % A MUST clearly be SP...
1 day ago | 1
Is fit() deterministic when StartPoint is specified?
If the start point is specified, then yes, FIT should be deterministic. At that point there is no reason for any pseudo-random n...
3 days ago | 2
Discussion
What is an emirp? Can we find a new world record size prime of this form, using only MATLAB, and a home computer?
An emirp is a prime that is prime when viewed in in both directions. They are not too difficult to find at a lower level. For ex...
5 days ago | 0
fread a double that's been broken up into four 16 bit words
I don't see the problem. For example... Xtest = randn*100 Now, I'll split it into 4 hex numbers, each taking up 16 bits. Xhe...
9 days ago | 0
vpasolve does not solve simple equation
Well, look more closely at your question. Plot it. syms x; A = 6.742; B = 4.82; F = A - 2/(9*(1 - x)^(1/2)) - B*x fplot(F,[0,...
20 days ago | 0
| accepted
Any way to remove terms smaller than "digits" from symbolic expression? R2023a
While the solutions offered by @Paul and @Walter Roberson will both solve the problem you asked, be careful, as automatic approa...
1 month ago | 0
When I use nlinfit, the sintax nlinfit(t0,p0 ,@(b,t) ...),but if Ireplace nlinfit with fmincon, the sintax is not valid, why?
@Marcos there is no need to use global variables. For example... x = rand(20,1); y = 3 + 4*exp(x*1.5) + randn(size(x))/3; plo...
1 month ago | 0
Como puedo reiniciar mis cursos
"I took a course last year, completed it, and received the corresponding certificate. However, I need an updated certificate for...
1 month ago | 1
Mixing name/value pair syntax
I have at least a couple of reasons why, which is why I will pose this as an answer. Knowing exactly which deliberations were ma...
2 months ago | 0
**How can inflection points be robustly identified on a cumulative histogram (CDF) curve in MATLAB when only discrete, noisy CDF data is available?**
I'm sorry, but you are looking for magic that does not exist. An inflection point is a point where the SECOND derivative chang...
2 months ago | 1
Convex bivariate B-spline by construction (PSD Hessian)?
Even without thinking about it, I'm pretty sure the answer is no. Things get nasty when you move beyond one dimension, and 2d is...
2 months ago | 0
An easy way to input song chords into a structure of MATLAB
AVOID the function input. It only hurts your code, preventing you from growing. Learn to use other solutions for data input. One...
2 months ago | 2
| accepted
I'm using a 2020 Mac Mini. Will R2017a run on this computer if I upgrade to MacOS Tahoe?
No. 2017a will NOT run on Tahoe. Just read the docs to tell you which OS versions can run R2017a. https://www.mathworks.com/co...
2 months ago | 0
| accepted
Are iterative methods always better than direct methods for solving large linear systems?
The use case which some may miss here, is the very large array, where a dense solver fails due to memory, but even the sparse on...
2 months ago | 2
solving a system of linear equations where A is a 40*40 sparse matrix
I'd suggest that sparse is almost meaningless when the matrix is only 40x40. At that point, the dense solvers are still extremel...
2 months ago | 3
Putting spaces between elements of a string/
A = ['011001110000';'101111000000';'110100011000';'011010001100';'010101000110';'110010100010';... '100001010011';'10100010...
2 months ago | 2
| accepted
How to download the certificate
I'm sorry, but no, we cannot resolve your problem. Answers is not customer support. Answers is a volunteer forum, generally comp...
3 months ago | 0
Submitted
HPF - a big decimal class
High precision floating point arithmetic, a new class written in MATLAB
3 months ago | 25 downloads |
Defining inequality constraint A*x <= b for genetic algorithm
As I said in my comment, you cannot set up a linear system of inequalities to constrain that curved path from self intersections...
3 months ago | 0
i want to add cplex and yalmip on my mac how ?
YALMIP is an external toolbox, written in MATLAB, so it could in theory be used by any MATLAB installation. However, it is proba...
3 months ago | 0
| accepted
flag a question as answered.
While DGM gave a very complete answer, worthy of acceptance in my eyes, I think, from a look at one of the other questions from ...
4 months ago | 1
Finite elements model using STABIL
I cannot test your code, as I lack the tools you are using. Regardless, IF you tell us the solve yields NaNs, then there are onl...
4 months ago | 0
Using logic to select specific values in a matrix
Well, you are doomed to failure, as long as you don't use the right variable names as you created them! A = [1, 0.1234 1,...
4 months ago | 0
In how many functions using the global variable, can a global variable be declared?
There is no limit on how many functions can use a global variable. At the same time, I will plead, for your own sanity, to recon...
5 months ago | 1
How do I plot a graph with the grid for trig functions with 0 ≤ x ≤ 2π
@Sean syms x f = cos(x) dfdx = diff(f) help fplot
5 months ago | 0
| accepted
Should I need keep in my PC previous versions of Matlab?
Some of us keep older releases, just to answer a question about an older release, testing out code in the old release. I do ten...
5 months ago | 0
Unable to fetch more decimal points for values stored in sldd
You need to learn about the format command. All of the digits are still there, they were just not reported. I'll add a few digit...
5 months ago | 1
The symbol "1" is not a scalar in integral3
If ALL you want to do is compute a volume, especially of such a simple domain, there are better ways to do so. If the domain is ...
5 months ago | 1
How does the svd function determine or fix the phase of singular vectors?
First, signs are to some extent arbitrary. That is, for EIG, you can multiply an eigenvector by -1, and it is still an eigenvect...
5 months ago | 1











