Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Vectorial inclusions inter
Replies: 5   Last Post: Jun 28, 2013 5:57 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Abel

Posts: 31
Registered: 5/29/13
Vectorial inclusions inter
Posted: Jun 27, 2013 3:29 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi all,

I want to do the following : let's have :

X=[3 3 Y=[1 3
11 11 10 12
17 17 17 24
24 24 29 35
33 35 41 46
51 51 51 58
57 58 60 65
64 65]; 73 79];

In this example, X and Y have same size (2*8) but consider that in a general context they may have different colums but always same lines : 2 lines. So, I will call an "event" a line from X : [3 3] is an event, [33 35] is an event and so on. But I need those events to be "intervals" of integers : [3 3] = {3} for example, [33 35] = {33, 34, 35}. Then, I need to find in Y the corresponding event of integers in which an event from X is included. For example [3 3] is included in [1 3] , [11 11] is included in [10 12] because 11 belongs to {10,11,12}=[10 12]. And finally I need to store in Z the results :

Z=[3 3 1 3
11 11 10 12
17 17 17 24
ect...]

Would you know how to do this ?



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.