Rank: 3286 based on 40 downloads (last 30 days) and 3 files submitted
photo

Damon Bradley

E-mail

Personal Profile:

DSP Engineer at NASA/GSFC

Professional Interests:
All things signal processing related

 

Watch this Author's files

 

Files Posted by Damon View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
29 Mar 2013 MetricPrefixStr - Print SI Prefix Formatted Numbers Prints a SI prefix formatted string corresponding to a numeric vector. Author: Damon Bradley latex, format, string, labels, xtick, xticklabels 8 2
  • 2.0
2.0 | 1 rating
20 Mar 2012 Screenshot Modified trapezoidal integration over specific limits of integration. This function is similar to trapz, except it specifies upper and lower integration limits a and b. Author: Damon Bradley numerical integration, trapz, limits 18 1
  • 3.0
3.0 | 1 rating
12 Dec 2011 Bit-slicing function for integer matrices function E = bitreslice(A,b_old, b_new, echo_on) Re-packages bits of a matrix of integers. Author: Damon Bradley bit vector, bit slicing, rearrange bits, fpga, dsp, digital signal proces... 14 1
  • 5.0
5.0 | 1 rating
Comments and Ratings by Damon View all
Updated File Comments Rating
08 Dec 2012 HOSA - Higher Order Spectral Analysis Toolbox Spectral and polyspectral analysis, and time-frequency distributions. Author: Ananthram Swami

Also, to remove the annoyance of inexact case matches when you use the any of the HOSA functions, I'd recommend putting this line of code at the top of your script:

warning('off','MATLAB:dispatcher:InexactCaseMatch').

For some strange reason, all of the HOSA function file names are written in all caps.

03 Jan 2012 sort_nat: Natural Order Sort Sort strings in natural order. Author: Douglas Schwarz

Excellent work. Saved me a much time and headache with some data analysis over here at NASA. Thank you!

03 Jan 2012 sort_nat: Natural Order Sort Sort strings in natural order. Author: Douglas Schwarz

Comments and Ratings on Damon's Files View all
Updated File Comment by Comments Rating
18 Jul 2014 MetricPrefixStr - Print SI Prefix Formatted Numbers Prints a SI prefix formatted string corresponding to a numeric vector. Author: Damon Bradley Cobeldick, Stephen

Disclaimer: In the end I could not find any FEX submission that gave the correct outputs for the wide range of test-cases that I tried, so I ended up writing my own function. You can find it here:
http://www.mathworks.com/matlabcentral/fileexchange/33174

18 Jul 2014 MetricPrefixStr - Print SI Prefix Formatted Numbers Prints a SI prefix formatted string corresponding to a numeric vector. Author: Damon Bradley Cobeldick, Stephen

While it claims to be suitable for "publication-quality plots", the lack of the space character between the coefficient and the prefix means that this submission actually does not follow the SI standard. It also entirely lacks the prefixes y, z, a, f, p, n, u, m, P, E, Z, and Y. And while it gives some examples, the example on line 20 "class labels" shows a basic misunderstanding between Command Syntax and Function Syntax in MATLAB:
http://www.mathworks.com/help/matlab/ref/syntax.html

The code could be much simpler: the use of (slow) "repmat" is not required (just use the format string itself, eg: '%d k', etc), and that whitespace removal code is bizarre: why not simply "strtrim(xtick)" ?. Precision control, returning my NaN values, an H1 line and input checking would be nice too!

04 Apr 2013 Modified trapezoidal integration over specific limits of integration. This function is similar to trapz, except it specifies upper and lower integration limits a and b. Author: Damon Bradley Wiora, Georg

Simple and intuitive. This was definitely missing in matlab!

Following improvements could be made:
1. Handle start and end of range in case where it is not exactly on a sample point
2. Check that x is monotonically increasing and resort vectors if necessary.

There is a BUG in the calculation of the index of the upper bound. You must call the min() function to find the correct index, not the max() function.

23 Feb 2012 Bit-slicing function for integer matrices function E = bitreslice(A,b_old, b_new, echo_on) Re-packages bits of a matrix of integers. Author: Damon Bradley Chan, Michael

Thank you.

Contact us