source: MML/trunk/machine/SOLEIL/StorageRing/insertions/idAuxCommonVector.m @ 4

Last change on this file since 4 was 4, checked in by zhangj, 11 years ago

Initial import--MML version from SOLEIL@2013

File size: 471 bytes
Line 
1function idAuxCommonVector(Vector1, Vector2)
2% NOT FINISHED!!!!
3N1=length(Vector1);
4N2=length(Vector2);
5   
6for i=1:N1-1
7    if (Vector1(i)>Vector1(i+1))
8        fprintf ('Error in ''idAuxCommonVector'' : Vector1 must be increasing monotonic\n');
9        return
10    end
11end
12for i=1:N2-1
13    if (Vector2(i)>Vector2(i+1))
14        fprintf ('Error in ''idAuxCommonVector'' : Vector2 must be increasing monotonic\n');
15        return
16    end
17end
18if (Vector1(1)<Vector2(1)
19   
Note: See TracBrowser for help on using the repository browser.