Rank: 2835 based on 20 downloads (last 30 days) and 4 files submitted
photo

Daniel

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Daniel View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 Jul 2013 replaceTildes Recurses through directories, finding Matlab code and replacing LHS tildes with 'ans'. Author: Daniel tilde, code, compatibility 9 2
  • 1.0
1.0 | 1 rating
30 Apr 2013 pushNaNs Pushes NaNs to the bottom of each column of X. Author: Daniel nan, order, sort, remove, column 3 3
18 Jan 2013 GetGoogleSpreadsheet Download a google spreadsheet as csv and import into a Matlab cell array. Author: Daniel google, spreadsheet, import, csv 4 0
14 Jan 2012 Tiedrank_(X,dim) Like MATLAB's tiedrank function, but works along dimension dim of ND-array. Author: Daniel rank, correlation, tied, tiedrank, sort 4 1
  • 5.0
5.0 | 1 rating
Comments and Ratings by Daniel View all
Updated File Comments Rating
01 May 2013 pushNaNs Pushes NaNs to the bottom of each column of X. Author: Daniel

Vanessa,
Sorry to disappoint, but I think you're probably more or less right. The situation in which I thought the function would be useful turned out to be entirely avoidable, after much TLC to the script in question (wading through someone else's lazy coding).
Actually I wrote the function after I'd already realised it wasn't needed, I was just curious to see how it could be done neatly and reckoned there may occasionally be a need for it.

31 Jan 2012 Rankings Calculate Rankings with five different methodologies Author: Francesco Pozzi

You might like my tiedrank_(X,dim) function: http://www.mathworks.com/matlabcentral/fileexchange/34560-tiedrankxdim
The code is fully vectorised and runs pretty fast.

31 Jan 2012 colAUC Calculates Area under ROC curve (AUC) for a vector or for each column of a matrix. Author: Jaroslaw Tuszynski

For ND-array tiedranks you might like http://www.mathworks.com/matlabcentral/fileexchange/34560-tiedrankxdim

31 Jan 2012 Spearman Rank Correlation It calculates the Spearman rank correlation coefficient. Author: Alexandros Leontitsis

If you want to compute tied ranks along a specific dimension of an ND-array see http://www.mathworks.com/matlabcentral/fileexchange/34560-tiedrankxdim.

09 Dec 2011 Determine and count unique values of an array Very fast function to determine and count unique values of numeric, logical, char, cell arrays. Author: Anthony Kendall

I haven't actually tried this yet, but how about using the 'sparse' parameter in accumarray? And why not add a 'dim' parameter to your function...I think it's still possible to do this with accumarray.

Comments and Ratings on Daniel's Files View all
Updated File Comment by Comments Rating
28 Jun 2013 replaceTildes Recurses through directories, finding Matlab code and replacing LHS tildes with 'ans'. Author: Daniel Jos (10584)

I am currently rating this as one star because it should not overwrite files by default! This is potentially very dangerous.

You should copy the directory, and make the changes in the copied files. If this is implemented, I will reconsider my rating. The idea is fine btw ...

28 Jun 2013 replaceTildes Recurses through directories, finding Matlab code and replacing LHS tildes with 'ans'. Author: Daniel Simon, Jan

I recommend not to overwrite the automatically accessed "ans" variable. This can be confusing e.g. during debugging. I'd use something like "dummy" instead.

The function is useful to support Matlab versions <= 2009a. The help text does niot have a H1-line, but is clear and contains the required warning. Perhaps a dialog might be added to ask for a confirmation. I cannot test the robustness of the REGEXP currently, such that I do not dare to rate this submission yet.

Btw. the need to include a subfunction to obtain a recursive list of files in subfolders is shows, that TMW should urgently include this as a toolbox function. This is a standard task which should not be left to the users.

02 May 2013 pushNaNs Pushes NaNs to the bottom of each column of X. Author: Daniel Vanessa

thanks :) I'm definitely not disappointed... just curious! I agree that sometimes it is fulfilling to code up something spontaneously without having a solid application for it, but knowing that it might be useful in the future.

01 May 2013 pushNaNs Pushes NaNs to the bottom of each column of X. Author: Daniel Daniel

Vanessa,
Sorry to disappoint, but I think you're probably more or less right. The situation in which I thought the function would be useful turned out to be entirely avoidable, after much TLC to the script in question (wading through someone else's lazy coding).
Actually I wrote the function after I'd already realised it wasn't needed, I was just curious to see how it could be done neatly and reckoned there may occasionally be a need for it.

01 May 2013 pushNaNs Pushes NaNs to the bottom of each column of X. Author: Daniel Vanessa

I'm curious what this script would be used for? it's usually pretty easy to index the NaNs and then manipulate them that way, and given that indices usually have meaning, I'm wondering why I'd want to push the NaNs to the bottom and corrupt the ordering. Thanks!

Top Tags Applied by Daniel
sort, code, column, compatibility, correlation
Files Tagged by Daniel View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 Jul 2013 replaceTildes Recurses through directories, finding Matlab code and replacing LHS tildes with 'ans'. Author: Daniel tilde, code, compatibility 9 2
  • 1.0
1.0 | 1 rating
30 Apr 2013 pushNaNs Pushes NaNs to the bottom of each column of X. Author: Daniel nan, order, sort, remove, column 3 3
18 Jan 2013 GetGoogleSpreadsheet Download a google spreadsheet as csv and import into a Matlab cell array. Author: Daniel google, spreadsheet, import, csv 4 0
14 Jan 2012 Tiedrank_(X,dim) Like MATLAB's tiedrank function, but works along dimension dim of ND-array. Author: Daniel rank, correlation, tied, tiedrank, sort 4 1
  • 5.0
5.0 | 1 rating

Contact us