| 	
Prev: matlab function memory usage Next: Modify diagonal 	
		 From: Martin  on 2 Feb 2010 08:15 Hi, What would be the most efficient way of triggering signal in one vector by another? Here is an example: X = [ 0 0 0 1 0 0 0 1 0 1 0 1 0 0 0 1 ... Y = [ 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 ... I would like to create a vector which would contain 1 since 1 occured in vector X until 1 occured in vector Y, ie Z = [ 0 0 0 1 1 0 0 1 1 1 1 1 1 1 0 1 ... (note, that occurence of 1 in Y before 1 in X is ignored. Thanks for help Martin 
		  | 
 Pages: 1 Prev: matlab function memory usage Next: Modify diagonal |