Rank: 6955 based on 9 downloads (last 30 days) and 2 files submitted
photo

Richard Heitz

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Richard View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
13 Feb 2009 findRuns.m Returns indices of n consecutive numbers (you specify the number you want) Author: Richard Heitz consecutive numbers, find 4 2
20 Oct 2008 homer.m Homer Simpson Quotes Author: Richard Heitz simpsons, entertainment, why, utilities, miscellaneous 5 2
Comments and Ratings by Richard View all
Updated File Comments Rating
02 Sep 2011 Multiple Concurrent Workspaces (Updated 2) A function that simulates multiple workspaces without saving info to disk Author: Jeff Dunne

23 Sep 2009 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens

Sorry, but I think circ_var returns s = (1-r) when it should be s = 2*(1-r).

for this reason, circ_std and circ_var will not agree

30 Apr 2009 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens

this is a great toolbox

27 Feb 2009 findRuns.m Returns indices of n consecutive numbers (you specify the number you want) Author: Richard Heitz

I agree, using strfind is a much more simplistic method. However, it fails to find ALL instances meeting a criterion. For instance, givin the vector [0 1 1 1 1 0 0], say you want to find instances of 3 or more 1's in a row.
Using strfind you'll get back [2 3]. Using findRuns, you'll get [2 3 4 5].

Comments and Ratings on Richard's Files View all
Updated File Comment by Comments Rating
27 Feb 2009 findRuns.m Returns indices of n consecutive numbers (you specify the number you want) Author: Richard Heitz Heitz, Richard

I agree, using strfind is a much more simplistic method. However, it fails to find ALL instances meeting a criterion. For instance, givin the vector [0 1 1 1 1 0 0], say you want to find instances of 3 or more 1's in a row.
Using strfind you'll get back [2 3]. Using findRuns, you'll get [2 3 4 5].

14 Feb 2009 findRuns.m Returns indices of n consecutive numbers (you specify the number you want) Author: Richard Heitz Jos (10584)

Before evaluating the algorithm, you can improve the help section and add comments to the code. A proper help section consists of (1) an H1 line, (2) and explanation of the algorithm in plain language with a description of the input and output parameters, (3) and example, and perhaps (4) a See Also line.

As it is, "help finruns" returns nothing really useful, unless one take a closer look at the code.

The approach itself is also the result of translating pseudocode (C?) directly into matlab. Using a logical vector, combined with strfind easily returns the indices: Q = vector == value ; startidx = strfind(Q,[ 0 1]) ; etc ... which has been described many times on the newsgroup.

28 Oct 2008 homer.m Homer Simpson Quotes Author: Richard Heitz Dargue, Thomas

This is an absolutely useless piece of code, but is it funny, does exactly what it is supposed to do in a timely mannor.

Great code, great quotes and most of all great fun (I have included it in my startup).

20 Oct 2008 homer.m Homer Simpson Quotes Author: Richard Heitz FEX #1094450, Jos

I feel honored (but also somewhat annoyed, if that is the right word for it) that you simply copied my whole RANDINTERVAL code into your submission, but you'd better stick to using
x = ceil(66*rand);
to select a random integer between 1 and 66 (inclusive)

Contact us