Rank: 641 based on 150 downloads (last 30 days) and 3 files submitted
photo

Ryan

E-mail
Company/University
California Polytechnic State University, San Luis Obispo
Lat/Long
36.71559906005859, -121.6478729248047

Personal Profile:

Completing a Master's thesis in spacecraft attitude dynamics simulation, and will soon begin working for NASA-JPL's Mars Mission Concepts group.

Professional Interests:
spacecraft design and analysis

 

Watch this Author's files

 

Files Posted by Ryan View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
13 Jan 2010 Screenshot Guitar Tuner Graphical guitar and musical instrument tuner Author: Ryan tuner, music, potw, tune, musical instrument, guitar 80 0
14 Oct 2009 Screenshot Mario Sim v0.1 Simple sprites demo; NOT A FULL GAME. Mario is fully controllable within confined space. Author: Ryan nintendo, mario, sprite, game 44 0
13 Oct 2009 Screenshot Boggle! The classic word search game. Author: Ryan dictionary, word search, boggle, game 26 0
Comments and Ratings by Ryan View all
Updated File Comments Rating
30 Sep 2009 gaussian curve fit gaussian curve fit Author: Yohanan Sivan

I disagree with Matheca. The function is intended to fit a general gaussian, not necessarily a probability distribution function. The equation is correct.

However, the user should be aware that removing data points in a deterministic manner (i.e. by thresholding) definitely skews the resulting fit.

Rather than fitting to the whole series with negatives removed, try finding the largest contiguous positive subset of the original data series and fitting to that. This method won't work when the noise amplitude is greater than the distribution amplitude, but in most cases it will give you a better fit.

Even better yet: if accuracy is more important than computation speed, use fmincon with a least-squares difference cost function:

p = fmincon(@(p) sum((y-(p(1)*exp(-(x-p(2)).^2/2/p(3)^2))).^2),...
[max(y) mean(x) 1],[],[],[],[],[0 -inf 0],[2*max(y) inf inf])
A=p(1);
mu=p(2);
sigma=p(3);

30 Sep 2009 gaussian curve fit gaussian curve fit Author: Yohanan Sivan

Top Tags Applied by Ryan
game, boggle, dictionary, guitar, mario
Files Tagged by Ryan View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
13 Jan 2010 Screenshot Guitar Tuner Graphical guitar and musical instrument tuner Author: Ryan tuner, music, potw, tune, musical instrument, guitar 80 0
14 Oct 2009 Screenshot Mario Sim v0.1 Simple sprites demo; NOT A FULL GAME. Mario is fully controllable within confined space. Author: Ryan nintendo, mario, sprite, game 44 0
13 Oct 2009 Screenshot Boggle! The classic word search game. Author: Ryan dictionary, word search, boggle, game 26 0
 

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