Rank: 3357 based on 15 downloads (last 30 days) and 5 files submitted
photo

Jason Kaeding

E-mail

Personal Profile:
Professional Interests:
Audio, signal processing

 

Watch this Author's files

 

Files Posted by Jason View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
21 Oct 2010 repToSize Replicate and tile an array so that it meets a specified final size. Author: Jason Kaeding repmat, circshift, matrix manipulation 0 2
  • 4.0
4.0 | 1 rating
23 Jul 2010 regexpcmp (strcmp meets regexp) Checks whether strings match a regular expression (pattern) or not. Author: Jason Kaeding strcmp, regexp, strmatch, cellstr, match, string 9 0
02 Mar 2010 sci2num Converts a string with (possibly) an SI prefix to a number. Works in reverse of num2sci. Author: Jason Kaeding si, notation, prefix, units, num2sci 1 1
  • 5.0
5.0 | 3 ratings
02 Mar 2010 num2sci Works just like num2str except will print with formatting in SI prefix notation. Author: Jason Kaeding si, notation, prefix, units, sci2num 0 1
  • 5.0
5.0 | 1 rating
12 May 2009 HDF5 Read/Write Cellstr Example Demonstrates writing MATLAB cell arrays of strings as variable-length strings to HDF5 files. Author: Jason Kaeding data export, hdf, hdf5, data import 5 1
  • 3.0
3.0 | 1 rating
Comments and Ratings by Jason View all
Updated File Comments Rating
09 Jan 2012 Data density plot Plots data density of a two-dimensional distribution for human viewing. Author: Malcolm McLean

Very slow. Don't replace the kk loop with parfor as bmv suggests, just vectorize the calculation and get rid of the loop:

dmap(ii+1, jj+1) = sum( 1./ ( (x - xi).^2 + (y - yi).^2 + fudge) );

The other loops can be vectorized as well if you use bsxfun.

10 Jun 2011 legendflex: a more flexible legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney

I guess it didn't take my first bug submission...

The vertical positioning of the patches is incorrect in the following code:

figure;
area(1:10,rand(10,10))
legendflex(gca,cellstr(num2str(column(1:10))),'ncol',5,'anchor',[6 2],'buffer',[0 -10])

10 Jun 2011 legendflex: a more flexible legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney

Another bug: if I delete the legend then resize my figure, I get an error...

??? Error using ==> getappdata
Invalid object handle

Error in ==> legendflex>resizefig at 621
Lf = getappdata(ax(ia), 'legflex');

??? Error while evaluating figure ResizeFcn

13 Feb 2011 repToSize Replicate and tile an array so that it meets a specified final size. Author: Jason Kaeding

Appreciate the comment. I guess the idea of this function was that I just needed to fill a matrix with repeated values, not caring about any truncation.

One situation in particular is with color order. Suppose you use 10 different colors on your graph. Now you want 47 curves. To build the new color matrix, I know it doesn't fit, and I just want it to fill it up in order.

In other words, I tend to see a warning as suggesting unanticipated behavior, such as complex data on a plot. Here, the "intended" behavior is to truncate the dimensions. Perhaps an optional output argument would be best where you could get some information back?

[newMatrix,???] = repToSize(...)

17 Aug 2010 Progress Bars Attractive and full-featured progress bars. Author: Richard Stapenhurst

Hi Richard,

Documentation suggestion: you give no example of creating a progress bar manually. I had to look through the methods one by one to figure out what to call.

Additionally, because the set method is typically inherited from the handle class, I completely passed over this method when exploring, causing me to miss THE most important method for using the progress bars. Had I been advising you, I would have suggested using a function name of set_bar or something else to avoid such a name conflict. Nonetheless, because of this I strongly suggest some example in the main help so we can know how to get up and running.

Regards,
Jason

Comments and Ratings on Jason's Files View all
Updated File Comment by Comments Rating
12 Nov 2012 sci2num Converts a string with (possibly) an SI prefix to a number. Works in reverse of num2sci. Author: Jason Kaeding Battistel, Alberto

10 Aug 2011 sci2num Converts a string with (possibly) an SI prefix to a number. Works in reverse of num2sci. Author: Jason Kaeding Adriano

20 Jun 2011 num2sci Works just like num2str except will print with formatting in SI prefix notation. Author: Jason Kaeding Hiebel, Holger

I love it and use it very often.

20 Jun 2011 sci2num Converts a string with (possibly) an SI prefix to a number. Works in reverse of num2sci. Author: Jason Kaeding Hiebel, Holger

I love it and use it very often.

21 Apr 2011 HDF5 Read/Write Cellstr Example Demonstrates writing MATLAB cell arrays of strings as variable-length strings to HDF5 files. Author: Jason Kaeding LP

Nice Solution.

Can be generalized to n x p cellstr if one requires, in its current form the code must be a n x 1 cellstr.

Top Tags Applied by Jason
notation, prefix, si, units, cellfun
Files Tagged by Jason View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
21 Oct 2010 repToSize Replicate and tile an array so that it meets a specified final size. Author: Jason Kaeding repmat, circshift, matrix manipulation 0 2
  • 4.0
4.0 | 1 rating
23 Jul 2010 regexpcmp (strcmp meets regexp) Checks whether strings match a regular expression (pattern) or not. Author: Jason Kaeding strcmp, regexp, strmatch, cellstr, match, string 9 0
02 Mar 2010 sci2num Converts a string with (possibly) an SI prefix to a number. Works in reverse of num2sci. Author: Jason Kaeding si, notation, prefix, units, num2sci 1 1
  • 5.0
5.0 | 3 ratings
02 Mar 2010 num2sci Works just like num2str except will print with formatting in SI prefix notation. Author: Jason Kaeding si, notation, prefix, units, sci2num 0 1
  • 5.0
5.0 | 1 rating
12 May 2009 HDF5 Read/Write Cellstr Example Demonstrates writing MATLAB cell arrays of strings as variable-length strings to HDF5 files. Author: Jason Kaeding data export, hdf, hdf5, data import 5 1
  • 3.0
3.0 | 1 rating

Contact us