Submitted

siyideng/texttoimage

Rasterize text to binary images using Java, unicode is supported.

4 months ago | 0 downloads |

Posted

Matlab 2015b mex function does not support wildcard characters anymore?

I am very used to "mex -c *.c" on previous versions of matlab. It seems that this does not work anymore. Can somebody confirm pl...

1 year ago | 693 views

Submitted

Gauss hypergeometric function

Numerically compute real valued Gauss hypergeometric function, using Scipy c-source files

3 years ago | 15 downloads |

Posted

What is the reason behind the intended removal of TriRep class in Matlab 2013a?

according to this: http://www.mathworks.com/help/matlab/release-notes.html TriRep will be removed in a future release. Use the ...

3 years ago | 943 views

Question

What is the reason behind the intended removal of TriRep class in Matlab 2013a?

according to this: http://www.mathworks.com/help/matlab/release-notes.html TriRep will be removed in a future release. Use t...

3 years ago | 0 Answers | 0

Responded

Re: help with a quick way to find the unique sets

Good thought, thanks Kurt!

6 years ago | 2749 views

Responded

Re: help with a quick way to find the unique sets

I read the documentation and I don't get it. Please explain in a little bit detail please.

6 years ago | 2749 views

Responded

Re: help on vectorizing this

in such scenario, oftentimes a well designed for-loop outperforms the best vectorization.

6 years ago | 4234 views

Posted

help with a quick way to find the unique sets

Hi, suppose I have a 4 x 2 matrix, each row has 2 non-repeating integers. For example: a = [ 1 3 2 8 3 1 3 8]; I want to find ...

6 years ago | 2749 views

Posted

efficient way to compute cross-correlation sequence at specific lag?

hi board: Say I have a 60000 x 120 matrix A, I want to compute the cross-correlation sequences at a set of specific lags, for ex...

6 years ago | 2278 views

Posted

efficient way to compute cross-correlation sequence at specific lag?

hi board: Say I have a 60000 x 120 matrix A, I want to compute the cross-correlation sequences at a set of specific lags, for ex...

6 years ago | 878 views

Responded

Re: generating a indexing vector of "tied rank"

This is indeed a much nicer solution! thanks.

6 years ago | 1069 views

Posted

generating a indexing vector of "tied rank"

Hi all, I'm stuck with this problem of making a tied-rank indexing vector: suppose we have a logical vector x = rand(1,9) > 0.6...

6 years ago | 1069 views

Responded

Re: What's new in release 2010a?

the save filename X and index0 thing is horrible. Breaks old code and the consistency of Matlab language. I hope it is and will...

7 years ago | 17667 views

Responded

Re: Elements between 2 index vectors

s = (i2-i1) > 1; x = zeros(size(v)); x(i1(s)+1) = 1; x(i2(s)) = -1; index = logical(cumsum(x)); v(index)

7 years ago | 1989 views

Responded

Re: Optimizing a loop

Hey, I think this particular loop is quit optimizable: suppose y is column vector (if not, columnize it) this line will do the ...

7 years ago | 1181 views

Responded

Re: rasterizing plot to image

lol yeah I just figured that out. I think ideally I want all connections look like 1 0 0 1 or 1 1 0 0 but not 1 1 0 1

7 years ago | 7586 views

Responded

Re: rasterizing plot to image

That's really awesome, thank you us!

7 years ago | 7586 views

Responded

Re: rasterizing plot to image

Hey there, here's the code: % original data for the plot; x = 1:1000; y = sin(2*pi*0.005*x); figure; plot(x,y) % rasterize it...

7 years ago | 7586 views

Responded

Re: rasterizing plot to image

On Jul 24, 11:15 am, "Oliver Woodford" <o.j.woodford...@cantab.net> Thanks, I'll play around with pcolor. However, increasing...

7 years ago | 7586 views

Posted

rasterizing plot to image

Hi all, I have 1-d continuous data y = fun(x) and I can easily plot it as plot (x,y) Now I want to convert the relationship in...

7 years ago | 7586 views

Responded

Re: vectorisation: big string matrix to logical array

Another solution: x = [ 'CCTCTCCCTT' 'AGGAGAAAGA' 'CCACACCCAA' 'CCCCCTCTCC' 'TTTTTGTTTT' ]; y = x-'A'; template = ('ACGT'-'A'...

7 years ago | 2397 views

Responded

Re: Finding the last non-zero element for each column in a binary

Where, you need to add one more line: idx = size(a,1)+1-idx;

7 years ago | 9094 views

Responded

Re: Finding the last non-zero element for each column in a binary

Another solution: [val,idx] = max(flipud(a),[],1); idx(~val) = 0; % or nan, whatever you wish;

7 years ago | 9094 views

Responded

Re: Vectorization : Min/Max Function

I still doubt it. With large window size the memory usage would explode.

7 years ago | 776 views

Responded

Re: Vectorization : Min/Max Function

This is really good, but I doubt in such case vectorized code can be any faster than the for loop.

7 years ago | 12011 views

Responded

Re: vectorization of "coarse graining" sum

I think in such case, this will also work: M = permute(reshape(M,[m,n,m,n]),[2 4 1 3]); S = sum(M(:,:,:),3);

7 years ago | 2122 views

Responded

Re: vectorization of "coarse graining" sum

I guess The OP suggests V is a (n*m) x 1 vector. If that's the case you can use S = sum(reshape(V,m,n));

7 years ago | 2122 views