Community Profile

Jeff Evans


27 total contributions since 2007

Contact

Jeff Evans's Badges

Contributions in
View by

Solved


Find: Faster Alternatives for Large Sorted/Unique Vectors
The Challenge is to create faster Find methods for large unique ascending vectors. Methods exist that are 1000 times faster t...

1 year ago

Submitted


probOfStreak
Calculate the probability of a run or streak of K consecutive successes in N Bernoulli trials.

4 years ago | 1 downloads |

Thumbnail

Responded


Re: m-file shadows itself? Confused about error
Addendum: I now see that the error is not specific to that one directory. It appears when I run scripts from other directories ...

7 years ago | 33173 views

Responded


Re: m-file shadows itself? Confused about error
Thanks Steve, No, I added it via "Set Path" in the File menu. Jeff

7 years ago | 33173 views

Posted


m-file shadows itself? Confused about error
Hello all, Beginning yesterday I have been receiving an error when I run two scripts (using F5 from the editor) called randomre...

7 years ago | 33173 views

Submitted


struc2xls
Writes a data structure in MATLAB to an excel file.

8 years ago | 35 downloads |

Thumbnail

Responded


Re: suppressing errors in nlinfit
in message <flmark$2vb$1@fred.mathworks.com>... b(1)*exp(b(2)*x) that negative. Since your you'd want a then you've got _th...

9 years ago | 12109 views

Responded


Re: suppressing errors in nlinfit
Peter, that constraint returned fitted parameters with imaginary parts. any other ideas? thanks, jeff

9 years ago | 12109 views

Responded


Re: suppressing errors in nlinfit
The warnings were popping up when the parameter estimates got very large (like 10 e15 or so vs. 0.005 normally). So they're easy...

9 years ago | 12109 views

Posted


p-value for resampled statistic - is this right?
A function I wrote runs a bootstrapped regression with nlinfit 2000 times and returns 2000 estimates of each parameter in the mo...

9 years ago | 1538 views

Responded


Re: suppressing errors in nlinfit
Thanks again. Inserting NaN with catch seems to be working. It only appears to be called less than 1/1000 iterations. Increasing...

9 years ago | 12109 views

Responded


Re: suppressing errors in nlinfit
I don't have the optimization toolbox available to me presently.

9 years ago | 12109 views

Responded


Re: suppressing errors in nlinfit
John D'Errico" <woodchips@rochester.rr.com> wrote in message <fllhk7$bhj$1@fred.mathworks.com>... Thanks John, As getting bette...

9 years ago | 12109 views

Responded


Re: suppressing errors in nlinfit
I should add that simply changing the initial guess (beta) won't solve this because each regression is performed on a random sub...

9 years ago | 12109 views

Posted


suppressing errors in nlinfit
I have a bootstrapping function that resamples my dataset 2000 times by pulling a random 80% of the observations from the set, r...

9 years ago | 12109 views

Posted


linhyptest and degrees of freedom
Happy new year all, I'm using nlinfit to parameterize an exponential function and want to run an F test on the fit of the model...

9 years ago | 1631 views

Posted


setting figure handle names
Hi all, here's today's problem: I create three figures in a script: figure1=figure('Name','Logistic Regression Output'); figur...

9 years ago | 851 views

Responded


Re: can anyone make this line run faster?
Also: fp is a index of a single element in the structure DF. DF(fp).npCircles is an array of indices indicating which elements o...

9 years ago | 1332 views

Posted


can anyone make this line run faster?
This is one bottleneck in my script: [DF(DF(fp).npCircles).unique]=deal(0); This one line is called almost 400k times taking ...

9 years ago | 1234 views

Posted


can anyone make this line run faster?
This is one bottleneck in my script: [DF(DF(fp).npCircles).unique]=deal(0); This one line is called almost 400k times taking ...

9 years ago | 1160 views

Posted


can anyone make this line run faster?
This is one bottleneck in my script: [DF(DF(fp).npCircles).unique]=deal(0); This one line is called almost 400k times taking ...

9 years ago | 1332 views

Responded


Re: min and max not working!
Problem resolved. Someone had re-defined min and max as variables which rendered the functions inoperable!

9 years ago | 18635 views

Posted


min and max not working!
Hi all, beginning Friday after lunch the min and max functions began returning this error: ??? Subscript indices must either b...

9 years ago | 18635 views

Responded


Re: adding data to dynamic field
Point taken. The reason I decided to use a structure was that i foresaw the need to pull subsets of the data from multiple array...

9 years ago | 1417 views

Responded


Re: adding data to dynamic field
I hadn't considered that. What I liked about the using the structure (from my amateur's perspective) is that I can give each of ...

9 years ago | 1417 views

Responded


Re: adding data to dynamic field
Excellent. Thanks Peter! Actually, each field is an of 647 elements which i want to initialize as 647 zeros. These will be modi...

9 years ago | 1417 views

Posted


adding data to dynamic field
Hi all, I have written a for loop that creates new dynamic fields in my existing data structure. It creates the first new field...

9 years ago | 1417 views