Rank: 4212 based on 27 downloads (last 30 days) and 1 file submitted
photo

Xavier Xavier

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Xavier
Updated   File Tags Downloads
(last 30 days)
Comments Rating
30 May 2012 Screenshot Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier interval, intersection 27 10
  • 5.0
5.0 | 5 ratings
Comments and Ratings by Xavier View all
Updated File Comments Rating
28 Jun 2012 Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier

Yes, I wanted a fast code so the input should be correct. I don't check neither that AB are sorted in ascending order.

30 May 2012 Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier

The file has been modified to remove the bug. Now I make sure that 'first' is ahead 'second'.

08 Jul 2011 Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier

Yes you are right, I modified the comments

Thx

10 Jun 2011 Interval merging Merging intervals in the bracket form Author: Bruno Luong

The method describe above is working really well but is time consuming.

I submitted a faster method here
http://www.mathworks.com/matlabcentral/fileexchange/31753

21 Oct 2010 RANDRAW Efficient Random Variates Generator (from over 50 distributions). Author: Alex Bar-Guy

Comments and Ratings on Xavier's Files View all
Updated File Comment by Comments Rating
26 Jan 2014 Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier Ilya

Thanks a lot!

23 Apr 2013 Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier Luong, Bruno

Good coding, fast

20 Feb 2013 Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier Per

Really useful for me.

28 Jun 2012 Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier Xavier, Xavier

Yes, I wanted a fast code so the input should be correct. I don't check neither that AB are sorted in ascending order.

28 Jun 2012 Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier Queffurust, Aurelien

One more test could be added:
x1 = [0 10 16 20 ]
x2 = [ 3 5 15 19 25]
-> out = 3 5 16 19

now if x1 has one more value :
x1 = [0 10 16 20 26]
you get :
Attempted to access first(2); index out of bounds because numel(first)=1.

Error in range_intersection (line 35)
if first(2)<second(1)

The test would be to check that the input vector are divisible by 2 ?

Contact us