Rank: 1280 based on 65 downloads (last 30 days) and 16 files submitted
photo

DS

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by DS View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
11 Apr 2012 Screenshot Generate uniform pseudo-random integers from linear range. RAND_INT(R,N) returns an n-by-n matrix containing pseudo-random integer values from range R. Author: DS randi, random integer, rand 2 1
  • 5.0
5.0 | 1 rating
10 Apr 2012 Screenshot Reverse concatenation: separate a data array along a specified dimension. INVERSE_CAT splits a given data array into sub-arrays along the specified dimension. Author: DS concatenation, cat, data manipulation 3 1
09 Apr 2012 Screenshot Convert decimal integer to arbitrary base. DECIMAL_CONVERT generates a vector of coefficients representing a base 10 integer in a chosen base. Author: DS base, polyval, polynomial, decimal to base, decimal to binary 6 0
30 Mar 2012 Screenshot Pad an image subregion, restoring it's original spatial context. REFRAME(I,R,B) applies PADARRAY to subregion, R, returning an image with the dimensions of image, I. Author: DS paddarray, label image, regionprops, padding, large binary object 6 0
29 Mar 2012 Screenshot Generate a subdirectory listing from a path string. PATH_PARTS returns a listing of strings representing subdirectories parsed from a path string. Author: DS directory, subdirectory, path, string conversion 1 0
Comments and Ratings by DS View all
Updated File Comments Rating
29 Mar 2012 Preferred Number Sequences Generate vectors of "Preferred Number Sequence" values. Author: Stephen Cobeldick

Nice idea. Clearly documented and well-commented code. This should come in handy for circuit design.

22 Mar 2012 splitstring Split a string into a cell array by specifying a delimiter. Author: Ivar Eskerud Smith

If you have Matlab(2006a) or newer, you can use the 'split' option of the builtin function REGEXP to split a string into a cell array of substrings, like so:
parts = regexp(myText,’\s+’,'split’);

Comments and Ratings on DS's Files View all
Updated File Comment by Comments Rating
31 Aug 2012 Xflow Image analysis for Jet-in-crossflow data. Author: DS Yesil, Faruk

10 Apr 2012 Reverse concatenation: separate a data array along a specified dimension. INVERSE_CAT splits a given data array into sub-arrays along the specified dimension. Author: DS Simon, Jan

"x{i} = 1:5" is faster than "x(i) = {1:5}".
It would look nicer and save some micro-seconds to compute "floor(size(C,DIM)/nout)" once only and store it in a variable.
"ndims(C)" is nicer than "numel(size(C))".
The VARARGIN in the inputs is not used, so I suggest to omit it.
The first element does not need an exceptional handling, therefore I'd include it in the loops to simplify the code:
q = floor(size(C,DIM)/nout);
for i = 1:nout
x{i} = C(i*q - q + 1:i*q, :);
end
A method for indexing along any dimension:
Index = cell(1, ndims(C));
Index(:) = {':'};
for i = 1:nout
Index{DIM} = i*q - q + 1:i*q;
x{i} = C(Index{:});
end
But this is slower than the explicite method.

26 Mar 2012 vfield_color Plot a 2-D vector field, where color is defined by a colormap and indicates vector magnitude. Author: DS wang, guanglei

GOOD

28 Feb 2012 Generate uniform pseudo-random integers from linear range. RAND_INT(R,N) returns an n-by-n matrix containing pseudo-random integer values from range R. Author: DS Simon, Jan

A very well documented and nicely written function. Useful and usable, vectorized and check of inputs.
A suggestion: The check of the size of R crashs, if R has more than 2 dimensions: "if (size(R)==[1 1])". "if numel(R)==1" is saver and faster. Afterwards rejecting "numel(R)~=2" is sufficient and accepts a [2x1] column vector also.

01 May 2010 imagepatch Paste one image over another with an offset, expanding first image as necessary. Author: DS Ulrich

useful, thanks

Top Tags Applied by DS
string conversion, colormap, plot, a1 referencing, a1style
Files Tagged by DS View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
11 Apr 2012 Screenshot Generate uniform pseudo-random integers from linear range. RAND_INT(R,N) returns an n-by-n matrix containing pseudo-random integer values from range R. Author: DS randi, random integer, rand 2 1
  • 5.0
5.0 | 1 rating
10 Apr 2012 Screenshot Reverse concatenation: separate a data array along a specified dimension. INVERSE_CAT splits a given data array into sub-arrays along the specified dimension. Author: DS concatenation, cat, data manipulation 3 1
09 Apr 2012 Screenshot Convert decimal integer to arbitrary base. DECIMAL_CONVERT generates a vector of coefficients representing a base 10 integer in a chosen base. Author: DS base, polyval, polynomial, decimal to base, decimal to binary 6 0
30 Mar 2012 Screenshot Pad an image subregion, restoring it's original spatial context. REFRAME(I,R,B) applies PADARRAY to subregion, R, returning an image with the dimensions of image, I. Author: DS paddarray, label image, regionprops, padding, large binary object 6 0
29 Mar 2012 Screenshot Generate a subdirectory listing from a path string. PATH_PARTS returns a listing of strings representing subdirectories parsed from a path string. Author: DS directory, subdirectory, path, string conversion 1 0

Contact us