Community Profile

Daniel


10 total contributions since 2012

Contact

Contributions in
View by

Submitted


GetGoogleSpreadsheet
Download a google spreadsheet as csv and import into a Matlab cell array.

11 months ago | 25 downloads |

Thumbnail

Answered
Cumulative sum by group
function S = labeledCumsum(X,L) % e.g. X=[3 5 8 9 1 2 5 8 5 4 9 2] % L=[0 1 1 2 2 0 0 1 1 ...

1 year ago | 0

Submitted


Low Freq 2D Fourier Transform
Produces high resolution 2D Fourier Transform for low spatial frequencies.

3 years ago | 3 downloads |

Thumbnail

Submitted


replaceTildes
Recurses through directories, finding Matlab code and replacing LHS tildes with 'ans'.

3 years ago | 0 downloads |

Thumbnail

Submitted


pushNaNs
Pushes NaNs to the bottom of each column of X.

3 years ago | 1 downloads |

Thumbnail

Question


Casting - why no optimization by default?
function [ret] = simplespeedtest() a = rand(1e7,1); a = typecast(a,'uint8'); tic ret(1) = sum(a==' '); %slowes...

4 years ago | 1 Answers | 0

1

answer

Question


Matlab dll as browser NPAPI plugin
I am a big fan of Matlab normally, but I find it very difficult to make a nice Matlab GUI that feels responsive and pleasant to ...

4 years ago | 0 Answers | 0

0

answers

Responded


Re: bsxfun runs faster in batches
At the bottom of my message, I meant why *doesn't* bsxfun self optimise.

4 years ago | 3389 views

Posted


bsxfun runs faster in batches
I want to add a column vector, length 66, to all columns in a matrix with about a million columns. You would think that a singl...

4 years ago | 3389 views

Submitted


Tiedrank_(X,dim)
Like MATLAB's tiedrank function, but works along dimension dim of ND-array.

5 years ago | 1 downloads |

Thumbnail