Rank: 2729 based on 19 downloads (last 30 days) and 3 files submitted
photo

Avinash Rude

E-mail

Personal Profile:

I work in the area of data mining.

Professional Interests:
Data mining, GIS

 

Watch this Author's files

 

Files Posted by Avinash View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
07 Feb 2010 stringCollapser Collapses a long comma separated string using a counter for repeated sub-strings Author: Avinash Rude string manipulation, abstraction, tags, grammar, string collapse, count strings 2 3
07 Jan 2010 String Letter Counter Function This function returns comma separated unique letter counts in an input string, keeping the order. Author: Avinash Rude string manipulation, numbers, count strings, strings, letter count, alphabet count 7 1
05 Jan 2010 Nonnan.m A function to ignore NaN values within an single-dimensional array of numbers. Author: Avinash Rude statistics, nonnan missing values, ignore missing values, signal processing, nan 10 4
  • 1.0
1.0 | 3 ratings
Comments and Ratings by Avinash View all
Updated File Comments Rating
16 Feb 2010 stringCollapser Collapses a long comma separated string using a counter for repeated sub-strings Author: Avinash Rude

Oleg Komarov:

First, Thanks for the careful scrutiny of my code. I will address some of your points further:

>>Unmeaningful H1 line, poor help but at least the example is easy to understand. Author, contact and creation date are shown but there is no need to include those info in the help block.

Okay, will correct that.

>> I'm not against loops but you should really learn preallocation:
% A: 0.610 MB
A = repmat(',abc,abc,abc,ghf,ghf,der,der,dfg',1,10000);

Thanks for this preallocation tip.

>>tic
OUT = strCollapser(A);
toc
>> % Elapsed time is 60.312876 seconds.

How did you calculate the time? Let me know.

>>Completely useless the last line of code:
%str;
%strParsed;
str1;

Opps! Should've deleted that... It is a remnant while the fuction was written.

>>No comments in the body.

Will include them.

>>I can't think of any use for this fcn, the output again is too complex and unmanageable.

True, that it gives an unmanageable string. However, it served my purpose of collapsing a very long string with repeated substrings.

26 Jun 2009 Datetick with zooming panning and subplots Date formatted tick labels, automatically updated when zoomed or panned. Author: Andrew Bliss

Great!

Just what I needed.

Works like a charm!

Thanks Andrew Bliss

Comments and Ratings on Avinash's Files View all
Updated File Comment by Comments Rating
17 Feb 2010 stringCollapser Collapses a long comma separated string using a counter for repeated sub-strings Author: Avinash Rude Komarov, Oleg

help tic % for time calculation

preallocation:
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_prog/f8-784135.html#f8-793781

Regards

16 Feb 2010 stringCollapser Collapses a long comma separated string using a counter for repeated sub-strings Author: Avinash Rude Rude, Avinash

Oleg Komarov:

First, Thanks for the careful scrutiny of my code. I will address some of your points further:

>>Unmeaningful H1 line, poor help but at least the example is easy to understand. Author, contact and creation date are shown but there is no need to include those info in the help block.

Okay, will correct that.

>> I'm not against loops but you should really learn preallocation:
% A: 0.610 MB
A = repmat(',abc,abc,abc,ghf,ghf,der,der,dfg',1,10000);

Thanks for this preallocation tip.

>>tic
OUT = strCollapser(A);
toc
>> % Elapsed time is 60.312876 seconds.

How did you calculate the time? Let me know.

>>Completely useless the last line of code:
%str;
%strParsed;
str1;

Opps! Should've deleted that... It is a remnant while the fuction was written.

>>No comments in the body.

Will include them.

>>I can't think of any use for this fcn, the output again is too complex and unmanageable.

True, that it gives an unmanageable string. However, it served my purpose of collapsing a very long string with repeated substrings.

12 Feb 2010 stringCollapser Collapses a long comma separated string using a counter for repeated sub-strings Author: Avinash Rude Komarov, Oleg

Unmeaningful H1 line, poor help but at least the example is easy to understand. Author, contact and creation date are shown but there is no need to include those info in the help block.

I'm not against loops but you should really learn preallocation:
% A: 0.610 MB
A = repmat(',abc,abc,abc,ghf,ghf,der,der,dfg',1,10000);

tic
OUT = strCollapser(A);
toc
% Elapsed time is 60.312876 seconds.

% Matrix indexing is a useful chapter of online documentation
str(length(str))~=',' where length(str) can be replaced with end

Completely useless the last line of code:
%str;
%strParsed;
str1;

No comments in the body.

I can't think of any use for this fcn, the output again is too complex and unmanageable.

12 Jan 2010 String Letter Counter Function This function returns comma separated unique letter counts in an input string, keeping the order. Author: Avinash Rude Komarov, Oleg

Poor preallocation. Complex output. Poor help.
>> strLetterCounter('aaaaaaaabbbbbbccdaaa')
ans =
8a,6b,2c,1d,3a
This fcn counts the length of continues blocks.

Oleg

11 Jan 2010 Nonnan.m A function to ignore NaN values within an single-dimensional array of numbers. Author: Avinash Rude Campbell, Rob

I have to agree with the above

Top Tags Applied by Avinash
signal processing, count strings, string manipulation, strings, abstraction
Files Tagged by Avinash View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
07 Feb 2010 stringCollapser Collapses a long comma separated string using a counter for repeated sub-strings Author: Avinash Rude string manipulation, abstraction, tags, grammar, string collapse, count strings 2 3
07 Jan 2010 String Letter Counter Function This function returns comma separated unique letter counts in an input string, keeping the order. Author: Avinash Rude string manipulation, numbers, count strings, strings, letter count, alphabet count 7 1
05 Jan 2010 Nonnan.m A function to ignore NaN values within an single-dimensional array of numbers. Author: Avinash Rude statistics, nonnan missing values, ignore missing values, signal processing, nan 10 4
  • 1.0
1.0 | 3 ratings

Contact us at files@mathworks.com