Rank: 712 based on 151 downloads (last 30 days) and 3 files submitted
photo

Roger Stafford

E-mail

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Files Posted by Roger View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 Oct 2006 Adjugate (adjoint) of a Square Matrix Calculates the adjugate (adjoint) matrix for a square matrix. Author: Roger Stafford matrix, singular, linear algebra, svd, adjoint, adjugate 91 2
  • 3.5
3.5 | 2 ratings
24 Jan 2006 Screenshot Random Vectors with Fixed Sum Randomly and uniformly generates vectors with a specified sum and values in a specified interval. Author: Roger Stafford hypercube, fixedsum, random, ndimensional, simplex 27 3
  • 5.0
5.0 | 3 ratings
28 Dec 2005 Screenshot Random Points in an n-Dimensional Hypersphere Randomly and uniformly distributes points throughout a hypersphere. Author: Roger Stafford incomplete, hypersphere, random, ndimensional, uniformlydistributed 33 6
  • 5.0
5.0 | 7 ratings
Comments and Ratings on Roger's Files View all
Updated File Comment by Comments Rating
31 Mar 2009 Random Points in an n-Dimensional Hypersphere Randomly and uniformly distributes points throughout a hypersphere. Author: Roger Stafford MathMoose

24 Sep 2007 Random Points in an n-Dimensional Hypersphere Randomly and uniformly distributes points throughout a hypersphere. Author: Roger Stafford Witoelar, Aree

Thanks a lot for the elegant code! I had trouble generating this distribution. Before this, my solution was to sample and reject; but for high dimensions it was too crude and consuming.

03 Apr 2007 Random Points in an n-Dimensional Hypersphere Randomly and uniformly distributes points throughout a hypersphere. Author: Roger Stafford Lord, Steve

Very nice piece of code. I have just two small suggestions for enhancements to the M-file help:

1) Include the calling syntax early in the help. I will admit I sometimes forget the calling syntax for functions I don't use often; my first resort is to type "help <functionname>", either to refresh my memory or to copy and paste the syntax into my code. In a case like this, I can see users perhaps forgetting the order of the parameters.

2) Include an example. Having a example that users can copy and paste included in the help gives people who may not know how to use your function a "known good" state -- from there, they can tweak. For a straightforward function like this, it may not seem necessary, but I think it's a good habit. It could be as simple as the two lines of code to generate the sample image.

03 Apr 2007 Random Vectors with Fixed Sum Randomly and uniformly generates vectors with a specified sum and values in a specified interval. Author: Roger Stafford Ekström, Per-Anders

Excellent!

12 Nov 2006 Adjugate (adjoint) of a Square Matrix Calculates the adjugate (adjoint) matrix for a square matrix. Author: Roger Stafford gupta, syam

good...if uhave code for svd also....plz send it

Top Tags Applied by Roger
ndimensional, random, adjoint, adjugate, cofactors
Files Tagged by Roger View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 Oct 2006 Adjugate (adjoint) of a Square Matrix Calculates the adjugate (adjoint) matrix for a square matrix. Author: Roger Stafford matrix, singular, linear algebra, svd, adjoint, adjugate 91 2
  • 3.5
3.5 | 2 ratings
24 Jan 2006 Screenshot Random Vectors with Fixed Sum Randomly and uniformly generates vectors with a specified sum and values in a specified interval. Author: Roger Stafford hypercube, fixedsum, random, ndimensional, simplex 27 3
  • 5.0
5.0 | 3 ratings
28 Dec 2005 Screenshot Random Points in an n-Dimensional Hypersphere Randomly and uniformly distributes points throughout a hypersphere. Author: Roger Stafford incomplete, hypersphere, random, ndimensional, uniformlydistributed 33 6
  • 5.0
5.0 | 7 ratings
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com